org.alfresco.repo.workflow.jbpm
Class ForEachFork

java.lang.Object
  extended by org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler
      extended by org.alfresco.repo.workflow.jbpm.ForEachFork
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.def.ActionHandler

public class ForEachFork
extends JBPMSpringActionHandler

For each "item in collection", create a fork.

See Also:
Serialized Form

Constructor Summary
ForEachFork()
           
 
Method Summary
 void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
          Create a new child token for each item in list.
protected  java.lang.String getTokenName(org.jbpm.graph.exe.Token parent, java.lang.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(java.lang.String var)
          Set the name of the variable to which the eleements of foreach are assigned.
 
Methods inherited from class org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler
getWorkflowInstanceId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForEachFork

public ForEachFork()
Method Detail

initialiseHandler

protected void initialiseHandler(org.springframework.beans.factory.BeanFactory factory)
Description copied from class: JBPMSpringActionHandler
Initialise Action Handler

Specified by:
initialiseHandler in class JBPMSpringActionHandler
Parameters:
factory - Spring bean factory for accessing Alfresco beans

execute

public void execute(org.jbpm.graph.exe.ExecutionContext executionContext)
             throws java.lang.Exception
Create a new child token for each item in list.

Parameters:
executionContext -
Throws:
java.lang.Exception

getTokenName

protected java.lang.String getTokenName(org.jbpm.graph.exe.Token parent,
                                        java.lang.String transitionName,
                                        int loopIndex)
Create a token name

Parameters:
parent -
transitionName -
Returns:

setForeach

public void setForeach(org.dom4j.Element foreach)
Sets the list of objects to be iterated over.

Parameters:
foreach - the list of objects to set

setVar

public void setVar(java.lang.String var)
Set the name of the variable to which the eleements of foreach are assigned.

Parameters:
var - the variable name to set


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