Class CallActivityBehavior
- java.lang.Object
-
- org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- org.flowable.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).- Author:
- Joram Barrez, Tijs Rademakers
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.bpmn.model.CallActivitycallActivitystatic StringCALLED_ELEMENT_TYPE_IDstatic StringCALLED_ELEMENT_TYPE_KEYprotected StringcalledElementTypeprotected BooleanfallbackToDefaultTenantprotected List<org.flowable.bpmn.model.MapExceptionEntry>mapExceptions-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior
-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description CallActivityBehavior(org.flowable.bpmn.model.CallActivity callActivity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 StringgetCalledElementValue(DelegateExecution execution, ProcessEngineConfigurationImpl processEngineConfiguration)protected ProcessDefinitiongetProcessDefinition(DelegateExecution execution, org.flowable.bpmn.model.CallActivity callActivity, ProcessEngineConfigurationImpl processEngineConfiguration)protected ProcessDefinitiongetProcessDefinitionById(DelegateExecution execution, ProcessEngineConfigurationImpl processEngineConfiguration)protected ProcessDefinitiongetProcessDefinitionByKey(DelegateExecution execution, boolean isSameDeployment, ProcessEngineConfigurationImpl processEngineConfiguration)protected voidinitializeTransientVariables(ExecutionEntity subProcessInstance, Map<String,Object> transientVariables)protected voidinitializeVariables(ExecutionEntity subProcessInstance, Map<String,Object> variables)protected Map<String,Object>processDataObjects(Collection<org.flowable.bpmn.model.ValuedDataObject> dataObjects)-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior
-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType, trigger
-
-
-
-
Field Detail
-
CALLED_ELEMENT_TYPE_KEY
public static final String CALLED_ELEMENT_TYPE_KEY
- See Also:
- Constant Field Values
-
CALLED_ELEMENT_TYPE_ID
public static final String CALLED_ELEMENT_TYPE_ID
- See Also:
- Constant Field Values
-
callActivity
protected org.flowable.bpmn.model.CallActivity callActivity
-
calledElementType
protected String calledElementType
-
fallbackToDefaultTenant
protected Boolean fallbackToDefaultTenant
-
mapExceptions
protected List<org.flowable.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
-
getProcessDefinition
protected ProcessDefinition getProcessDefinition(DelegateExecution execution, org.flowable.bpmn.model.CallActivity callActivity, ProcessEngineConfigurationImpl processEngineConfiguration)
-
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
-
getProcessDefinitionById
protected ProcessDefinition getProcessDefinitionById(DelegateExecution execution, ProcessEngineConfigurationImpl processEngineConfiguration)
-
getProcessDefinitionByKey
protected ProcessDefinition getProcessDefinitionByKey(DelegateExecution execution, boolean isSameDeployment, ProcessEngineConfigurationImpl processEngineConfiguration)
-
getCalledElementValue
protected String getCalledElementValue(DelegateExecution execution, ProcessEngineConfigurationImpl processEngineConfiguration)
-
processDataObjects
protected Map<String,Object> processDataObjects(Collection<org.flowable.bpmn.model.ValuedDataObject> dataObjects)
-
initializeVariables
protected void initializeVariables(ExecutionEntity subProcessInstance, Map<String,Object> variables)
-
initializeTransientVariables
protected void initializeTransientVariables(ExecutionEntity subProcessInstance, Map<String,Object> transientVariables)
-
-