Search in sources :

Example 1 with TransitionCriteria

use of org.springframework.webflow.engine.TransitionCriteria in project cas by apereo.

the class AbstractCasWebflowConfigurer method createTransition.

@Override
public Transition createTransition(final Expression criteriaOutcomeExpression, final String targetState) {
    final TransitionCriteria criteria;
    if (criteriaOutcomeExpression.toString().equals(WildcardTransitionCriteria.WILDCARD_EVENT_ID)) {
        criteria = WildcardTransitionCriteria.INSTANCE;
    } else {
        criteria = new DefaultTransitionCriteria(criteriaOutcomeExpression);
    }
    final DefaultTargetStateResolver resolver = new DefaultTargetStateResolver(targetState);
    final Transition t = new Transition(criteria, resolver);
    return t;
}
Also used : DefaultTransitionCriteria(org.springframework.webflow.engine.support.DefaultTransitionCriteria) Transition(org.springframework.webflow.engine.Transition) DefaultTargetStateResolver(org.springframework.webflow.engine.support.DefaultTargetStateResolver) DefaultTransitionCriteria(org.springframework.webflow.engine.support.DefaultTransitionCriteria) WildcardTransitionCriteria(org.springframework.webflow.engine.WildcardTransitionCriteria) TransitionCriteria(org.springframework.webflow.engine.TransitionCriteria)

Example 2 with TransitionCriteria

use of org.springframework.webflow.engine.TransitionCriteria in project cas by apereo.

the class AbstractCasWebflowConfigurer method createTransition.

@Override
public Transition createTransition(final Expression criteriaOutcomeExpression, final String targetState) {
    final TransitionCriteria criteria;
    if (criteriaOutcomeExpression.toString().equals(WildcardTransitionCriteria.WILDCARD_EVENT_ID)) {
        criteria = WildcardTransitionCriteria.INSTANCE;
    } else {
        criteria = new DefaultTransitionCriteria(criteriaOutcomeExpression);
    }
    final DefaultTargetStateResolver resolver = new DefaultTargetStateResolver(targetState);
    final Transition t = new Transition(criteria, resolver);
    return t;
}
Also used : DefaultTransitionCriteria(org.springframework.webflow.engine.support.DefaultTransitionCriteria) Transition(org.springframework.webflow.engine.Transition) DefaultTargetStateResolver(org.springframework.webflow.engine.support.DefaultTargetStateResolver) DefaultTransitionCriteria(org.springframework.webflow.engine.support.DefaultTransitionCriteria) WildcardTransitionCriteria(org.springframework.webflow.engine.WildcardTransitionCriteria) TransitionCriteria(org.springframework.webflow.engine.TransitionCriteria)

Aggregations

Transition (org.springframework.webflow.engine.Transition)2 TransitionCriteria (org.springframework.webflow.engine.TransitionCriteria)2 WildcardTransitionCriteria (org.springframework.webflow.engine.WildcardTransitionCriteria)2 DefaultTargetStateResolver (org.springframework.webflow.engine.support.DefaultTargetStateResolver)2 DefaultTransitionCriteria (org.springframework.webflow.engine.support.DefaultTransitionCriteria)2