summaryrefslogtreecommitdiffstats
path: root/test/issues/test-issue84.scxml
blob: 09fd2652ed6195acdf8cf52bda2cbefc6b2ea763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<scxml datamodel="lua" initial="Start" name="Root" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
    <datamodel>
        <data id="testTable">{
    a=555,b=777,c=888
}
        </data>
    </datamodel>
    <final id="pass"/>
    <final id="fail"/>
    <state id="Start">
        <onentry>
            <script>print('*************************')
print(type(testTable))
for k,v in pairs(testTable) do
    print(string.format(&quot;key=%s,value=%s&quot;,tostring(k),tostring(v)))
end
            </script>
        </onentry>
        <transition target="pass"/>
        <transition event="error.*" target="Fail"/>
    </state>
</scxml>