Announcement Announcement Module
Collapse
No announcement yet.
Possible?: flow terminates and starts new flow? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible?: flow terminates and starts new flow?

    HI,

    I have a flow which displays a list of objects underneath the current object.
    If the user selects on the child objects I want the current flow to terminate and a new flow to start with the selected child.

    How do I model this? Is this possible?

    Many thanks,

    Colin

  • #2
    just an idea...

    Code:
    // flow usage contract: (expected input=parent object ID)
    <webflow id="objects">
    
          <action-state id="loadParentObjectAndChildren">
              <action bean="myAction"/>
              <transition on="success" to="displayParentObjectAndChildren"/>
          </action-state>
    
          <view-state id="displayParentObjectAndChildren" view="objects">
              <transition on="select" to="endAndStartAnother"/>
          </view-state>
    
          <end-state id="endAndStartAnother" view="redirect&#58;/myapp.htm?_flowId=objects&parentObjectId=$&#123;sourceEvent.parameters.childObjectId&#125;"/>
    
    </webflow>
    You could also just spawn a subflow state and nest recursively -- that would give you proper back capability (see Phonebook)

    Keith

    Comment


    • #3
      Didn't know you could do that with the view

      Excellent.

      I had no idea the "view" could be so complicated.

      Thanks Keith.

      Comment

      Working...
      X