Class ParallelMultiInstanceActivityBehavior
java.lang.Object
org.operaton.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.operaton.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.operaton.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
org.operaton.bpm.engine.impl.bpmn.behavior.ParallelMultiInstanceActivityBehavior
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>,ActivityBehavior,CompositeActivityBehavior,MigrationObserverBehavior,ModificationObserverBehavior,SignallableActivityBehavior
public class ParallelMultiInstanceActivityBehavior
extends MultiInstanceActivityBehavior
implements MigrationObserverBehavior
- Author:
- Daniel Meyer
-
Field Summary
Fields inherited from class org.operaton.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, LOG, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCESFields inherited from class org.operaton.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanallExecutionsEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) voidcomplete(ActivityExecution scopeExecution) voidconcurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) Invoked when an execution is ended within the scope of the compositeprotected ActivityExecutioncreateConcurrentExecution(ActivityExecution scopeExecution) createInnerInstance(ActivityExecution scopeExecution) Returns an execution that can be used to execute an activity within that scope.protected voidcreateInstances(ActivityExecution execution, int nrOfInstances) voiddestroyInnerInstance(ActivityExecution concurrentExecution) implement to destroy an execution in this scope and handle the scope's reorganization (e.g. implement to override the default pruning behavior).initializeScope(ActivityExecution scopeExecution, int numberOfInstances) Implement to customize initialization of the scope.voidmigrateScope(ActivityExecution scopeExecution) Implement to perform activity-specific migration behavior that is not covered by the regular migration procedure.voidonParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) Callback to implement behavior specific parsing (e.g. adding additional dependent entities).protected voidprepareScopeExecution(ActivityExecution scopeExecution, int nrOfInstances) Methods inherited from class org.operaton.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
completionConditionSatisfied, doLeave, evaluateCollection, evaluateCollectionVariable, execute, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCompletionConditionExpression, getElementAtIndex, getInnerActivity, getLocalLoopVariable, getLoopCardinalityExpression, getLoopVariable, hasLoopVariable, performInstance, removeLoopVariable, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setLoopCardinalityExpression, setLoopVariable, usesCollectionMethods inherited from class org.operaton.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, signal, signalCompensationDoneMethods inherited from class org.operaton.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
Constructor Details
-
ParallelMultiInstanceActivityBehavior
public ParallelMultiInstanceActivityBehavior()
-
-
Method Details
-
createInstances
- Specified by:
createInstancesin classMultiInstanceActivityBehavior- Throws:
Exception
-
prepareScopeExecution
-
createConcurrentExecution
-
concurrentChildExecutionEnded
public void concurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) Description copied from interface:CompositeActivityBehaviorInvoked when an execution is ended within the scope of the composite- Specified by:
concurrentChildExecutionEndedin interfaceCompositeActivityBehavior- Parameters:
scopeExecution- scope execution for the activity which defined the behaviorendedExecution- the execution which ended
-
allExecutionsEnded
protected boolean allExecutionsEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution) -
complete
- Specified by:
completein interfaceCompositeActivityBehavior
-
initializeScope
public List<ActivityExecution> initializeScope(ActivityExecution scopeExecution, int numberOfInstances) Description copied from interface:ModificationObserverBehaviorImplement to customize initialization of the scope. Called with the scope execution already created. Implementations may set variables, etc. Implementations should provide return as many executions as there are requested by the argument. Valid number of instances are >= 0.- Specified by:
initializeScopein interfaceModificationObserverBehavior
-
createInnerInstance
Description copied from interface:ModificationObserverBehaviorReturns an execution that can be used to execute an activity within that scope. May reorganize other executions in that scope (e.g. implement to override the default pruning behavior).- Specified by:
createInnerInstancein interfaceModificationObserverBehavior
-
destroyInnerInstance
Description copied from interface:ModificationObserverBehaviorimplement to destroy an execution in this scope and handle the scope's reorganization (e.g. implement to override the default pruning behavior). The argument execution is not yet removed.- Specified by:
destroyInnerInstancein interfaceModificationObserverBehavior
-
migrateScope
Description copied from interface:MigrationObserverBehaviorImplement to perform activity-specific migration behavior that is not covered by the regular migration procedure. Called after the scope execution and any ancestor executions have been migrated to their target activities and process definition.- Specified by:
migrateScopein interfaceMigrationObserverBehavior
-
onParseMigratingInstance
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) Description copied from interface:MigrationObserverBehaviorCallback to implement behavior specific parsing (e.g. adding additional dependent entities).- Specified by:
onParseMigratingInstancein interfaceMigrationObserverBehavior
-