public class ActionTransitionCriteria extends java.lang.Object implements TransitionCriteria
true if the action's result
is equal to the 'trueEventId', false otherwise.
This effectively adapts an Action to a TransitionCriteria.
Action,
TransitionCriteria| Constructor and Description |
|---|
ActionTransitionCriteria(Action action)
Create action transition criteria delegating to the specified action.
|
| Modifier and Type | Method and Description |
|---|---|
protected Action |
getAction()
Returns the action wrapped by this object.
|
java.lang.String[] |
getTrueEventIds()
Returns the action result
eventIds that should cause this criteria to return true (it will return
false otherwise). |
void |
setTrueEventIds(java.lang.String[] trueEventIds)
Sets the action result
eventIds that should cause this precondition to return true (it will return
false otherwise). |
boolean |
test(RequestContext context)
Check if the transition should fire based on the given flow execution request context.
|
public ActionTransitionCriteria(Action action)
action - the actionpublic java.lang.String[] getTrueEventIds()
eventIds that should cause this criteria to return true (it will return
false otherwise). Defaults to "success".public void setTrueEventIds(java.lang.String[] trueEventIds)
eventIds that should cause this precondition to return true (it will return
false otherwise).trueEventIds - the true result event IDsprotected Action getAction()
public boolean test(RequestContext context)
TransitionCriteriatest in interface TransitionCriteriacontext - the flow execution request context