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
Fields Modifier and Type Field Description protected CallableElementcallableElementprotected java.lang.StringclassNameThe class name of the delegated variable mapping, which should be used.protected ExpressionexpressionThe expression which identifies the delegation for the variable mapping.protected java.lang.String[]variablesFilter- 
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
Constructors Constructor Description CallableElementActivityBehavior()CallableElementActivityBehavior(java.lang.String className)CallableElementActivityBehavior(Expression expression) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcompleted(ActivityExecution execution)Called after the process instance is destroyed for this activity to perform its outgoing control flow logic.voidexecute(ActivityExecution execution)Default behaviour: just leave the activity with no extra functionality.protected VariableMapfilterVariables(VariableMap variables)protected BaseCallableElement.CallableElementBindinggetBinding()protected java.lang.StringgetBusinessKey(ActivityExecution execution)CallableElementgetCallableElement()protected DelegateVariableMappinggetDelegateVariableMapping(java.lang.Object instance)protected java.lang.StringgetDeploymentId(ActivityExecution execution)protected VariableMapgetInputVariables(ActivityExecution callingExecution)protected VariableMapgetOutputVariables(VariableScope calledElementScope)protected VariableMapgetOutputVariablesLocal(VariableScope calledElementScope)protected java.lang.IntegergetVersion(ActivityExecution execution)protected java.lang.ObjectinstantiateDelegateClass(ActivityExecution execution)protected voidinvokeVarMappingDelegation(DelegateInvocation delegation)protected booleanisDeploymentBinding()protected booleanisLatestBinding()protected booleanisVersionBinding()voidpassOutputVariables(ActivityExecution execution, VariableScope subInstance)Pass the output variables from the process instance of the subprocess to the given execution.java.lang.ObjectresolveDelegateClass(ActivityExecution execution)protected DelegateVariableMappingresolveDelegation(ActivityExecution execution)voidsetCallableElement(CallableElement callableElement)protected abstract voidstartInstance(ActivityExecution execution, VariableMap variables, java.lang.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 Detail
- 
variablesFilter
protected java.lang.String[] variablesFilter
 
- 
callableElement
protected CallableElement callableElement
 
- 
expression
protected Expression expression
The expression which identifies the delegation for the variable mapping. 
- 
className
protected java.lang.String className
The class name of the delegated variable mapping, which should be used. 
 - 
 
- 
Constructor Detail
- 
CallableElementActivityBehavior
public CallableElementActivityBehavior()
 
- 
CallableElementActivityBehavior
public CallableElementActivityBehavior(java.lang.String className)
 
- 
CallableElementActivityBehavior
public CallableElementActivityBehavior(Expression expression)
 
 - 
 
- 
Method Detail
- 
getDelegateVariableMapping
protected DelegateVariableMapping getDelegateVariableMapping(java.lang.Object instance)
 
- 
resolveDelegation
protected DelegateVariableMapping resolveDelegation(ActivityExecution execution)
 
- 
resolveDelegateClass
public java.lang.Object resolveDelegateClass(ActivityExecution execution)
 
- 
instantiateDelegateClass
protected java.lang.Object instantiateDelegateClass(ActivityExecution execution)
 
- 
execute
public void execute(ActivityExecution execution) throws java.lang.Exception
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
 executein interfaceActivityBehavior- Specified by:
 executein interfaceCoreActivityBehavior<ActivityExecution>- Overrides:
 executein classFlowNodeActivityBehavior- Throws:
 java.lang.Exception
 
- 
passOutputVariables
public void passOutputVariables(ActivityExecution execution, VariableScope subInstance)
Description copied from interface:SubProcessActivityBehaviorPass 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:
 passOutputVariablesin 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
protected void invokeVarMappingDelegation(DelegateInvocation delegation)
 
- 
filterVariables
protected VariableMap filterVariables(VariableMap variables)
 
- 
completed
public void completed(ActivityExecution 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
 
- 
getCallableElement
public CallableElement getCallableElement()
 
- 
setCallableElement
public void setCallableElement(CallableElement callableElement)
 
- 
getBusinessKey
protected java.lang.String getBusinessKey(ActivityExecution execution)
 
- 
getInputVariables
protected VariableMap getInputVariables(ActivityExecution callingExecution)
 
- 
getOutputVariables
protected VariableMap getOutputVariables(VariableScope calledElementScope)
 
- 
getOutputVariablesLocal
protected VariableMap getOutputVariablesLocal(VariableScope calledElementScope)
 
- 
getVersion
protected java.lang.Integer getVersion(ActivityExecution execution)
 
- 
getDeploymentId
protected java.lang.String getDeploymentId(ActivityExecution execution)
 
- 
getBinding
protected BaseCallableElement.CallableElementBinding getBinding()
 
- 
isLatestBinding
protected boolean isLatestBinding()
 
- 
isDeploymentBinding
protected boolean isDeploymentBinding()
 
- 
isVersionBinding
protected boolean isVersionBinding()
 
- 
startInstance
protected abstract void startInstance(ActivityExecution execution, VariableMap variables, java.lang.String businessKey)
 
 - 
 
 -