test319.txml 610 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0"?>
  2. <!-- test that _event is not bound before any event has been raised -->
  3. <scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml"
  4. name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  5. <state id="s0">
  6. <onentry>
  7. <if conf:systemVarIsBound="_event">
  8. <raise event="bound"/>
  9. <else/>
  10. <raise event="unbound"/>
  11. </if>
  12. </onentry>
  13. <transition event="unbound" conf:targetpass=""/>
  14. <transition event="bound" conf:targetfail=""/>
  15. </state>
  16. <conf:pass/>
  17. <conf:fail/>
  18. </scxml>