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 ActivityBehaviorprotected CustomPropertiesResolverprotected List<MapExceptionEntry>protected Expressionprotected booleanFields inherited from class org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
className, fieldDeclarations, serviceTaskIdFields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior, v5MultiInstanceActivityBehaviorFields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehaviorFields inherited from interface org.flowable.engine.delegate.BaseExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKEFields inherited from interface org.flowable.task.service.delegate.BaseTaskListener
EVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETEFields inherited from interface org.flowable.engine.delegate.TransactionDependentExecutionListener
ON_TRANSACTION_BEFORE_COMMIT, ON_TRANSACTION_COMMITTED, ON_TRANSACTION_ROLLED_BACKFields 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 TypeMethodDescriptionvoidcompleted(DelegateExecution execution) called after the process instance is destroyed for this activity to perform its outgoing control flow logic.voidcompleting(DelegateExecution execution, DelegateExecution subProcessInstance) called before the process instance is destroyed to allow this activity to extract data from the sub process instance.protected ActivityBehaviordetermineBehaviour(ActivityBehavior delegateInstance) voidexecute(DelegateExecution execution) Default behaviour: just leave the activity with no extra functionality.protected ActivityBehaviorgetCustomPropertiesMap(DelegateExecution execution) protected CustomPropertiesResolverprotected ExecutionListenerprotected TaskListenerprotected TransactionDependentExecutionListenerprotected TransactionDependentTaskListenervoidnotify(String processInstanceId, String executionId, FlowElement flowElement, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) voidnotify(String processInstanceId, String executionId, Task task, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) voidnotify(DelegateExecution execution) voidnotify(DelegateTask delegateTask) voidtrigger(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, instantiateDelegateMethods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, getV5MultiInstanceActivityBehavior, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, setV5MultiInstanceActivityBehaviorMethods 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:
notifyin interfaceExecutionListener
-
notify
public void notify(String processInstanceId, String executionId, FlowElement flowElement, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) - Specified by:
notifyin interfaceTransactionDependentExecutionListener
-
getCustomPropertiesMap
- Specified by:
getCustomPropertiesMapin interfaceCustomPropertiesResolver
-
notify
- Specified by:
notifyin interfaceTaskListener
-
notify
public void notify(String processInstanceId, String executionId, Task task, Map<String, Object> executionVariables, Map<String, Object> customPropertiesMap) - Specified by:
notifyin interfaceTransactionDependentTaskListener
-
getExecutionListenerInstance
-
getTransactionDependentExecutionListenerInstance
-
getCustomPropertiesResolverInstance
-
getTaskListenerInstance
-
getTransactionDependentTaskListenerInstance
-
execute
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Overrides:
executein classFlowNodeActivityBehavior
-
trigger
- Specified by:
triggerin interfaceTriggerableActivityBehavior- Overrides:
triggerin classFlowNodeActivityBehavior
-
completing
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception Description copied from interface:SubProcessActivityBehaviorcalled 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:
completingin interfaceSubProcessActivityBehavior- Throws:
Exception
-
completed
Description copied from interface:SubProcessActivityBehaviorcalled after the process instance is destroyed for this activity to perform its outgoing control flow logic.- Specified by:
completedin interfaceSubProcessActivityBehavior- Throws:
Exception
-
getActivityBehaviorInstance
-
determineBehaviour
-