test336.txml 834 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0"?>
  2. <!-- test that the origin field of an external event contains a URL that lets you send back to the originator. In
  3. this case it's the same session, so if we get bar we succeed -->
  4. <scxml initial="s0" conf:datamodel="" version="1.0" xmlns="http://www.w3.org/2005/07/scxml" name="machineName" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  5. <state id="s0">
  6. <onentry>
  7. <send event="foo"/>
  8. </onentry>
  9. <transition event="foo" target="s1">
  10. <conf:sendToSender name="bar"/>
  11. </transition>
  12. <transition event="*" conf:targetfail=""/>
  13. </state>
  14. <state id="s1">
  15. <onentry>
  16. <send event="baz"/>
  17. </onentry>
  18. <transition event="bar" conf:targetpass=""/>
  19. <transition event="*" conf:targetfail=""/>
  20. </state>
  21. <conf:pass/>
  22. <conf:fail/>
  23. </scxml>