test567.txml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!-- test that that any content in the message other than _scxmleventname is used to populate
  2. _event.data. -->
  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="2"/>
  6. </datamodel>
  7. <state id="s0">
  8. <onentry>
  9. <send event="timeout" delay="3s"/>
  10. <!-- in this case, 'test' will be placed in _scxmleventname. The <param> should
  11. be used to populate _event.data -->
  12. <send event="test" conf:basicHTTPAccessURITarget="" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor">
  13. <param name="param1" conf:expr="2"/>
  14. </send>
  15. </onentry>
  16. <!-- if we get this event, we succeed -->
  17. <transition event="test" target="s1">
  18. <assign conf:location="1" conf:eventDataParamValue="param1"/>
  19. </transition>
  20. <transition event="*" conf:targetfail=""/>
  21. </state>
  22. <state id="s1">
  23. <transition conf:idVal="1=2" conf:targetpass=""/>
  24. <transition conf:targetfail=""/>
  25. </state>
  26. <conf:pass/>
  27. <conf:fail/>
  28. </scxml>