public class ParallelMultiInstanceActivityBehavior extends MultiInstanceActivityBehavior implements MigrationObserverBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationExceptioncollectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, LOG, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCESbpmnActivityBehavior| Constructor and Description |
|---|
ParallelMultiInstanceActivityBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allExecutionsEnded(ActivityExecution scopeExecution,
ActivityExecution endedExecution) |
void |
complete(ActivityExecution scopeExecution) |
void |
concurrentChildExecutionEnded(ActivityExecution scopeExecution,
ActivityExecution endedExecution)
Invoked when an execution is ended within the scope of the composite
|
protected ActivityExecution |
createConcurrentExecution(ActivityExecution scopeExecution) |
ActivityExecution |
createInnerInstance(ActivityExecution scopeExecution)
Returns an execution that can be used to execute an activity within that scope.
|
protected void |
createInstances(ActivityExecution execution,
int nrOfInstances) |
void |
destroyInnerInstance(ActivityExecution concurrentExecution)
implement to destroy an execution in this scope and handle the scope's reorganization
(e.g.
|
List<ActivityExecution> |
initializeScope(ActivityExecution scopeExecution,
int numberOfInstances)
Implement to customize initialization of the scope.
|
void |
migrateScope(ActivityExecution scopeExecution)
Implement to perform activity-specific migration behavior that is not
covered by the regular migration procedure.
|
void |
onParseMigratingInstance(MigratingInstanceParseContext parseContext,
MigratingActivityInstance migratingInstance)
Callback to implement behavior specific parsing (e.g.
|
protected void |
prepareScopeExecution(ActivityExecution scopeExecution,
int nrOfInstances) |
completionConditionSatisfied, doLeave, evaluateCollectionVariable, execute, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCompletionConditionExpression, getElementAtIndex, getInnerActivity, getLocalLoopVariable, getLoopCardinalityExpression, getLoopVariable, hasLoopVariable, performInstance, removeLoopVariable, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setLoopCardinalityExpression, setLoopVariable, usesCollectioncheckIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDoneleave, leaveIgnoreConditionspublic ParallelMultiInstanceActivityBehavior()
protected void createInstances(ActivityExecution execution, int nrOfInstances) throws Exception
createInstances in class MultiInstanceActivityBehaviorExceptionprotected void prepareScopeExecution(ActivityExecution scopeExecution, int nrOfInstances)
protected ActivityExecution createConcurrentExecution(ActivityExecution scopeExecution)
public void concurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution)
CompositeActivityBehaviorconcurrentChildExecutionEnded in interface CompositeActivityBehaviorscopeExecution - scope execution for the activity which defined the behaviorendedExecution - the execution which endedprotected boolean allExecutionsEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution)
public void complete(ActivityExecution scopeExecution)
complete in interface CompositeActivityBehaviorpublic List<ActivityExecution> initializeScope(ActivityExecution scopeExecution, int numberOfInstances)
ModificationObserverBehaviorinitializeScope in interface ModificationObserverBehaviorpublic ActivityExecution createInnerInstance(ActivityExecution scopeExecution)
ModificationObserverBehaviorcreateInnerInstance in interface ModificationObserverBehaviorpublic void destroyInnerInstance(ActivityExecution concurrentExecution)
ModificationObserverBehaviordestroyInnerInstance in interface ModificationObserverBehaviorpublic void migrateScope(ActivityExecution scopeExecution)
MigrationObserverBehaviormigrateScope in interface MigrationObserverBehaviorpublic void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)
MigrationObserverBehavioronParseMigratingInstance in interface MigrationObserverBehaviorCopyright © 2018. All rights reserved.