public class ExpressionPlanItemLifecycleListener extends Object implements PlanItemInstanceLifecycleListener
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
expression |
protected String |
sourceState |
protected String |
targetState |
| Constructor and Description |
|---|
ExpressionPlanItemLifecycleListener(String sourceState,
String targetState,
Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpressionText()
returns the expression text for this task listener.
|
String |
getSourceState() |
String |
getTargetState() |
void |
stateChanged(DelegatePlanItemInstance planItemInstance,
String oldState,
String newState)
Will be called when the state of a
DelegatePlanItemInstance changes and the
PlanItemInstanceLifecycleListener.getSourceState() and PlanItemInstanceLifecycleListener.getTargetState() match. |
protected String sourceState
protected String targetState
protected Expression expression
public ExpressionPlanItemLifecycleListener(String sourceState, String targetState, Expression expression)
public String getSourceState()
getSourceState in interface PlanItemInstanceLifecycleListenerPlanItemInstanceState.
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.public String getTargetState()
getTargetState in interface PlanItemInstanceLifecycleListenerPlanItemInstanceState.
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.public void stateChanged(DelegatePlanItemInstance planItemInstance, String oldState, String newState)
PlanItemInstanceLifecycleListenerDelegatePlanItemInstance changes and the
PlanItemInstanceLifecycleListener.getSourceState() and PlanItemInstanceLifecycleListener.getTargetState() match.stateChanged in interface PlanItemInstanceLifecycleListenerpublic String getExpressionText()
Copyright © 2023 Flowable. All rights reserved.