private void createSurrogateSelectionActionState(final Flow flow) {
        val selectSurrogate = createActionState(flow, CasWebflowConstants.STATE_ID_SELECT_SURROGATE,
            CasWebflowConstants.ACTION_ID_SELECT_SURROGATE_ACTION);
        val actionState = getState(flow, CasWebflowConstants.STATE_ID_REAL_SUBMIT, ActionState.class);
        val targetSuccessId = actionState.getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId();
        createTransitionForState(selectSurrogate, CasWebflowConstants.TRANSITION_ID_SUCCESS, targetSuccessId);
        createTransitionForState(selectSurrogate, CasWebflowConstants.TRANSITION_ID_ERROR, CasWebflowConstants.STATE_ID_SURROGATE_VIEW);
    }
Create surrogate list view state.

@param flow the flow
support/cas-server-support-surrogate-webflow/src/main/java/org/apereo/cas/web/flow/SurrogateWebflowConfigurer.java