public class DelegateExpressionCaseLifecycleListener extends Object implements CaseInstanceLifecycleListener
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
expression |
protected List<FieldExtension> |
fieldExtensions |
protected String |
sourceState |
protected String |
targetState |
| Constructor and Description |
|---|
DelegateExpressionCaseLifecycleListener(String sourceState,
String targetState,
Expression expression,
List<FieldExtension> fieldExtensions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpressionText()
returns the expression text for this CaseInstance lifecycle listener.
|
String |
getSourceState() |
String |
getTargetState() |
void |
stateChanged(CaseInstance caseInstance,
String oldState,
String newState)
Will be called when the state of a
CaseInstance changes and the
CaseInstanceLifecycleListener.getSourceState() and CaseInstanceLifecycleListener.getTargetState() match. |
protected String sourceState
protected String targetState
protected Expression expression
protected List<FieldExtension> fieldExtensions
public DelegateExpressionCaseLifecycleListener(String sourceState, String targetState, Expression expression, List<FieldExtension> fieldExtensions)
public String getSourceState()
getSourceState in interface CaseInstanceLifecycleListenerCaseInstanceState.
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 CaseInstanceLifecycleListenerCaseInstanceState.
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(CaseInstance caseInstance, String oldState, String newState)
CaseInstanceLifecycleListenerCaseInstance changes and the
CaseInstanceLifecycleListener.getSourceState() and CaseInstanceLifecycleListener.getTargetState() match.stateChanged in interface CaseInstanceLifecycleListenerpublic String getExpressionText()
Copyright © 2023 Flowable. All rights reserved.