sccd.xml 588 B

1234567891011121314151617181920
  1. <?xml version="1.1" ?>
  2. <diagram author="Sam Pieters" name="GuardConditionTest">
  3. <description>
  4. Test if the guard condition for a transition works
  5. </description>
  6. <top>
  7. VALUE = 5
  8. </top>
  9. <class name="MainApp" default="true">
  10. <scxml initial="state1">
  11. <state id="state1">
  12. <transition target="../state2" cond="VALUE == 3" />
  13. <transition target="../state3" cond="VALUE == 5" />
  14. </state>
  15. <state id="state2" />
  16. <state id="state3" />
  17. </scxml>
  18. </class>
  19. </diagram>