commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Frech <Wolfgang.Fr...@iteratec.de>
Subject [SCXML] Re2: format of state content in external file?
Date Wed, 14 Feb 2007 11:17:58 GMT
Hello Rahul,

I think the following sketch is "extract content of state without 
sequential substates":

The entry/exit action behavior and the name of the current (leave) state 
should be identical.
The only observable difference if the additional state in the model and 
as parent of a current state.
Again, I left out the datamodel part.

Did I overlook anything?

Regards
Wolfgang

---
before

<scxml initialstate="a">
  <state id="a">
    <onentry>
      ((b))
    </onentry>
    <transition event="c" target="a">
      ((c))
    </transition>
    <transition event="d" target="e">
      ((f))
    </transition>
    <onexit>
      ((h))
    </onexit>
  </state>
  <state id="e">
    <transition event="g" target="a"/>
  </state>
</scxml>

==>

<scxml initialstate="a">
  <state id="_new" src="external.scxml">
  <state id="e">
    <transition event="g" target="a"/>
  </state>
</scxml>
 
+ external.scxml

<scxml initialstate="a">
  <state id="a">
    <onentry>
      ((b))
    </onentry>
    <transition event="c" target="a">
      ((c))
    </transition>
    <transition event="d" target="e">
      ((f))
    </transition>
    <onexit>
      ((h))
    </onexit>
  </state>
</scxml>
 ---



-- 
Wolfgang Frech
iteratec GmbH
Inselkammerstra├če 4   D-82008 Unterhaching
+49-89-61 45 51-64    Fax: -10
mailto:wolfgang.frech@iteratec.de   www.iteratec.de


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message