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

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.ClassDelegateActivityBehavior
All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, SignallableActivityBehavior

public class ClassDelegateActivityBehavior
extends AbstractBpmnActivityBehavior

Helper class for bpmn constructs that allow class delegation. This class will lazily instantiate the referenced classes when needed at runtime.

Author:
Joram Barrez, Falko Menge, 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  String className
           
protected  List<FieldDeclaration> fieldDeclarations
           
protected static BpmnBehaviorLogger LOG
           
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
ClassDelegateActivityBehavior(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
           
ClassDelegateActivityBehavior(String className, List<FieldDeclaration> fieldDeclarations)
           
 
Method Summary
protected  void doSignal(ActivityExecution execution, String signalName, Object signalData)
           
 void execute(ActivityExecution execution)
          Default behaviour: just leave the activity with no extra functionality.
protected  ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
           
 void signal(ActivityExecution execution, String signalName, Object signalData)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, 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

LOG

protected static final BpmnBehaviorLogger LOG

className

protected String className

fieldDeclarations

protected List<FieldDeclaration> fieldDeclarations
Constructor Detail

ClassDelegateActivityBehavior

public ClassDelegateActivityBehavior(String className,
                                     List<FieldDeclaration> fieldDeclarations)

ClassDelegateActivityBehavior

public ClassDelegateActivityBehavior(Class<?> clazz,
                                     List<FieldDeclaration> fieldDeclarations)
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

signal

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

doSignal

protected void doSignal(ActivityExecution execution,
                        String signalName,
                        Object signalData)
                 throws Exception
Throws:
Exception

getActivityBehaviorInstance

protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)


Copyright © 2016 camunda services GmbH. All rights reserved.