test344.txml 878 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- test that a cond expression that cannot be evaluated as a
  3. boolean cond expression evaluates to false and causes error.execution to be raised.
  4. In some languages, any valid expression/object can be converted to a boolean, so conf:nonBoolean will
  5. have to be mapped onto something that produces a syntax error or something similarly invalid -->
  6. <scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0"
  7. conf:datamodel="" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0">
  8. <state id="s0">
  9. <transition conf:nonBoolean="" conf:targetfail=""/>
  10. <transition target="s1"/>
  11. </state>
  12. <state id="s1">
  13. <onentry>
  14. <raise event="foo"/>
  15. </onentry>
  16. <transition event="error.execution" conf:targetpass=""/>
  17. <transition event="*" conf:targetfail=""/>
  18. </state>
  19. <conf:pass/>
  20. <conf:fail/>
  21. </scxml>