org.alfresco.repo.workflow.activiti.listener
Class ConvertDateToISO8601

java.lang.Object
  extended by org.alfresco.repo.workflow.activiti.listener.ConvertDateToISO8601
All Implemented Interfaces:
org.activiti.engine.delegate.ExecutionListener

public class ConvertDateToISO8601
extends java.lang.Object
implements org.activiti.engine.delegate.ExecutionListener

An ExecutionListener that converts a variable of type date to a ISO-8601 date. The variable that should be converted can be set using field "source", the output string will be written in field configured in "target".

Since:
4.0

Field Summary
protected  org.activiti.engine.delegate.Expression source
           
protected  org.activiti.engine.delegate.Expression target
           
 
Fields inherited from interface org.activiti.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
 
Constructor Summary
ConvertDateToISO8601()
           
 
Method Summary
protected  java.lang.String getExpressionString(org.activiti.engine.delegate.Expression expression, org.activiti.engine.delegate.VariableScope variableScope)
           
 void notify(org.activiti.engine.delegate.DelegateExecution execution)
           
 void setSource(org.activiti.engine.delegate.Expression source)
           
 void setTarget(org.activiti.engine.delegate.Expression target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected org.activiti.engine.delegate.Expression source

target

protected org.activiti.engine.delegate.Expression target
Constructor Detail

ConvertDateToISO8601

public ConvertDateToISO8601()
Method Detail

setSource

public void setSource(org.activiti.engine.delegate.Expression source)

setTarget

public void setTarget(org.activiti.engine.delegate.Expression target)

notify

public void notify(org.activiti.engine.delegate.DelegateExecution execution)
            throws java.lang.Exception
Specified by:
notify in interface org.activiti.engine.delegate.ExecutionListener
Throws:
java.lang.Exception

getExpressionString

protected java.lang.String getExpressionString(org.activiti.engine.delegate.Expression expression,
                                               org.activiti.engine.delegate.VariableScope variableScope)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.