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

Using initial attribute of state ends with IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.9
    • None

    Description

      Parsing following state fails:

      <state id="parent" initial="child">
      <state id="child"/>
      </state>

      using <initial> works:

      <state id="parent>
      <initial>
      <transition target="child"/>
      </initial>
      <state id="child"/>
      </state>

      I belive it is because when digester hits the parent state it does not know how to resolve IDREF to child, because it was not parsed yet. SCXML solve this by invoking #setInitialstate(String) on Rule#begin() and #setInitialTarget(TransitionTarget) later.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alesd Ales Dolecek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: