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

No Programmer Error Message when 2 actions are configured in an action state

    XMLWordPrintable

    Details

      Description

      When more than one action is configured into the same action state, the second action is not executed, resulting in failures further down the web-flow food chain.

          <action-state id="doSomething">
              <set name="flowScope.name" value="service.findName(someValue)"/>
              <set name="flowScope.address" value="service.findAddress(someotherValue)"/>
              <transition to="doSomethingElse"/>
          </action-state>
      

      We would like to see the typical Programmer Error when this happens, which would be consistent with how you handle no set actions being configured.

      We do have the following work-around.

          <action-state id="doSomething">
              <on-entry>
                   <set name="flowScope.name" value="service.findName(someValue)"/>
              </on-entry>
              <set name="flowScope.address" value="service.findAddress(someotherValue)"/>
              <transition to="doSomethingElse"/>
          </action-state>
      

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            bkiefer Ben Kiefer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: