org.camunda.bpm.engine.impl.bpmn.behavior
Class ParallelMultiInstanceBehavior
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior
- All Implemented Interfaces:
- CoreActivityBehavior<ActivityExecution>, ActivityBehavior, CompositeActivityBehavior, SignallableActivityBehavior, SubProcessActivityBehavior
public class ParallelMultiInstanceBehavior
- extends MultiInstanceActivityBehavior
- Author:
- Joram Barrez, Ronny Bräunlich
| Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior |
activity, collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, innerActivityBehavior, ioMapping, LOGGER, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCES |
| Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior |
callActivityEndListeners, completed, completing, completionConditionSatisfied, createInstancesIfPossible, execute, executeIoMapping, executeOriginalBehavior, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCompletionConditionExpression, getElementAtIndex, getLocalLoopVariable, getLoopCardinalityExpression, getLoopVariable, isExtraScopeNeeded, lastExecutionEnded, logLoopDetails, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setInnerActivityBehavior, setIoMapping, setLoopCardinalityExpression, setLoopVariable, signal, usesCollection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParallelMultiInstanceBehavior
public ParallelMultiInstanceBehavior(ActivityImpl activity,
AbstractBpmnActivityBehavior originalActivityBehavior)
createInstances
protected void createInstances(ActivityExecution execution,
int nrOfInstances)
throws Exception
- Handles the parallel case of spawning the instances. Will create child
executions accordingly for every instance needed.
- Specified by:
createInstances in class MultiInstanceActivityBehavior
- Throws:
Exception
doExecuteOriginalBehavior
protected void doExecuteOriginalBehavior(ActivityExecution execution,
int loopCounter)
throws Exception
- Description copied from class:
MultiInstanceActivityBehavior
- Subclasses get the chance to adapt their behavior according to the current loop counter.
- Specified by:
doExecuteOriginalBehavior in class MultiInstanceActivityBehavior
- Throws:
Exception
createConcurrentExecutions
protected List<ActivityExecution> createConcurrentExecutions(ActivityExecution execution,
int nrOfInstances)
createTimerJobsForExecution
protected void createTimerJobsForExecution(ActivityExecution execution)
leave
public void leave(ActivityExecution execution)
- Called when the wrapped
ActivityBehavior calls the
AbstractBpmnActivityBehavior.leave(ActivityExecution) method.
Handles the completion of one of the parallel instances
- Overrides:
leave in class FlowNodeActivityBehavior
fixMiRootActivityInstanceId
protected void fixMiRootActivityInstanceId(ActivityExecution execution)
resetMiRootActivityInstanceId
protected void resetMiRootActivityInstanceId(ActivityExecution execution)
Copyright © 2015 camunda services GmbH. All rights reserved.