public class TransitionCriteriaChain extends java.lang.Object implements TransitionCriteria
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.Constructor and Description |
---|
TransitionCriteriaChain()
Creates an initially empty transition criteria chain.
|
TransitionCriteriaChain(TransitionCriteria... criteria)
Creates a transition criteria chain with the specified criteria.
|
Modifier and Type | Method and Description |
---|---|
TransitionCriteriaChain |
add(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.
|
java.lang.String |
toString() |
public TransitionCriteriaChain()
add(TransitionCriteria)
public TransitionCriteriaChain(TransitionCriteria... criteria)
criteria
- the criteriapublic TransitionCriteriaChain add(TransitionCriteria criteria)
criteria
- the criteriapublic boolean test(RequestContext context)
TransitionCriteria
test
in interface TransitionCriteria
context
- the flow execution request contextpublic java.lang.String toString()
toString
in class java.lang.Object
public static TransitionCriteria criteriaChainFor(Action... actions)
actions
- the actions (and their execution properties) to chain together