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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, SignallableActivityBehavior
Direct Known Subclasses:
CallableElementActivityBehavior, CancelEndEventActivityBehavior, ClassDelegateActivityBehavior, ErrorEndEventActivityBehavior, IntermediateCatchEventActivityBehavior, IntermediateThrowSignalEventActivityBehavior, MailActivityBehavior, ShellActivityBehavior, SubProcessActivityBehavior, TaskActivityBehavior

public class AbstractBpmnActivityBehavior
extends FlowNodeActivityBehavior

Denotes an 'activity' in the sense of BPMN 2.0: a parent class for all tasks, subprocess and callActivity.

Author:
Joram Barrez, Daniel Meyer, Thorben Lindhauer

Nested Class Summary
static class AbstractBpmnActivityBehavior.ErrorDeclarationFinder
           
static class AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder
           
static class AbstractBpmnActivityBehavior.LeafExecutionHierarchyWalker
          In a hierarchy of process instances, visits all leaf executions (i.e.
static class AbstractBpmnActivityBehavior.ProcessInstanceCollector
           
 
Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
AbstractBpmnActivityBehavior()
           
 
Method Summary
protected  void createCompensateEventSubscription(ActivityExecution execution, ActivityImpl compensationHandler)
           
protected  ActivityImpl getCompensationHandler(PvmActivity activity)
           
protected static ScopeImpl getCurrentFlowScope(ActivityExecution execution)
          Assumption: execution is executing a transition or an activity.
protected  boolean isProcessEngineExceptionWithoutCause(Exception exception)
           
protected  boolean isTransactionNotActive()
           
protected  void leave(ActivityExecution execution)
          Subclasses that call leave() will first pass through this method, before the regular FlowNodeActivityBehavior.leave(ActivityExecution) is called.
protected  void propagateBpmnError(BpmnError error, ActivityExecution execution)
           
protected  void propagateError(String errorCode, Exception origException, ActivityExecution execution)
           
protected  void propagateExceptionAsError(Exception exception, ActivityExecution execution)
           
 void signal(ActivityExecution execution, String signalName, Object signalData)
           
protected  void signalCompensationDone(ActivityExecution execution, Object signalData)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
execute, leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBpmnActivityBehavior

public AbstractBpmnActivityBehavior()
Method Detail

leave

protected void leave(ActivityExecution execution)
Subclasses that call leave() will first pass through this method, before the regular FlowNodeActivityBehavior.leave(ActivityExecution) is called.

Overrides:
leave in class FlowNodeActivityBehavior

getCompensationHandler

protected ActivityImpl getCompensationHandler(PvmActivity activity)

createCompensateEventSubscription

protected void createCompensateEventSubscription(ActivityExecution execution,
                                                 ActivityImpl compensationHandler)

propagateExceptionAsError

protected void propagateExceptionAsError(Exception exception,
                                         ActivityExecution execution)
                                  throws Exception
Throws:
Exception

isTransactionNotActive

protected boolean isTransactionNotActive()

isProcessEngineExceptionWithoutCause

protected boolean isProcessEngineExceptionWithoutCause(Exception exception)

propagateBpmnError

protected void propagateBpmnError(BpmnError error,
                                  ActivityExecution execution)
                           throws Exception
Throws:
Exception

propagateError

protected void propagateError(String errorCode,
                              Exception origException,
                              ActivityExecution execution)
                       throws Exception
Throws:
Exception

getCurrentFlowScope

protected static ScopeImpl getCurrentFlowScope(ActivityExecution execution)
Assumption: execution is executing a transition or an activity.

Returns:
the scope for the transition or activity the execution is currently executing

signal

public void signal(ActivityExecution execution,
                   String signalName,
                   Object signalData)
            throws Exception
Specified by:
signal in interface SignallableActivityBehavior
Overrides:
signal in class FlowNodeActivityBehavior
Throws:
Exception

signalCompensationDone

protected void signalCompensationDone(ActivityExecution execution,
                                      Object signalData)


Copyright © 2015 camunda services GmbH. All rights reserved.