Class ExpressionPlanItemLifecycleListener
java.lang.Object
org.flowable.cmmn.engine.impl.listener.ExpressionPlanItemLifecycleListener
- All Implemented Interfaces:
PlanItemInstanceLifecycleListener
public class ExpressionPlanItemLifecycleListener
extends Object
implements PlanItemInstanceLifecycleListener
- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpressionPlanItemLifecycleListener(String sourceState, String targetState, Expression expression) -
Method Summary
Modifier and TypeMethodDescriptionreturns the expression text for this task 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
-
-
Constructor Details
-
ExpressionPlanItemLifecycleListener
public ExpressionPlanItemLifecycleListener(String sourceState, String targetState, Expression expression)
-
-
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 task listener.
-