org.camunda.bpm.engine.impl.bpmn.behavior
Class ParallelMultiInstanceActivityBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
          extended by org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
              extended by org.camunda.bpm.engine.impl.bpmn.behavior.ParallelMultiInstanceActivityBehavior
All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, CompositeActivityBehavior, ModificationObserverBehavior, SignallableActivityBehavior

public class ParallelMultiInstanceActivityBehavior
extends MultiInstanceActivityBehavior

Author:
Daniel Meyer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, LOG, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCES
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
ParallelMultiInstanceActivityBehavior()
           
 
Method Summary
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
 void concurrentExecutionCreated(ActivityExecution scopeExecution, ActivityExecution concurrentExecution)
          implement to handle reorganization of the scope when a concurrent execution in the scope is created (e.g.
 void concurrentExecutionDeleted(ActivityExecution scopeExecution, ActivityExecution concurrentExecution)
          implement to handle reorganization of the scope when a concurrent execution in the scope is removed (e.g.
protected  void createInstances(ActivityExecution execution, int nrOfInstances)
           
 ActivityExecution initializeScope(ActivityExecution scopeExecution)
          Implement to customize the creation of executions in the scope.
protected  void prepareScopeExecution(ActivityExecution scopeExecution, int nrOfInstances)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
completionConditionSatisfied, evaluateCollectionVariable, execute, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCompletionConditionExpression, getElementAtIndex, getInnerActivity, getLocalLoopVariable, getLoopCardinalityExpression, getLoopVariable, leave, performInstance, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setLoopCardinalityExpression, setLoopVariable, usesCollection
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelMultiInstanceActivityBehavior

public ParallelMultiInstanceActivityBehavior()
Method Detail

createInstances

protected void createInstances(ActivityExecution execution,
                               int nrOfInstances)
                        throws Exception
Specified by:
createInstances in class MultiInstanceActivityBehavior
Throws:
Exception

prepareScopeExecution

protected void prepareScopeExecution(ActivityExecution scopeExecution,
                                     int nrOfInstances)

concurrentChildExecutionEnded

public void concurrentChildExecutionEnded(ActivityExecution scopeExecution,
                                          ActivityExecution endedExecution)
Description copied from interface: CompositeActivityBehavior
Invoked when an execution is ended within the scope of the composite

Parameters:
scopeExecution - scope execution for the activity which defined the behavior
endedExecution - the execution which ended

allExecutionsEnded

protected boolean allExecutionsEnded(ActivityExecution scopeExecution,
                                     ActivityExecution endedExecution)

complete

public void complete(ActivityExecution scopeExecution)

initializeScope

public ActivityExecution initializeScope(ActivityExecution scopeExecution)
Description copied from interface: ModificationObserverBehavior
Implement to customize the creation of executions in the scope. Called with the scope execution already created for this scope, implementations may create additional execution, set variables, etc. (cf. parallel multi instance that always creates a concurrent execution, although there is only one instance)


concurrentExecutionCreated

public void concurrentExecutionCreated(ActivityExecution scopeExecution,
                                       ActivityExecution concurrentExecution)
Description copied from interface: ModificationObserverBehavior
implement to handle reorganization of the scope when a concurrent execution in the scope is created (e.g. implement to override the default pruning behavior)


concurrentExecutionDeleted

public void concurrentExecutionDeleted(ActivityExecution scopeExecution,
                                       ActivityExecution concurrentExecution)
Description copied from interface: ModificationObserverBehavior
implement to handle reorganization of the scope when a concurrent execution in the scope is removed (e.g. implement to override the default pruning behavior)



Copyright © 2015 camunda services GmbH. All rights reserved.