test531.txml 751 B

12345678910111213141516171819202122
  1. <!-- test that that the value of the <param> _scxmleventname gets used as the name
  2. of the raised event. -->
  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. <state id="s0">
  5. <onentry>
  6. <send event="timeout" delay="3s"/>
  7. <send conf:basicHTTPAccessURITarget="" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor">
  8. <param name="_scxmleventname" conf:quoteExpr="test"/>
  9. </send>
  10. </onentry>
  11. <!-- if we get an event named 'test' we succeed. Otherwise fail -->
  12. <transition event="test" conf:targetpass=""/>
  13. <transition event="*" conf:targetfail=""/>
  14. </state>
  15. <conf:pass/>
  16. <conf:fail/>
  17. </scxml>