test375.txml 667 B

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0"?>
  2. <!-- test that onentry 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. <onentry>
  6. <raise event="event1"/>
  7. </onentry>
  8. <onentry>
  9. <raise event="event2"/>
  10. </onentry>
  11. <transition event="event1" target="s1"/>
  12. <transition event="*" conf:targetfail=""/>
  13. </state>
  14. <state id="s1">
  15. <transition event="event2" conf:targetpass=""/>
  16. <transition event="*" conf:targetfail=""/>
  17. </state>
  18. <conf:pass/>
  19. <conf:fail/>
  20. </scxml>