Class ClassDelegate
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
org.flowable.engine.impl.bpmn.helper.ClassDelegate
- All Implemented Interfaces:
Serializable
,BaseExecutionListener
,CustomPropertiesResolver
,ExecutionListener
,TransactionDependentExecutionListener
,TransactionDependentTaskListener
,ActivityBehavior
,SubProcessActivityBehavior
,TriggerableActivityBehavior
,BaseTaskListener
,TaskListener
public class ClassDelegate
extends AbstractClassDelegate
implements TaskListener, ExecutionListener, TransactionDependentExecutionListener, TransactionDependentTaskListener, SubProcessActivityBehavior, CustomPropertiesResolver
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, Saeid Mirzaei, Yvo Swillens, martin.grofcik
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityBehavior
protected CustomPropertiesResolver
protected List<MapExceptionEntry>
protected Expression
protected boolean
Fields inherited from class org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
className, fieldDeclarations, serviceTaskId
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior, v5MultiInstanceActivityBehavior
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
Fields inherited from interface org.flowable.engine.delegate.BaseExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
Fields inherited from interface org.flowable.task.service.delegate.BaseTaskListener
EVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE
Fields inherited from interface org.flowable.engine.delegate.TransactionDependentExecutionListener
ON_TRANSACTION_BEFORE_COMMIT, ON_TRANSACTION_COMMITTED, ON_TRANSACTION_ROLLED_BACK
Fields inherited from interface org.flowable.engine.delegate.TransactionDependentTaskListener
ON_TRANSACTION_COMMITTED, ON_TRANSACTION_COMMITTING, ON_TRANSACTION_ROLLED_BACK
-
Constructor Summary
ConstructorsConstructorDescriptionClassDelegate
(Class<?> clazz, List<FieldDeclaration> fieldDeclarations) ClassDelegate
(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, Expression skipExpression) ClassDelegate
(String id, String className, List<FieldDeclaration> fieldDeclarations, boolean triggerable, Expression skipExpression, List<MapExceptionEntry> mapExceptions) ClassDelegate
(String className, List<FieldDeclaration> fieldDeclarations) ClassDelegate
(String className, List<FieldDeclaration> fieldDeclarations, Expression skipExpression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
completed
(DelegateExecution execution) called after the process instance is destroyed for this activity to perform its outgoing control flow logic.void
completing
(DelegateExecution execution, DelegateExecution subProcessInstance) called before the process instance is destroyed to allow this activity to extract data from the sub process instance.protected ActivityBehavior
determineBehaviour
(ActivityBehavior delegateInstance) void
execute
(DelegateExecution execution) Default behaviour: just leave the activity with no extra functionality.protected ActivityBehavior
getCustomPropertiesMap
(DelegateExecution execution) protected CustomPropertiesResolver
protected ExecutionListener
protected TaskListener
protected TransactionDependentExecutionListener
protected TransactionDependentTaskListener
void
notify
(String processInstanceId, String executionId, FlowElement flowElement, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) void
notify
(String processInstanceId, String executionId, Task task, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) void
notify
(DelegateExecution execution) void
notify
(DelegateTask delegateTask) void
trigger
(DelegateExecution execution, String signalName, Object signalData) Methods inherited from class org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
applyFieldDeclaration, applyFieldDeclaration, applyFieldDeclaration, applyFieldDeclaration, defaultInstantiateDelegate, defaultInstantiateDelegate, defaultInstantiateDelegate, defaultInstantiateDelegate, getClassName, instantiateDelegate
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, getV5MultiInstanceActivityBehavior, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, setV5MultiInstanceActivityBehavior
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType
-
Field Details
-
activityBehaviorInstance
-
skipExpression
-
mapExceptions
-
customPropertiesResolverInstance
-
triggerable
protected boolean triggerable
-
-
Constructor Details
-
ClassDelegate
public ClassDelegate(String className, List<FieldDeclaration> fieldDeclarations, Expression skipExpression) -
ClassDelegate
public ClassDelegate(String id, String className, List<FieldDeclaration> fieldDeclarations, boolean triggerable, Expression skipExpression, List<MapExceptionEntry> mapExceptions) -
ClassDelegate
public ClassDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, Expression skipExpression) -
ClassDelegate
-
ClassDelegate
-
-
Method Details
-
notify
- Specified by:
notify
in interfaceExecutionListener
-
notify
public void notify(String processInstanceId, String executionId, FlowElement flowElement, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) - Specified by:
notify
in interfaceTransactionDependentExecutionListener
-
getCustomPropertiesMap
- Specified by:
getCustomPropertiesMap
in interfaceCustomPropertiesResolver
-
notify
- Specified by:
notify
in interfaceTaskListener
-
notify
public void notify(String processInstanceId, String executionId, Task task, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) - Specified by:
notify
in interfaceTransactionDependentTaskListener
-
getExecutionListenerInstance
-
getTransactionDependentExecutionListenerInstance
-
getCustomPropertiesResolverInstance
-
getTaskListenerInstance
-
getTransactionDependentTaskListenerInstance
-
execute
Description copied from class:FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.- Specified by:
execute
in interfaceActivityBehavior
- Overrides:
execute
in classFlowNodeActivityBehavior
-
trigger
- Specified by:
trigger
in interfaceTriggerableActivityBehavior
- Overrides:
trigger
in classFlowNodeActivityBehavior
-
completing
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) 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 interfaceSubProcessActivityBehavior
- Throws:
Exception
-
completed
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 interfaceSubProcessActivityBehavior
- Throws:
Exception
-
getActivityBehaviorInstance
-
determineBehaviour
-