| 1234567891011121314151617181920212223242526272829303132333435 |
- <?xml version="1.1" ?>
- <diagram author="Sam Pieters" name="ShallowHistoryTest">
- <description>
- Test if a shallow history keeps the state when leaving out of composite.
- </description>
- <class name="MainApp" default="true">
- <scxml initial="on">
- <state id="on" initial="normal">
- <state id="normal" initial="red">
- <state id="red">
- <transition after='3' target='../green'/>
- </state>
- <state id="green">
- <transition after='2' target='../yellow'/>
- </state>
- <state id="yellow">
- <transition after='1' target='../../../off'/>
- </state>
- <transition after='3.5' target='../interrupted'/>
- <history id="history"/>
- </state>
- <state id="interrupted" initial="yellow">
- <state id="yellow">
- <transition after='.5' target='../black'/>
- </state>
- <state id="black">
- <transition after='.5' target='../yellow'/>
- </state>
- <transition after='1' target='../normal/history'/>
- </state>
- </state>
- <state id="off" />
- </scxml>
- </class>
- </diagram>
|