test530.txml 1002 B

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0"?>
  2. <!-- test that <content> child is evaluated when <invoke> is. Var1 is initialized
  3. with an integer value, then set to an scxml script in the onentry to s0. If <content>
  4. is evaluated at the right time, we should get invoke.done, otherwise an error -->
  5. <scxml initial="s0" version="1.0" conf:datamodel="" xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance">
  6. <datamodel>
  7. <data conf:id="1" conf:expr="1"/>
  8. </datamodel>
  9. <state id="s0">
  10. <onentry>
  11. <assign conf:location="1">
  12. <scxml version="1.0"><final/></scxml>
  13. </assign>
  14. <send event="timeout" delay="2s"/>
  15. </onentry>
  16. <invoke type="http://www.w3.org/TR/scxml/">
  17. <content conf:varChildExpr="1"/>
  18. </invoke>
  19. <transition event="done.invoke" conf:targetpass=""/>
  20. <transition event="*" conf:targetfail=""/>
  21. </state>
  22. <conf:pass/>
  23. <conf:fail/>
  24. </scxml>