sccd.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.1" ?>
  2. <diagram author="Sam Pieters" name="DeepHistoryTest">
  3. <description>
  4. Test if a deep history keeps the deepest 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='2' target='../green'/>
  12. </state>
  13. <state id="green">
  14. <transition after='1' target='../yellow'/>
  15. </state>
  16. <state id="yellow" initial="yellow1">
  17. <state id="yellow1">
  18. <transition after='0.1' target='../yellow2'/>
  19. </state>
  20. <state id="yellow2">
  21. <transition after='0.5' target='../yellow3'/>
  22. </state>
  23. <state id="yellow3">
  24. <transition after='0.1' target='../../../../off'/>
  25. </state>
  26. </state>
  27. <transition after='3.5' target='../interrupted'/>
  28. <history id="history" type="deep"/>
  29. </state>
  30. <state id="interrupted">
  31. <transition after='1' target='../normal/history'/>
  32. </state>
  33. </state>
  34. <state id="off" />
  35. </scxml>
  36. </class>
  37. </diagram>