Class ParallelMultiInstanceBehavior
java.lang.Object
org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior
- All Implemented Interfaces:
Serializable,ActivityBehavior,SubProcessActivityBehavior,TriggerableActivityBehavior
- See Also:
-
Field Summary
Fields inherited from class org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
activity, collectionElementIndexVariable, collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, innerActivityBehavior, LOGGER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCESFields inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior -
Constructor Summary
ConstructorsConstructorDescriptionParallelMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior originalActivityBehavior) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcreateInstances(DelegateExecution execution) Handles the parallel case of spawning the instances.protected voiddeleteChildExecutions(ExecutionEntity parentExecution, boolean deleteExecution, CommandContext commandContext) voidleave(DelegateExecution execution) Called when the wrappedActivityBehaviorcalls theAbstractBpmnActivityBehavior.leave(ActivityExecution)method.protected voidlockFirstParentScope(DelegateExecution execution) Methods inherited from class org.activiti.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
callActivityEndListeners, completed, completing, completionConditionSatisfied, dispatchActivityCompletedEvent, execute, executeCompensationBoundaryEvents, executeOriginalBehavior, findBoundaryEventsForFlowNode, getCollectionElementIndexVariable, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCommandContext, getCompletionConditionExpression, getInnerActivityBehavior, getLocalLoopVariable, getLoopCardinalityExpression, getLoopDataOutputRef, getLoopVariable, getMultiInstanceRootExecution, getOutputDataItem, getProcessDefinition, getResultElementItem, getResultElementItem, hasLoopDataOutputRef, hasOutputDataItem, isExtraScopeNeeded, lastExecutionEnded, logLoopDetails, propagateLoopDataOutputRefToProcessInstance, removeLocalLoopVariable, resolveAndValidateCollection, resolveCollection, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementIndexVariable, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setInnerActivityBehavior, setLoopCardinalityExpression, setLoopDataOutputRef, setLoopVariable, setOutputDataItem, trigger, updateResultCollection, usesCollectionMethods inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType
-
Constructor Details
-
ParallelMultiInstanceBehavior
public ParallelMultiInstanceBehavior(Activity activity, AbstractBpmnActivityBehavior originalActivityBehavior)
-
-
Method Details
-
createInstances
Handles the parallel case of spawning the instances. Will create child executions accordingly for every instance needed.- Specified by:
createInstancesin classMultiInstanceActivityBehavior
-
leave
Called when the wrappedActivityBehaviorcalls theAbstractBpmnActivityBehavior.leave(ActivityExecution)method. Handles the completion of one of the parallel instances- Overrides:
leavein classFlowNodeActivityBehavior
-
lockFirstParentScope
-
deleteChildExecutions
protected void deleteChildExecutions(ExecutionEntity parentExecution, boolean deleteExecution, CommandContext commandContext)
-