test156.txml 914 B

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0"?>
  2. <!-- test that an error causes the foreach to stop execution. The second piece of executable content
  3. should cause an error, so var1 should be incremented only once -->
  4. <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">
  5. <datamodel>
  6. <data conf:id="1" conf:expr="0"/>
  7. <data conf:id="2"/>
  8. <data conf:id="3">
  9. <conf:array123/>
  10. </data>
  11. </datamodel>
  12. <state id="s0">
  13. <onentry>
  14. <foreach conf:item="2" conf:arrayVar="3">
  15. <conf:incrementID id="1"/>
  16. <!-- assign an illegal value to a non-existent var -->
  17. <assign conf:location="5" conf:illegalExpr=""/>
  18. </foreach>
  19. </onentry>
  20. <transition conf:idVal="1=1" conf:targetpass=""/>
  21. <transition conf:targetfail=""/>
  22. </state>
  23. <conf:pass/>
  24. <conf:fail/>
  25. </scxml>