Class ActionTransitionCriteria
java.lang.Object
org.springframework.webflow.engine.support.ActionTransitionCriteria
- All Implemented Interfaces:
TransitionCriteria
A transition criteria that will execute an action when tested and return
true if the action's result is
equal to the 'trueEventId', false otherwise.
This effectively adapts an Action to a TransitionCriteria.
- Author:
- Keith Donald, Erwin Vervaet
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActionTransitionCriteria(Action action) Create action transition criteria delegating to the specified action. -
Method Summary
Modifier and TypeMethodDescriptionprotected ActionReturns the action wrapped by this object.String[]Returns the action resulteventIdsthat should cause this criteria to return true (it will return false otherwise).voidsetTrueEventIds(String... trueEventIds) Sets the action resulteventIdsthat should cause this precondition to return true (it will return false otherwise).booleantest(RequestContext context) Check if the transition should fire based on the given flow execution request context.
-
Constructor Details
-
ActionTransitionCriteria
Create action transition criteria delegating to the specified action.- Parameters:
action- the action
-
-
Method Details
-
getTrueEventIds
Returns the action resulteventIdsthat should cause this criteria to return true (it will return false otherwise). Defaults to "success". -
setTrueEventIds
Sets the action resulteventIdsthat should cause this precondition to return true (it will return false otherwise).- Parameters:
trueEventIds- the true result event IDs
-
getAction
Returns the action wrapped by this object.- Returns:
- the action
-
test
Description copied from interface:TransitionCriteriaCheck if the transition should fire based on the given flow execution request context.- Specified by:
testin interfaceTransitionCriteria- Parameters:
context- the flow execution request context- Returns:
- true if the transition should fire, false otherwise
-