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.ErrorDeclarationFinder, AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.LeafExecutionHierarchyWalker, AbstractBpmnActivityBehavior.ProcessInstanceCollector
 
Field Summary
protected  CallableElement callableElement
           
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
CallableElementActivityBehavior()
           
 
Method Summary
 void completed(ActivityExecution execution)
          called after the process instance is destroyed for this activity to perform its outgoing control flow logic.
 void completing(VariableScope execution, VariableScope subInstance)
          called before the process instance is destroyed to allow this activity to extract data from the sub process instance.
 void execute(ActivityExecution execution)
          Default behaviour: just leave the activity with no extra functionality.
protected  CallableElement.CallableElementBinding getBinding()
           
protected  String getBusinessKey(ActivityExecution execution)
           
 CallableElement getCallableElement()
           
protected  String getDeploymentId(ActivityExecution execution)
           
protected  VariableMap getInputVariables(ActivityExecution execution)
           
protected  VariableMap getOutputVariables(VariableScope variableScope)
           
protected  Integer getVersion(ActivityExecution execution)
           
protected  boolean isDeploymentBinding()
           
protected  boolean isLatestBinding()
           
protected  boolean isVersionBinding()
           
 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, getCompensationHandler, getCurrentFlowScope, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateBpmnError, propagateError, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callableElement

protected CallableElement callableElement
Constructor Detail

CallableElementActivityBehavior

public CallableElementActivityBehavior()
Method Detail

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

completing

public void completing(VariableScope execution,
                       VariableScope subInstance)
                throws Exception
Description copied from interface: SubProcessActivityBehavior
called 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:
completing in interface SubProcessActivityBehavior
Throws:
Exception

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 VariableMap getInputVariables(ActivityExecution execution)

getOutputVariables

protected VariableMap getOutputVariables(VariableScope variableScope)

getVersion

protected Integer getVersion(ActivityExecution execution)

getDeploymentId

protected String getDeploymentId(ActivityExecution execution)

getBinding

protected CallableElement.CallableElementBinding getBinding()

isLatestBinding

protected boolean isLatestBinding()

isDeploymentBinding

protected boolean isDeploymentBinding()

isVersionBinding

protected boolean isVersionBinding()

startInstance

protected abstract void startInstance(ActivityExecution execution,
                                      VariableMap variables,
                                      String businessKey)


Copyright © 2015 camunda services GmbH. All rights reserved.