private void createConsentView(final Flow flow) {
        val state = createViewState(flow, VIEW_ID_CONSENT_VIEW, "consent/casConsentView");
        createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_CONFIRM, STATE_ID_CONSENT_CONFIRM);
        createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_CANCEL, CasWebflowConstants.STATE_ID_INIT_LOGIN_FORM);

        val action = createActionState(flow, STATE_ID_CONSENT_CONFIRM, CasWebflowConstants.ACTION_ID_CONFIRM_CONSENT);
        createTransitionForState(action, CasWebflowConstants.TRANSITION_ID_SUCCESS, ACTION_GEN_SERVICE_TICKET_AFTER_CONSENT);
    }
This is {@link ConsentWebflowConfigurer}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/ConsentWebflowConfigurer.java