Announcement Announcement Module
No announcement yet.
Can I Start A Flow At Specific View-State? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I Start A Flow At Specific View-State?

    Is it possible to start at a specific view-state in a flow?

    What I need is a checkout and a express checkout flow. The only thing different between the two is that on the express checkout I need to start towards the end of the flow. By default Spring WebFlow starts the flow beginning with the first view. Is it possible to somehow define which view we want to start at?

    If not the only way I can think to do it is copy and paste the checkout flow and put the view I need at the top. I saw the inheritance with WebFlow, but it comes with its own rules and I really just want to start somewhere else in the flow.

    -Jeff Johnston

  • #2
    I assume you're checking some value or condition to determine if you should jump to the view-state? Why not start the flow with a decision-state to check that condition and transition accordingly?


    • #3
      I did not realize I could start with a decision state....Perfect!

      Thank you .


      • #4
        Decision state with variable "then"

        Is it possible to do something like this?

        <decision-state id="checkDestState">
                <if test="goToState != ''" then="${goToState}" else="goelsewhere"/>
        Depending on the value of goToState i would like to use the value of the variable as the target state....