public abstract class CallableElementActivityBehavior extends AbstractBpmnActivityBehavior implements SubProcessActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
Modifier and Type | Field and Description |
---|---|
protected CallableElement |
callableElement |
protected String |
className
The class name of the delegated variable mapping, which should be used.
|
protected Expression |
expression
The expression which identifies the delegation for the variable mapping.
|
protected String[] |
variablesFilter |
LOG
bpmnActivityBehavior
Constructor and Description |
---|
CallableElementActivityBehavior() |
CallableElementActivityBehavior(Expression expression) |
CallableElementActivityBehavior(String className) |
Modifier and Type | Method and Description |
---|---|
void |
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 org.camunda.bpm.engine.variable.VariableMap |
filterVariables(org.camunda.bpm.engine.variable.VariableMap variables) |
protected BaseCallableElement.CallableElementBinding |
getBinding() |
protected String |
getBusinessKey(ActivityExecution execution) |
CallableElement |
getCallableElement() |
protected DelegateVariableMapping |
getDelegateVariableMapping(Object instance) |
protected String |
getDeploymentId(ActivityExecution execution) |
protected org.camunda.bpm.engine.variable.VariableMap |
getInputVariables(ActivityExecution callingExecution) |
protected org.camunda.bpm.engine.variable.VariableMap |
getOutputVariables(VariableScope calledElementScope) |
protected org.camunda.bpm.engine.variable.VariableMap |
getOutputVariablesLocal(VariableScope calledElementScope) |
protected Integer |
getVersion(ActivityExecution execution) |
protected Object |
instantiateDelegateClass(ActivityExecution execution) |
protected void |
invokeVarMappingDelegation(DelegateInvocation delegation) |
protected boolean |
isDeploymentBinding() |
protected boolean |
isLatestBinding() |
protected boolean |
isVersionBinding() |
void |
passOutputVariables(ActivityExecution execution,
VariableScope subInstance)
Pass the output variables from the process instance of the subprocess to the given execution.
|
Object |
resolveDelegateClass(ActivityExecution execution) |
protected DelegateVariableMapping |
resolveDelegation(ActivityExecution execution) |
void |
setCallableElement(CallableElement callableElement) |
protected abstract void |
startInstance(ActivityExecution execution,
org.camunda.bpm.engine.variable.VariableMap variables,
String businessKey) |
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
leave, leaveIgnoreConditions
protected String[] variablesFilter
protected CallableElement callableElement
protected Expression expression
protected String className
public CallableElementActivityBehavior()
public CallableElementActivityBehavior(String className)
public CallableElementActivityBehavior(Expression expression)
protected DelegateVariableMapping getDelegateVariableMapping(Object instance)
protected DelegateVariableMapping resolveDelegation(ActivityExecution execution)
public Object resolveDelegateClass(ActivityExecution execution)
protected Object instantiateDelegateClass(ActivityExecution execution)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehavior
execute
in interface CoreActivityBehavior<ActivityExecution>
execute
in interface ActivityBehavior
execute
in class FlowNodeActivityBehavior
Exception
public void passOutputVariables(ActivityExecution execution, VariableScope subInstance)
SubProcessActivityBehavior
passOutputVariables
in interface SubProcessActivityBehavior
execution
- execution of the calling process instance to pass the variables tosubInstance
- instance of the called element that serves as the variable sourceprotected void invokeVarMappingDelegation(DelegateInvocation delegation)
protected org.camunda.bpm.engine.variable.VariableMap filterVariables(org.camunda.bpm.engine.variable.VariableMap variables)
public void completed(ActivityExecution execution) throws Exception
SubProcessActivityBehavior
completed
in interface SubProcessActivityBehavior
Exception
public CallableElement getCallableElement()
public void setCallableElement(CallableElement callableElement)
protected String getBusinessKey(ActivityExecution execution)
protected org.camunda.bpm.engine.variable.VariableMap getInputVariables(ActivityExecution callingExecution)
protected org.camunda.bpm.engine.variable.VariableMap getOutputVariables(VariableScope calledElementScope)
protected org.camunda.bpm.engine.variable.VariableMap getOutputVariablesLocal(VariableScope calledElementScope)
protected Integer getVersion(ActivityExecution execution)
protected String getDeploymentId(ActivityExecution execution)
protected BaseCallableElement.CallableElementBinding getBinding()
protected boolean isLatestBinding()
protected boolean isDeploymentBinding()
protected boolean isVersionBinding()
protected abstract void startInstance(ActivityExecution execution, org.camunda.bpm.engine.variable.VariableMap variables, String businessKey)
Copyright © 2017. All rights reserved.