test318.txml 807 B

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <!-- test that _event stays bound during the onexit and entry into the next state -->
  3. <scxml initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" conf:datamodel="" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  4. <datamodel>
  5. <data conf:id="1"/>
  6. </datamodel>
  7. <state id="s0">
  8. <onentry>
  9. <raise event="foo"/>
  10. </onentry>
  11. <transition event="foo" target="s1"/>
  12. </state>
  13. <state id="s1">
  14. <onentry>
  15. <raise event="bar"/>
  16. <!-- _event should still be bound to 'foo' at this point -->
  17. <assign conf:location="1" conf:eventName=""/>
  18. </onentry>
  19. <transition conf:idQuoteVal="1=foo" conf:targetpass=""/>
  20. <transition conf:targetfail=""/>
  21. </state>
  22. <conf:pass/>
  23. <conf:fail/>
  24. </scxml>