Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-49

SimpleSCXMLInvoker may miss transition to final state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.7
    • None

    Description

      The current implementation of SimpleSCXMLInvoker assumes that only external events, handled by parentEvents(), may cause the child state machine to go move a final state. But in case where the invoked state machine moves to a final state directly (while executing the initial state, see example) the parent never receives an "invoke.done".

      <scxml xmlns=http://www.w3.org/2005/07/scxml version="1.0" initialstate="state1">
      <state id="state1">
      <onentry>
      <send event="foo"/>
      </onentry>

      <transition event="foo" target="state2" />
      </state>

      <state id="state2" final="true" />
      </scxml>

      Attachments

        Activity

          People

            rahul@apache.org Rahul Akolkar
            ingmar Ingmar Kliche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: