Class CallableElementActivityBehavior
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.CallableElementActivityBehavior
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>
,ActivityBehavior
,SignallableActivityBehavior
,SubProcessActivityBehavior
- Direct Known Subclasses:
CallActivityBehavior
,CaseCallActivityBehavior
public abstract class CallableElementActivityBehavior
extends AbstractBpmnActivityBehavior
implements SubProcessActivityBehavior
- Author:
- Roman Smirnov
-
Field Summary
Modifier and TypeFieldDescriptionprotected CallableElement
protected String
The class name of the delegated variable mapping, which should be used.protected Expression
The expression which identifies the delegation for the variable mapping.protected String[]
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
LOG
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
Constructor Summary
ConstructorDescriptionCallableElementActivityBehavior
(String className) CallableElementActivityBehavior
(Expression expression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
completed
(ActivityExecution execution) Called after the process instance is destroyed for this activity to perform its outgoing control flow logic.void
execute
(ActivityExecution execution) Default behaviour: just leave the activity with no extra functionality.protected VariableMap
filterVariables
(VariableMap variables) protected String
getBusinessKey
(ActivityExecution execution) protected DelegateVariableMapping
getDelegateVariableMapping
(Object instance) protected String
getDeploymentId
(ActivityExecution execution) protected VariableMap
getInputVariables
(ActivityExecution callingExecution) protected VariableMap
getOutputVariables
(VariableScope calledElementScope) protected VariableMap
getOutputVariablesLocal
(VariableScope calledElementScope) protected Integer
getVersion
(ActivityExecution execution) protected Object
instantiateDelegateClass
(ActivityExecution execution) protected void
invokeVarMappingDelegation
(DelegateInvocation delegation) protected boolean
protected boolean
protected boolean
void
passOutputVariables
(ActivityExecution execution, VariableScope subInstance) Pass the output variables from the process instance of the subprocess to the given execution.resolveDelegateClass
(ActivityExecution execution) protected DelegateVariableMapping
resolveDelegation
(ActivityExecution execution) void
setCallableElement
(CallableElement callableElement) protected abstract void
startInstance
(ActivityExecution execution, VariableMap variables, String businessKey) Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signal, signalCompensationDone
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
Field Details
-
variablesFilter
-
callableElement
-
expression
The expression which identifies the delegation for the variable mapping. -
className
The class name of the delegated variable mapping, which should be used.
-
-
Constructor Details
-
CallableElementActivityBehavior
public CallableElementActivityBehavior() -
CallableElementActivityBehavior
-
CallableElementActivityBehavior
-
-
Method Details
-
getDelegateVariableMapping
-
resolveDelegation
-
resolveDelegateClass
-
instantiateDelegateClass
-
execute
Description copied from class:FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.- Specified by:
execute
in interfaceActivityBehavior
- Specified by:
execute
in interfaceCoreActivityBehavior<ActivityExecution>
- Overrides:
execute
in classFlowNodeActivityBehavior
- Throws:
Exception
-
passOutputVariables
Description copied from interface:SubProcessActivityBehavior
Pass the output variables from the process instance of the subprocess to the given execution. This should be called before the process instance is destroyed.- Specified by:
passOutputVariables
in interfaceSubProcessActivityBehavior
- Parameters:
execution
- execution of the calling process instance to pass the variables tosubInstance
- instance of the called element that serves as the variable source
-
invokeVarMappingDelegation
-
filterVariables
-
completed
Description copied from interface:SubProcessActivityBehavior
Called after the process instance is destroyed for this activity to perform its outgoing control flow logic.- Specified by:
completed
in interfaceSubProcessActivityBehavior
- Throws:
Exception
-
getCallableElement
-
setCallableElement
-
getBusinessKey
-
getInputVariables
-
getOutputVariables
-
getOutputVariablesLocal
-
getVersion
-
getDeploymentId
-
getBinding
-
isLatestBinding
protected boolean isLatestBinding() -
isDeploymentBinding
protected boolean isDeploymentBinding() -
isVersionBinding
protected boolean isVersionBinding() -
startInstance
protected abstract void startInstance(ActivityExecution execution, VariableMap variables, String businessKey)
-