|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.support.ActionTransitionCriteria
public class ActionTransitionCriteria
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
.
Action
,
TransitionCriteria
Constructor Summary | |
---|---|
ActionTransitionCriteria(Action action)
Create action transition criteria delegating to the specified action. |
Method Summary | |
---|---|
protected Action |
getAction()
Returns the action wrapped by this object. |
java.lang.String |
getTrueEventId()
Returns the action result eventId that should cause this criteria to return true (it will return
false otherwise). |
void |
setTrueEventId(java.lang.String trueEventId)
Sets the action result eventId 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionTransitionCriteria(Action action)
action
- the actionMethod Detail |
---|
public java.lang.String getTrueEventId()
eventId
that should cause this criteria to return true (it will return
false otherwise). Defaults to "success".
public void setTrueEventId(java.lang.String trueEventId)
eventId
that should cause this precondition to return true (it will return
false otherwise).
trueEventId
- the true result event IDprotected Action getAction()
public boolean test(RequestContext context)
TransitionCriteria
test
in interface TransitionCriteria
context
- the flow execution request context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |