public class ParallelMultiInstanceActivityBehavior extends MultiInstanceActivityBehavior implements MigrationObserverBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, LOG, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCES
bpmnActivityBehavior
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, usesCollection
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
leave, leaveIgnoreConditions
public ParallelMultiInstanceActivityBehavior()
protected void createInstances(ActivityExecution execution, int nrOfInstances) throws Exception
createInstances
in class MultiInstanceActivityBehavior
Exception
protected void prepareScopeExecution(ActivityExecution scopeExecution, int nrOfInstances)
protected ActivityExecution createConcurrentExecution(ActivityExecution scopeExecution)
public void concurrentChildExecutionEnded(ActivityExecution scopeExecution, ActivityExecution endedExecution)
CompositeActivityBehavior
concurrentChildExecutionEnded
in interface CompositeActivityBehavior
scopeExecution
- 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 CompositeActivityBehavior
public List<ActivityExecution> initializeScope(ActivityExecution scopeExecution, int numberOfInstances)
ModificationObserverBehavior
initializeScope
in interface ModificationObserverBehavior
public ActivityExecution createInnerInstance(ActivityExecution scopeExecution)
ModificationObserverBehavior
createInnerInstance
in interface ModificationObserverBehavior
public void destroyInnerInstance(ActivityExecution concurrentExecution)
ModificationObserverBehavior
destroyInnerInstance
in interface ModificationObserverBehavior
public void migrateScope(ActivityExecution scopeExecution)
MigrationObserverBehavior
migrateScope
in interface MigrationObserverBehavior
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)
MigrationObserverBehavior
onParseMigratingInstance
in interface MigrationObserverBehavior
Copyright © 2017. All rights reserved.