Results 1 to 4 of 4

Thread: Can I Start A Flow At Specific View-State?

  1. #1

    Default 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. #2
    Join Date
    Nov 2008
    Posts
    742

    Default

    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. #3

    Default

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

    Thank you .

  4. #4

    Default Decision state with variable "then"

    Is it possible to do something like this?

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •