Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1688

Improve documentation on <action-state>

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.4.2
    • Fix Version/s: 2.4.5, 2.5.RC1
    • Component/s: None
    • Labels:
      None

      Description

      I have some Flows where the first state is an <action-state> which contains only two <set>s and an unconditional <transition>:

      <action-state id="copySessionObjects">
          <set name="conversationScope.service" value="externalContext.sessionMap.service"/>
          <set name="conversationScope.customer" value="externalContext.sessionMap.customer"/>
          <transition to="myViewState"/>
      </action-state>
      

      It turns out that the second object <set> is not actually set. As shown above, service is set, but customer is not. If I reverse their sequence, customer is set but service is not.

      Both objects are on the Session, and there are no typos. If I replace subsequent references to these objects with the full externalContext.sessionMap.object references, this works.

      And, in fact, since this is the first state of the Flow, I was able to replace it with <on-start> instead of <action-state>, and there both <set>s work.

      Which arguably might be more correct anyway, but something seems definitely broken with this <action-state> behavior.

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            breaux Doug Breaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: