org.camunda.bpm.engine.impl.bpmn.behavior
Class SequentialMultiInstanceBehavior
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior
- All Implemented Interfaces:
- CoreActivityBehavior<ActivityExecution>, ActivityBehavior, CompositeActivityBehavior, SignallableActivityBehavior, SubProcessActivityBehavior
public class SequentialMultiInstanceBehavior
- extends MultiInstanceActivityBehavior
- Author:
- Joram Barrez, Falko Menge
| Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior |
activity, collectionElementVariable, collectionExpression, collectionVariable, completionConditionExpression, innerActivityBehavior, ioMapping, LOGGER, LOOP_COUNTER, loopCardinalityExpression, NUMBER_OF_ACTIVE_INSTANCES, NUMBER_OF_COMPLETED_INSTANCES, NUMBER_OF_INSTANCES |
| Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.MultiInstanceActivityBehavior |
callActivityEndListeners, completed, completing, completionConditionSatisfied, createInstancesIfPossible, executeIoMapping, executeOriginalBehavior, getCollectionElementVariable, getCollectionExpression, getCollectionVariable, getCompletionConditionExpression, getLocalLoopVariable, getLoopCardinalityExpression, getLoopVariable, isExtraScopeNeeded, lastExecutionEnded, logLoopDetails, resolveLoopCardinality, resolveNrOfInstances, setCollectionElementVariable, setCollectionExpression, setCollectionVariable, setCompletionConditionExpression, setInnerActivityBehavior, setIoMapping, setLoopCardinalityExpression, setLoopVariable, signal, usesCollection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequentialMultiInstanceBehavior
public SequentialMultiInstanceBehavior(ActivityImpl activity,
AbstractBpmnActivityBehavior innerActivityBehavior)
createInstances
protected void createInstances(ActivityExecution execution,
int nrOfInstances)
throws Exception
- Handles the sequential case of spawning the instances.
Will only create one instance, since at most one instance can be active.
- Specified by:
createInstances in class MultiInstanceActivityBehavior
- Throws:
Exception
leave
public void leave(ActivityExecution execution)
- Called when the wrapped
ActivityBehavior calls the
AbstractBpmnActivityBehavior.leave(ActivityExecution) method.
Handles the completion of one instance, and executes the logic for the sequential behavior.
- Overrides:
leave in class FlowNodeActivityBehavior
execute
public void execute(ActivityExecution execution)
throws Exception
- Description copied from class:
FlowNodeActivityBehavior
- Default behaviour: just leave the activity with no extra functionality.
- Specified by:
execute in interface CoreActivityBehavior<ActivityExecution>- Specified by:
execute in interface ActivityBehavior- Overrides:
execute in class MultiInstanceActivityBehavior
- Throws:
Exception
Copyright © 2014 camunda services GmbH. All rights reserved.