public class ForEachFork extends JBPMSpringActionHandler
| Constructor and Description |
|---|
ForEachFork() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.jbpm.graph.exe.ExecutionContext executionContext)
Create a new child token for each item in list.
|
protected String |
getTokenName(org.jbpm.graph.exe.Token parent,
String transitionName,
int loopIndex)
Create a token name
|
protected void |
initialiseHandler(org.springframework.beans.factory.BeanFactory factory)
Initialise Action Handler
|
void |
setForeach(org.dom4j.Element foreach)
Sets the list of objects to be iterated over.
|
void |
setVar(String var)
Set the name of the variable to which the eleements of
foreach are assigned. |
getWorkflowInstanceIdprotected void initialiseHandler(org.springframework.beans.factory.BeanFactory factory)
JBPMSpringActionHandlerinitialiseHandler in class JBPMSpringActionHandlerfactory - Spring bean factory for accessing Alfresco beanspublic void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
throws Exception
executionContext - Exceptionprotected String getTokenName(org.jbpm.graph.exe.Token parent, String transitionName, int loopIndex)
parent - transitionName - public void setForeach(org.dom4j.Element foreach)
foreach - the list of objects to setpublic void setVar(String var)
foreach are assigned.var - the variable name to setCopyright © 2005–2014 Alfresco Software. All rights reserved.