test377.txml 722 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0"?>
  2. <!-- test that onexit handlers are executed in document order. event1 should be raised before event2 -->
  3. <scxml conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  4. <state id="s0">
  5. <onexit>
  6. <raise event="event1"/>
  7. </onexit>
  8. <onexit>
  9. <raise event="event2"/>
  10. </onexit>
  11. <transition target="s1"/>
  12. </state>
  13. <state id="s1">
  14. <transition event="event1" target="s2"/>
  15. <transition event="*" conf:targetfail=""/>
  16. </state>
  17. <state id="s2">
  18. <transition event="event2" conf:targetpass=""/>
  19. <transition event="*" conf:targetfail=""/>
  20. </state>
  21. <conf:pass/>
  22. <conf:fail/>
  23. </scxml>