test158.txml 746 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0"?>
  2. <!-- test that executable content executes in document order. if event1 occurs then event2, succeed, otherwise fail -->
  3. <scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  4. <datamodel>
  5. <data conf:id="1" conf:expr="0"/>
  6. </datamodel>
  7. <state id="s0">
  8. <onentry>
  9. <raise event="event1"/>
  10. <raise event="event2"/>
  11. </onentry>
  12. <transition event="event1" target="s1"/>
  13. <transition event="*" conf:targetfail=""/>
  14. </state>
  15. <state id="s1">
  16. <transition event="event2" conf:targetpass=""/>
  17. <transition event="*" conf:targetfail=""/>
  18. </state>
  19. <conf:pass/>
  20. <conf:fail/>
  21. </scxml>