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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.activiti.bpmn.model.MapExceptionEntry>mapExceptionsprotected ExpressionprocessDefinitionExpressionprotected java.lang.StringprocessDefinitonKey-
Fields inherited from class org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior
-
Fields inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description CallActivityBehavior(java.lang.String processDefinitionKey, java.util.List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions)CallActivityBehavior(Expression processDefinitionExpression, java.util.List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.Object>calculateInboundVariables(DelegateExecution execution, ProcessDefinition processDefinition)protected java.util.Map<java.lang.String,java.lang.Object>calculateOutBoundVariables(DelegateExecution execution, java.util.Map<java.lang.String,java.lang.Object> subProcessVariables)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.voidexecute(DelegateExecution execution)Default behaviour: just leave the activity with no extra functionality.protected ProcessDefinitionfindProcessDefinition(java.lang.String processDefinitionKey, java.lang.String tenantId)java.lang.StringgetProcessDefinitonKey()protected voidinitializeVariables(ExecutionEntity subProcessInstance, java.util.Map<java.lang.String,java.lang.Object> variables)protected java.util.Map<java.lang.String,java.lang.Object>processDataObjects(java.util.Collection<org.activiti.bpmn.model.ValuedDataObject> dataObjects)voidsetProcessDefinitonKey(java.lang.String processDefinitonKey)-
Methods inherited from class org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior
-
Methods inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType, trigger
-
-
-
-
Field Detail
-
processDefinitonKey
protected java.lang.String processDefinitonKey
-
processDefinitionExpression
protected Expression processDefinitionExpression
-
mapExceptions
protected java.util.List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions
-
-
Constructor Detail
-
CallActivityBehavior
public CallActivityBehavior(java.lang.String processDefinitionKey, java.util.List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions)
-
CallActivityBehavior
public CallActivityBehavior(Expression processDefinitionExpression, java.util.List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions)
-
-
Method Detail
-
execute
public void execute(DelegateExecution execution)
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 java.lang.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:
java.lang.Exception
-
completed
public void completed(DelegateExecution execution) throws java.lang.Exception
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:
java.lang.Exception
-
findProcessDefinition
protected ProcessDefinition findProcessDefinition(java.lang.String processDefinitionKey, java.lang.String tenantId)
-
processDataObjects
protected java.util.Map<java.lang.String,java.lang.Object> processDataObjects(java.util.Collection<org.activiti.bpmn.model.ValuedDataObject> dataObjects)
-
initializeVariables
protected void initializeVariables(ExecutionEntity subProcessInstance, java.util.Map<java.lang.String,java.lang.Object> variables)
-
setProcessDefinitonKey
public void setProcessDefinitonKey(java.lang.String processDefinitonKey)
-
getProcessDefinitonKey
public java.lang.String getProcessDefinitonKey()
-
calculateInboundVariables
protected java.util.Map<java.lang.String,java.lang.Object> calculateInboundVariables(DelegateExecution execution, ProcessDefinition processDefinition)
-
calculateOutBoundVariables
protected java.util.Map<java.lang.String,java.lang.Object> calculateOutBoundVariables(DelegateExecution execution, java.util.Map<java.lang.String,java.lang.Object> subProcessVariables)
-
-