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
ConstructorDescriptionActionTransitionCriteria
(Action action) Create action transition criteria delegating to the specified action. -
Method Summary
Modifier and TypeMethodDescriptionprotected Action
Returns the action wrapped by this object.String[]
Returns the action resulteventIds
that should cause this criteria to return true (it will return false otherwise).void
setTrueEventIds
(String... trueEventIds) Sets the action resulteventIds
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.
-
Constructor Details
-
ActionTransitionCriteria
Create action transition criteria delegating to the specified action.- Parameters:
action
- the action
-
-
Method Details
-
getTrueEventIds
Returns the action resulteventIds
that should cause this criteria to return true (it will return false otherwise). Defaults to "success". -
setTrueEventIds
Sets the action resulteventIds
that 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:TransitionCriteria
Check if the transition should fire based on the given flow execution request context.- Specified by:
test
in interfaceTransitionCriteria
- Parameters:
context
- the flow execution request context- Returns:
- true if the transition should fire, false otherwise
-