blob: e19f029b83c8ea34e8956a2f01ccb54e3d40e847 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<scxml datamodel="ecmascript">
<datamodel>
<data id="Var1" expr="0" />
</datamodel>
<state id="s0">
<transition target="pass" cond="Var1 == 2" />
<transition target="fail" />
<history id="h0" type="deep" />
<state id="s0.0">
<history id="h1" type="deep" />
<state id="s0.0.0">
<onentry>
<assign location="Var1" expr="Var1 + 1" />
</onentry>
<transition target="s0.0.1" cond="Var1 == 1" />
</state>
<state id="s0.0.1">
<transition target="s1" cond="Var1 == 1" />
</state>
</state>
</state>
<state id="s1">
<onentry>
<assign location="Var1" expr="Var1 + 1" />
</onentry>
<transition target="h0" cond="Var1 == 2" />
</state>
<final id="pass" />
<final id="fail" />
</scxml>
|