test407.txml 595 B

123456789101112131415161718192021222324
  1. <?xml version="1.0"?>
  2. <!-- a simple test that onexit handlers work. var1 should be incremented when we leave s0 -->
  3. <scxml initial="s0" version="1.0" conf:datamodel="" 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. <onexit>
  9. <conf:incrementID id="1"/>
  10. </onexit>
  11. <transition target="s1"/>
  12. </state>
  13. <state id="s1">
  14. <transition conf:idVal="1=1" conf:targetpass=""/>
  15. <transition conf:targetfail=""/>
  16. </state>
  17. <conf:pass/>
  18. <conf:fail/>
  19. </scxml>