org.camunda.bpm.engine.impl.bpmn.behavior
Class CallableElementActivityBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
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
           
 
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
CallableElementActivityBehavior()
           
CallableElementActivityBehavior(Expression expression)
           
CallableElementActivityBehavior(String className)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variablesFilter

protected String[] variablesFilter

callableElement

protected CallableElement callableElement

expression

protected Expression expression
The expression which identifies the delegation for the variable mapping.


className

protected String className
The class name of the delegated variable mapping, which should be used.

Constructor Detail

CallableElementActivityBehavior

public CallableElementActivityBehavior()

CallableElementActivityBehavior

public CallableElementActivityBehavior(String className)

CallableElementActivityBehavior

public CallableElementActivityBehavior(Expression expression)
Method Detail

getDelegateVariableMapping

protected DelegateVariableMapping getDelegateVariableMapping(Object instance)

resolveDelegation

protected DelegateVariableMapping resolveDelegation(ActivityExecution execution)

resolveDelegateClass

public Object resolveDelegateClass(ActivityExecution execution)

instantiateDelegateClass

protected Object instantiateDelegateClass(ActivityExecution execution)

execute

public void execute(ActivityExecution execution)
             throws Exception
Description copied from class: FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.

Specified by:
execute in interface CoreActivityBehavior<ActivityExecution>
Specified by:
execute in interface ActivityBehavior
Overrides:
execute in class FlowNodeActivityBehavior
Throws:
Exception

passOutputVariables

public void passOutputVariables(ActivityExecution execution,
                                VariableScope subInstance)
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 interface SubProcessActivityBehavior
Parameters:
execution - execution of the calling process instance to pass the variables to
subInstance - instance of the called element that serves as the variable source

invokeVarMappingDelegation

protected void invokeVarMappingDelegation(DelegateInvocation delegation)

filterVariables

protected org.camunda.bpm.engine.variable.VariableMap filterVariables(org.camunda.bpm.engine.variable.VariableMap variables)

completed

public void completed(ActivityExecution execution)
               throws Exception
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 interface SubProcessActivityBehavior
Throws:
Exception

getCallableElement

public CallableElement getCallableElement()

setCallableElement

public void setCallableElement(CallableElement callableElement)

getBusinessKey

protected String getBusinessKey(ActivityExecution execution)

getInputVariables

protected org.camunda.bpm.engine.variable.VariableMap getInputVariables(ActivityExecution callingExecution)

getOutputVariables

protected org.camunda.bpm.engine.variable.VariableMap getOutputVariables(VariableScope calledElementScope)

getOutputVariablesLocal

protected org.camunda.bpm.engine.variable.VariableMap getOutputVariablesLocal(VariableScope calledElementScope)

getVersion

protected Integer getVersion(ActivityExecution execution)

getDeploymentId

protected 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,
                                      org.camunda.bpm.engine.variable.VariableMap variables,
                                      String businessKey)


Copyright © 2017 camunda services GmbH. All rights reserved.