Class ClassDelegateActivityBehavior
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclassNameprotected List<FieldDeclaration>fieldDeclarationsprotected static BpmnBehaviorLoggerLOG-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description ClassDelegateActivityBehavior(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)ClassDelegateActivityBehavior(String className, List<FieldDeclaration> fieldDeclarations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoSignal(ActivityExecution execution, String signalName, Object signalData)voidexecute(ActivityExecution execution)Default behaviour: just leave the activity with no extra functionality.protected ActivityBehaviorgetActivityBehaviorInstance(ActivityExecution execution)voidsignal(ActivityExecution execution, String signalName, Object signalData)-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signalCompensationDone
-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
-
-
-
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:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Specified by:
executein interfaceCoreActivityBehavior<ActivityExecution>- Overrides:
executein classFlowNodeActivityBehavior- Throws:
Exception
-
signal
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception
- Specified by:
signalin interfaceSignallableActivityBehavior- Overrides:
signalin classAbstractBpmnActivityBehavior- Throws:
Exception
-
doSignal
protected void doSignal(ActivityExecution execution, String signalName, Object signalData) throws Exception
- Throws:
Exception
-
getActivityBehaviorInstance
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
-
-