sccd.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.1" ?>
  2. <diagram author="Sam Pieters" name="ShallowHistoryTest">
  3. <description>
  4. Test if a shallow history keeps the state when leaving out of composite.
  5. </description>
  6. <class name="MainApp" default="true">
  7. <scxml initial="on">
  8. <state id="on" initial="normal">
  9. <state id="normal" initial="red">
  10. <state id="red">
  11. <transition after='3' target='../green'/>
  12. </state>
  13. <state id="green">
  14. <transition after='2' target='../yellow'/>
  15. </state>
  16. <state id="yellow">
  17. <transition after='1' target='../../../off'/>
  18. </state>
  19. <transition after='3.5' target='../interrupted'/>
  20. <history id="history"/>
  21. </state>
  22. <state id="interrupted" initial="yellow">
  23. <state id="yellow">
  24. <transition after='.5' target='../black'/>
  25. </state>
  26. <state id="black">
  27. <transition after='.5' target='../yellow'/>
  28. </state>
  29. <transition after='1' target='../normal/history'/>
  30. </state>
  31. </state>
  32. <state id="off" />
  33. </scxml>
  34. </class>
  35. </diagram>