Class CallActivityBehavior
java.lang.Object
org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.activiti.engine.impl.bpmn.behavior.CallActivityBehavior
- All Implemented Interfaces:
Serializable,ActivityBehavior,SubProcessActivityBehavior,TriggerableActivityBehavior
public class CallActivityBehavior
extends AbstractBpmnActivityBehavior
implements SubProcessActivityBehavior
Implementation of the BPMN 2.0 call activity (limited currently to calling a subprocess and not (yet) a global task).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<MapExceptionEntry>protected Expressionprotected StringFields inherited from class org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehaviorFields inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior -
Constructor Summary
ConstructorsConstructorDescriptionCallActivityBehavior(String processDefinitionKey, List<MapExceptionEntry> mapExceptions) CallActivityBehavior(String processDefinitionKey, List<MapExceptionEntry> mapExceptions, VariablesPropagator variablesPropagator) CallActivityBehavior(Expression processDefinitionExpression, List<MapExceptionEntry> mapExceptions) CallActivityBehavior(Expression processDefinitionExpression, List<MapExceptionEntry> mapExceptions, VariablesPropagator variablesPropagator) -
Method Summary
Modifier and TypeMethodDescriptioncalculateInboundVariables(DelegateExecution execution, ProcessDefinition processDefinition) voidcompleted(DelegateExecution execution) called after the process instance is destroyed for this activity to perform its outgoing control flow logic.voidcompleting(DelegateExecution execution, DelegateExecution subProcessInstance) called before the process instance is destroyed to allow this activity to extract data from the sub process instance.protected DelegateExecutioncopyOutParameters(DelegateExecution execution, DelegateExecution subProcessInstance) copyProcessVariables(DelegateExecution execution, ExpressionManager expressionManager, CallActivity callActivity, Map<String, Object> variables) voidexecute(DelegateExecution execution) Default behaviour: just leave the activity with no extra functionality.protected ProcessDefinitionfindProcessDefinition(String processDefinitionKey, String tenantId) protected voidinitializeVariables(ExecutionEntity subProcessInstance, Map<String, Object> variables) processDataObjects(Collection<ValuedDataObject> dataObjects) voidsetProcessDefinitionKey(String processDefinitionKey) Methods inherited from class org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehaviorMethods inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType, trigger
-
Field Details
-
processDefinitionKey
-
processDefinitionExpression
-
mapExceptions
-
-
Constructor Details
-
CallActivityBehavior
-
CallActivityBehavior
public CallActivityBehavior(String processDefinitionKey, List<MapExceptionEntry> mapExceptions, VariablesPropagator variablesPropagator) -
CallActivityBehavior
public CallActivityBehavior(Expression processDefinitionExpression, List<MapExceptionEntry> mapExceptions) -
CallActivityBehavior
public CallActivityBehavior(Expression processDefinitionExpression, List<MapExceptionEntry> mapExceptions, VariablesPropagator variablesPropagator)
-
-
Method Details
-
execute
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Overrides:
executein classFlowNodeActivityBehavior
-
completing
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception Description copied from interface:SubProcessActivityBehaviorcalled before the process instance is destroyed to allow this activity to extract data from the sub process instance. No control flow should be done on the execution yet.- Specified by:
completingin interfaceSubProcessActivityBehavior- Throws:
Exception
-
completed
Description copied from interface:SubProcessActivityBehaviorcalled after the process instance is destroyed for this activity to perform its outgoing control flow logic.- Specified by:
completedin interfaceSubProcessActivityBehavior- Throws:
Exception
-
setProcessDefinitionKey
-
getProcessDefinitionKey
-
findProcessDefinition
-
processDataObjects
-
initializeVariables
protected void initializeVariables(ExecutionEntity subProcessInstance, Map<String, Object> variables) -
calculateInboundVariables
protected Map<String,Object> calculateInboundVariables(DelegateExecution execution, ProcessDefinition processDefinition) -
copyProcessVariables
protected Map<String,Object> copyProcessVariables(DelegateExecution execution, ExpressionManager expressionManager, CallActivity callActivity, Map<String, Object> variables) -
copyOutParameters
protected DelegateExecution copyOutParameters(DelegateExecution execution, DelegateExecution subProcessInstance)
-