blob: 1222ceee3be11e6eee951c4d1f1e38ba9eee5b91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?xml version="1.0" standalone="no"?>
<!-- test that _name stays bound till the session ends. This means that it cannot be assigned to -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" name="machineName" datamodel="lua">
<state id="s0">
<transition target="s1" cond="_name == 'machineName'"/>
<transition target="fail"/>
</state>
<state id="s1">
<onentry>
<assign expr="'otherName'" location="_name"/>
</onentry>
<transition cond="_name == 'machineName'" target="pass"/>
<transition target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|