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 java.lang.String
className
protected java.util.List<FieldDeclaration>
fieldDeclarations
protected static BpmnBehaviorLogger
LOG
-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description ClassDelegateActivityBehavior(java.lang.Class<?> clazz, java.util.List<FieldDeclaration> fieldDeclarations)
ClassDelegateActivityBehavior(java.lang.String className, java.util.List<FieldDeclaration> fieldDeclarations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSignal(ActivityExecution execution, java.lang.String signalName, java.lang.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, java.lang.String signalName, java.lang.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 java.lang.String className
-
fieldDeclarations
protected java.util.List<FieldDeclaration> fieldDeclarations
-
-
Constructor Detail
-
ClassDelegateActivityBehavior
public ClassDelegateActivityBehavior(java.lang.String className, java.util.List<FieldDeclaration> fieldDeclarations)
-
ClassDelegateActivityBehavior
public ClassDelegateActivityBehavior(java.lang.Class<?> clazz, java.util.List<FieldDeclaration> fieldDeclarations)
-
-
Method Detail
-
execute
public void execute(ActivityExecution execution) throws java.lang.Exception
Description copied from class:FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.- Specified by:
execute
in interfaceActivityBehavior
- Specified by:
execute
in interfaceCoreActivityBehavior<ActivityExecution>
- Overrides:
execute
in classFlowNodeActivityBehavior
- Throws:
java.lang.Exception
-
signal
public void signal(ActivityExecution execution, java.lang.String signalName, java.lang.Object signalData) throws java.lang.Exception
- Specified by:
signal
in interfaceSignallableActivityBehavior
- Overrides:
signal
in classAbstractBpmnActivityBehavior
- Throws:
java.lang.Exception
-
doSignal
protected void doSignal(ActivityExecution execution, java.lang.String signalName, java.lang.Object signalData) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getActivityBehaviorInstance
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
-
-