blob: 17f80c39eb613ee948f9a19cb043d3ce79e72995 (
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
32
33
34
|
<?xml version="1.0" standalone="no"?>
<!-- we test that the automatically generated id is unique, we call invoke twice and compare the ids. -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="lua">
<datamodel>
<data id="testvar1"/>
<data id="testvar2"/>
</datamodel>
<state id="s0">
<onentry>
<send event="timeout" delay="1s"/>
</onentry>
<invoke type="http://www.w3.org/TR/scxml/" idlocation="testvar1">
<content>
<scxml initial="subFinal1" version="1.0" datamodel="lua">
<final id="subFinal1"/>
</scxml>
</content>
</invoke>
<invoke type="http://www.w3.org/TR/scxml/" idlocation="testvar2">
<content>
<scxml initial="subFinal2" version="1.0" datamodel="lua">
<final id="subFinal2"/>
</scxml>
</content>
</invoke>
<transition event="*" target="s1"/>
</state>
<state id="s1">
<transition cond="testvar1==testvar2" target="fail"/>
<transition target="pass"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|