| 12345678910111213141516171819202122232425 |
- <?xml version="1.1" ?>
- <diagram author="Sam Pieters" name="ScriptEntryTest">
- <description>
- Check if a script works by updating parameters in the entry of a state.
- </description>
- <class name="MainApp" default="true">
- <constructor>
- <body>
- self.value = 0
- </body>
- </constructor>
- <scxml initial="state1">
- <state id="state1">
- <onentry>
- <script>
- self.value += 1
- </script>
- </onentry>
- <transition target="../state2" cond="self.value == 2"/>
- <transition target="." cond="self.value < 2" />
- </state>
- <state id="state2" />
- </scxml>
- </class>
- </diagram>
|