Class DefaultTransitionCriteria
java.lang.Object
org.springframework.webflow.engine.support.DefaultTransitionCriteria
- All Implemented Interfaces:
TransitionCriteria
Transition criteria that tests the value of an expression. The expression is used to express a condition that guards
transition execution in a web flow. Expressions will be evaluated against the request context. Boolean, string, and
custom TransitonCriteria evaluation results are supported.
- Author:
- Keith Donald, Erwin Vervaet
-
Constructor Summary
ConstructorDescriptionDefaultTransitionCriteria
(Expression expression) Create a new expression based transition criteria object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(RequestContext context) Check if the transition should fire based on the given flow execution request context.toString()
-
Constructor Details
-
DefaultTransitionCriteria
Create a new expression based transition criteria object.- Parameters:
expression
- the expression evaluator testing the criteria
-
-
Method Details
-
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
-
toString
-