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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<MapExceptionEntry>mapExceptionsprotected ExpressionprocessDefinitionExpressionprotected StringprocessDefinitionKey-
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(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>calculateInboundVariables(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)protected Map<String,Object>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)StringgetProcessDefinitionKey()protected voidinitializeVariables(ExecutionEntity subProcessInstance, Map<String,Object> variables)protected Map<String,Object>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, setMultiInstanceActivityBehavior
-
Methods inherited from class org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType, trigger
-
-
-
-
Field Detail
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionExpression
protected Expression processDefinitionExpression
-
mapExceptions
protected List<MapExceptionEntry> mapExceptions
-
-
Constructor Detail
-
CallActivityBehavior
public CallActivityBehavior(String processDefinitionKey, List<MapExceptionEntry> mapExceptions)
-
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 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 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
public void completed(DelegateExecution execution) throws 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:
Exception
-
setProcessDefinitionKey
public void setProcessDefinitionKey(String processDefinitionKey)
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
findProcessDefinition
protected ProcessDefinition findProcessDefinition(String processDefinitionKey, String tenantId)
-
processDataObjects
protected Map<String,Object> processDataObjects(Collection<ValuedDataObject> dataObjects)
-
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)
-
-