summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test183.scxml
blob: 2b36df9ba18f18faf355fbba2b4b680a692b880e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" standalone="no"?>
<!-- we test that <send> stores the value of the sendid in idlocation.  If it does,
var1 has a value and we pass.  Otherwise we fail  -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="lua">
  <datamodel>
    <data id="testvar1"/>
  </datamodel>
  <state id="s0">
    <onentry>
      <send event="event1" idlocation="'testvar1'"/>
    </onentry>
    <transition cond="testvar1 ~= nil" target="pass"/>
    <transition target="fail"/>
  </state>
  <final id="pass"/>
  <final id="fail"/>
</scxml>