test520.txml 891 B

1234567891011121314151617181920212223
  1. <!-- test that that <content> gets sent as the body of the message. -->
  2. <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">
  3. <state id="s0">
  4. <onentry>
  5. <send event="timeout" delay="30s"/>
  6. <send conf:basicHTTPAccessURITarget="" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor">
  7. <content>this is some content</content>
  8. </send>
  9. </onentry>
  10. <!-- if other end sends us back this event, we succeed. Test for two common
  11. ways of encoding -->
  12. <transition event="HTTP.POST" conf:messageBodyEquals="this+is+some+content" conf:targetpass=""/>
  13. <transition event="HTTP.POST" conf:messageBodyEquals="this%20is%20some%20content" conf:targetpass=""/>
  14. <transition event="*" conf:targetfail=""/>
  15. </state>
  16. <conf:pass/>
  17. <conf:fail/>
  18. </scxml>