Search in sources :

Example 1 with TransitionSet

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

the class SpengoWebflowConfigurer method createSpnegoActionState.

private ActionState createSpnegoActionState(final Flow flow) {
    final ActionState spnego = createActionState(flow, SPNEGO, createEvaluateAction(SPNEGO));
    final TransitionSet transitions = spnego.getTransitionSet();
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.TRANSITION_ID_SEND_TICKET_GRANTING_TICKET));
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_ERROR, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
    transitions.add(createTransition(CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE, CasWebflowConstants.STATE_ID_VIEW_LOGIN_FORM));
    spnego.getExitActionList().add(createEvaluateAction("clearWebflowCredentialsAction"));
    return spnego;
}
Also used : TransitionSet(org.springframework.webflow.engine.TransitionSet) ActionState(org.springframework.webflow.engine.ActionState)

Aggregations

ActionState (org.springframework.webflow.engine.ActionState)1 TransitionSet (org.springframework.webflow.engine.TransitionSet)1