Hi everyone i create a new flow on my cas

and its working when it load and how it shows the page but when i clik on
the botton it dosent goes to my even it goes to the initial step of my flow

this is my flow configuration

<!-- change webflow configuration -->
    <bean id="changeFlowHandlerMapping"
class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping"
          p:flowRegistry-ref="changeFlowRegistry" p:order="4">
        <property name="interceptors">
            <array
value-type="org.springframework.web.servlet.HandlerInterceptor">
                <ref bean="localeChangeInterceptor"/>
            </array>
        </property>
    </bean>

    <bean id="changeHandlerAdapter"
class="org.jasig.cas.web.flow.SelectiveFlowHandlerAdapter"
          p:supportedFlowId="change" p:flowExecutor-ref="changeFlowExecutor"
          p:flowUrlHandler-ref="changeFlowUrlHandler"/>

    <bean id="changeFlowUrlHandler"
class="org.jasig.cas.web.flow.CasDefaultFlowUrlHandler"
          p:flowExecutionKeyParameter="RelayState"/>

and this is my definition of my flow


<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow.xsd";>

    <var name="credential"
class="org.jasig.cas.authentication.UsernamePasswordCredential"/>

    <on-start>
        <evaluate expression="initialFlowSetupAction"/>
    </on-start>

    <decision-state id="postRedirec">
        <if test="flowScope.ticketGrantingTicketId != null" then="redirect"
else="endFlow"/>
    </decision-state>


    <action-state id="redirect">
        <evaluate
expression="genericSuccessViewAction.getAuthenticationPrincipal(flowScope.ticketGrantingTicketId)"
                      result="requestScope.principal"

result-type="org.jasig.cas.authentication.principal.Principal"/>
        <transition to="postRedirectDecision"/>
    </action-state>

     <decision-state id="postRedirectDecision">
        <if test="requestScope.principal != null"
then="casCambioContrasena" else="endFlow"/>
    </decision-state>


    <end-state id="endFlow" view="externalRedirect:../cas/login"/>

     <view-state id="casCambioContrasena" view="casCambioContrasena">
        <on-entry>
            <evaluate
expression="genericSuccessViewAction.getAuthenticationPrincipal(flowScope.ticketGrantingTicketId)"
                      result="principal"

result-type="org.jasig.cas.authentication.principal.Principal"/>
        </on-entry>
        <transition on="performPassChange" to="performPassChangeAction" />
    </view-state>

     <action-state id="performPassChangeAction">
        <evaluate
expression="userService.passChangeUser(flowRequestContext,requestScope.principal,messageContext)"
/>
        <transition on="ok" to="terminatePassChange" />
        <transition on="false" to="casCambioContrasena" />
        <transition on="error" to="endFlow" />

    </action-state>


    <!--
        Redirect para logout de cambio de contraseƱa
    -->

    <action-state id="terminatePassChange">
        <evaluate
expression="terminateSessionAction.terminate(flowRequestContext)" />
        <transition to="doLogout" />
    </action-state>

    <action-state id="doLogout">
        <evaluate expression="logoutAction" />
        <transition on="finish" to="finishLogout" />
        <transition on="front" to="frontLogout" />
    </action-state>

    <action-state id="frontLogout">
        <evaluate expression="frontChannelLogoutAction" />
        <transition on="finish" to="finishLogout" />
        <transition on="redirectApp" to="redirectToFrontApp" />
    </action-state>

    <view-state id="redirectToFrontApp"
view="externalRedirect:#{currentEvent.attributes.logoutUrl}&amp;RelayState=#{flowExecutionContext.key}">
        <transition on="next" to="frontLogout" />
    </view-state>

    <decision-state id="finishLogout">
        <if test="flowScope.logoutRedirectUrl != null"
then="redirectLogOutPassChangeView" else="logoutView" />
    </decision-state>

    <end-state id="redirectLogOutPassChangeView"
view="externalRedirect:#{flowScope.logoutRedirectUrl}" />

    <end-state id="logoutView" view="casPassChangeLogoutView" />

    <!--
        fin flujo
    -->


    <end-state id="viewGenericLoginSuccess" view="casGenericSuccessView">
        <on-entry>
            <evaluate
expression="genericSuccessViewAction.getAuthenticationPrincipal(flowScope.ticketGrantingTicketId)"
                      result="principal"

result-type="org.jasig.cas.authentication.principal.Principal"/>
        </on-entry>

    </end-state>

</flow>


on my page i have this


 <section class="row btn-row">



            <input type="hidden" name="_eventId" value="performPassChange"
/>
            <input type="hidden" name="_flowExecutionKey"
value="${flowExecutionKey}" />



            <input class="btn-submit" type="submit" value="Reiniciar"/>
            <input class="btn-reset" name="Limpiar" accesskey="c"
value="Limpiar" tabindex="7" type="reset" />
        </section>

so it supouse that has to go to my event name performPassChange on my flow

but it goes to the

<on-start>
        <evaluate expression="initialFlowSetupAction"/>
    </on-start>

and not to this

<view-state id="casCambioContrasena" view="casCambioContrasena">
        <on-entry>
            <evaluate
expression="genericSuccessViewAction.getAuthenticationPrincipal(flowScope.ticketGrantingTicketId)"
                      result="principal"

result-type="org.jasig.cas.authentication.principal.Principal"/>
        </on-entry>
        <transition on="performPassChange" to="performPassChangeAction" />
    </view-state>


<action-state id="performPassChangeAction">
        <evaluate
expression="userService.passChangeUser(flowRequestContext,requestScope.principal,messageContext)"
/>
        <transition on="ok" to="terminatePassChange" />
        <transition on="false" to="casCambioContrasena" />
        <transition on="error" to="endFlow" />

    </action-state>


please help

-- 
CAS gitter chatroom: https://gitter.im/apereo/cas
CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
CAS documentation website: https://apereo.github.io/cas
CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANEG9%2BffrYH-qy8UOxF6%2BaiMFOn9bbVO8TqhK1%2B6uMWuevADJA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to