test147.txml 857 B

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <!-- test that the first clause that evaluates to true - and only that clause - is executed.
  3. Only one event should be raised, and it should be bar -->
  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. </datamodel>
  8. <state id="s0">
  9. <onentry>
  10. <if conf:false="">
  11. <raise event="foo"/>
  12. <conf:incrementID id="1"/>
  13. <elseif conf:true=""/>
  14. <raise event="bar"/>
  15. <conf:incrementID id="1"/>
  16. <else/>
  17. <raise event="baz"/>
  18. <conf:incrementID id="1"/>
  19. </if>
  20. <raise event="bat"/>
  21. </onentry>
  22. <transition event="bar" conf:idVal="1=1" conf:targetpass=""/>
  23. <transition event="*" conf:targetfail=""/>
  24. </state>
  25. <conf:pass/>
  26. <conf:fail/>
  27. </scxml>