Class TransitionCriteriaChain
java.lang.Object
org.springframework.webflow.engine.support.TransitionCriteriaChain
- All Implemented Interfaces:
TransitionCriteria
An ordered chain of
TransitionCriteria
. Iterates over each element in the chain, continues until one
returns false or the list is exhausted. So in effect it will do a logical AND between the contained criteria.- Author:
- Keith Donald
-
Constructor Summary
ConstructorDescriptionCreates an initially empty transition criteria chain.TransitionCriteriaChain
(TransitionCriteria... criteria) Creates a transition criteria chain with the specified criteria. -
Method Summary
Modifier and TypeMethodDescriptionadd
(TransitionCriteria criteria) Add given criteria object to the end of the chain.static TransitionCriteria
criteriaChainFor
(Action... actions) Create a transition criteria chain chaining given list of actions.boolean
test
(RequestContext context) Check if the transition should fire based on the given flow execution request context.toString()
-
Constructor Details
-
TransitionCriteriaChain
public TransitionCriteriaChain()Creates an initially empty transition criteria chain.- See Also:
-
TransitionCriteriaChain
Creates a transition criteria chain with the specified criteria.- Parameters:
criteria
- the criteria
-
-
Method Details
-
add
Add given criteria object to the end of the chain.- Parameters:
criteria
- the criteria- Returns:
- this object, so multiple criteria can be added in a single statement
-
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
-
criteriaChainFor
Create a transition criteria chain chaining given list of actions.- Parameters:
actions
- the actions (and their execution properties) to chain together
-