blob: 49e5b6eea13017038fa1f7ab203e9d781907628f (
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
|
<?xml version="1.0" standalone="no"?>
<!-- test that _sessionid remains bound to the same value throught the session. this means that it can't
be assigned to -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" name="machineName" datamodel="lua">
<datamodel>
<data expr="_sessionid" id="testvar1"/>
<data id="testvar2"/>
</datamodel>
<state id="s0">
<transition target="s1"/>
</state>
<state id="s1">
<onentry>
<assign expr="'otherName'" location="_sessionid"/>
<raise event="foo"/>
</onentry>
<transition event="error.execution" target="s2"/>
<transition event="*" target="fail"/>
</state>
<state id="s2">
<transition cond="testvar1 == _sessionid" target="pass"/>
<transition target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|