blob: 93d514c16e5e9078fd781e8beac3fce00b3c4d8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?xml version="1.0" standalone="no"?>
<!-- test that expr can be used to assign a value to a var. This test uses early binding -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" binding="early" datamodel="lua">
<state id="s0">
<transition cond="testvar1 == 2" target="pass"/>
<transition target="fail"/>
</state>
<state id="s1">
<datamodel>
<data expr="2" id="testvar1"/>
</datamodel>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|