test509.txml 734 B

123456789101112131415161718192021
  1. <?xml version="1.0"?>
  2. <!-- test that Basic HTTP Event I/O processor uses POST method and that it can receive messages
  3. at the accessURI -->
  4. <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">
  5. <state id="s0">
  6. <onentry>
  7. <send event="timeout" delay="30s"/>
  8. <send event="test" conf:basicHTTPAccessURITarget="" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor"/>
  9. </onentry>
  10. <!-- if the event was send by http and we get it, we succeed -->
  11. <transition event="test" conf:methodIsPost="" conf:targetpass=""/>
  12. <transition event="*" conf:targetfail=""/>
  13. </state>
  14. <conf:pass/>
  15. <conf:fail/>
  16. </scxml>