1 Reply Latest reply on Jan 10, 2008 12:55 PM by pmuir

    Veto Page Flow

    tom_goring

      Hi,

      Is there a way to veto the transition in a page flow... e.g. in the case of some business rule failure ?

      E.g.

      the bean wizard.saveStuff adds a bunch of faces messages and returns to indicate a fail.

      ..
      <page name="PageX" view-id="/pageX.xhtml">
       <redirect/>
       <transition name="previous" to="PageY"/>
       <transition name="next" to="PageX">
       <action expression="#{wizard.saveStuff}"/>
       </transition>
      </page>
      


      In spring webflow you can define that you transition only transition on certain return codes.

      I can see you could do this with a decision states but I would have to code one for each view state.

      Thanks in advance.