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:[EMAIL PROTECTED]   www.iteratec.de


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to