Class DelegateExpressionPlanItemLifecycleListener
java.lang.Object
org.flowable.cmmn.engine.impl.listener.DelegateExpressionPlanItemLifecycleListener
- All Implemented Interfaces:
PlanItemInstanceLifecycleListener
public class DelegateExpressionPlanItemLifecycleListener
extends Object
implements PlanItemInstanceLifecycleListener
- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected List<FieldExtension>protected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDelegateExpressionPlanItemLifecycleListener(String sourceState, String targetState, Expression expression, List<FieldExtension> fieldExtensions) -
Method Summary
Modifier and TypeMethodDescriptionreturns the expression text for this planItemInstance lifecycle listener.voidstateChanged(DelegatePlanItemInstance planItemInstance, String oldState, String newState) Will be called when the state of aDelegatePlanItemInstancechanges and thePlanItemInstanceLifecycleListener.getSourceState()andPlanItemInstanceLifecycleListener.getTargetState()match.
-
Field Details
-
sourceState
-
targetState
-
expression
-
fieldExtensions
-
-
Constructor Details
-
DelegateExpressionPlanItemLifecycleListener
public DelegateExpressionPlanItemLifecycleListener(String sourceState, String targetState, Expression expression, List<FieldExtension> fieldExtensions)
-
-
Method Details
-
getSourceState
- Specified by:
getSourceStatein interfacePlanItemInstanceLifecycleListener- Returns:
- The type a plan item instance is changing from, use a value from
PlanItemInstanceState. This listener will only receive elements where the state changing from this value to another one. Return null or the empty String to listen to any state.
-
getTargetState
- Specified by:
getTargetStatein interfacePlanItemInstanceLifecycleListener- Returns:
- The type a plan item instance is changing to, use a value from
PlanItemInstanceState. This listener will only receive elements where the state changing from this value to another one. Return null or the empty String to listen to any state.
-
stateChanged
public void stateChanged(DelegatePlanItemInstance planItemInstance, String oldState, String newState) Description copied from interface:PlanItemInstanceLifecycleListenerWill be called when the state of aDelegatePlanItemInstancechanges and thePlanItemInstanceLifecycleListener.getSourceState()andPlanItemInstanceLifecycleListener.getTargetState()match.- Specified by:
stateChangedin interfacePlanItemInstanceLifecycleListener
-
getExpressionText
returns the expression text for this planItemInstance lifecycle listener.
-