test417.txml 955 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0"?>
  2. <!-- test that we get the done.state.id event when all of a
  3. parallel elements children enter final states. -->
  4. <scxml version="1.0" initial="s1" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  5. <state id="s1" initial="s1p1">
  6. <onentry>
  7. <send event="timeout" delay="1s"/>
  8. </onentry>
  9. <transition event="timeout" conf:targetfail=""/>
  10. <parallel id="s1p1">
  11. <transition event="done.state.s1p1" conf:targetpass=""/>
  12. <state id="s1p11" initial="s1p111">
  13. <state id="s1p111">
  14. <transition target="s1p11final"/>
  15. </state>
  16. <final id="s1p11final"/>
  17. </state>
  18. <state id="s1p12" initial="s1p121">
  19. <state id="s1p121">
  20. <transition target="s1p12final"/>
  21. </state>
  22. <final id="s1p12final"/>
  23. </state>
  24. </parallel>
  25. </state>
  26. <conf:pass/>
  27. <conf:fail/>
  28. </scxml>