test576.txml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0"?>
  2. <!-- test that the 'initial' value of scxml is respected. We set the value to deeply nested non-default parallel siblings and
  3. test that both are entered. -->
  4. <scxml initial="s11p112 s11p122" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  5. <state id="s0">
  6. <transition conf:targetfail=""/>
  7. </state>
  8. <state id="s1">
  9. <onentry>
  10. <send event="timeout" delay="1s"/>
  11. </onentry>
  12. <transition event="timeout" conf:targetfail=""/>
  13. <state id="s11" initial="s111">
  14. <state id="s111"/>
  15. <parallel id="s11p1">
  16. <state id="s11p11" initial="s11p111">
  17. <state id="s11p111"/>
  18. <state id="s11p112">
  19. <onentry>
  20. <raise event="In-s11p112"/>
  21. </onentry>
  22. </state>
  23. </state>
  24. <state id="s11p12" initial="s11p121">
  25. <state id="s11p121"/>
  26. <state id="s11p122">
  27. <transition event="In-s11p112" conf:targetpass=""/>
  28. </state>
  29. </state>
  30. </parallel>
  31. </state>
  32. </state>
  33. <conf:pass/>
  34. <conf:fail/>
  35. </scxml>