summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test376.scxml
blob: d0f6911390185650d980fe059e93348ebe7b9ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" standalone="no"?>
<!-- test that each onentry handler is a separate block.  The <send> of event1 will cause an error but
 the increment to var1 should happen anyways -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" datamodel="lua">
  <datamodel>
    <data expr="1" id="testvar1"/>
  </datamodel>
  <state id="s0">
    <onentry>
      <send event="event1" target="xxxxxxxxx"/>
    </onentry>
    <onentry>
      <assign location="testvar1" expr="testvar1+1"/>
    </onentry>
    <transition cond="testvar1 == 2" target="pass"/>
    <transition target="fail"/>
  </state>
  <final id="pass"/>
  <final id="fail"/>
</scxml>