summaryrefslogtreecommitdiffstats
path: root/test/w3c/lua/test534.scxml
blob: c206bc08e18c3655cb9c02eea8f0dfe0ca3e5ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" standalone="no"?>
<!-- test that that <send> 'event' value gets sent as the param _scxmleventname . -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="lua">
  <state id="s0">
    <onentry>
      <send event="timeout" delay="30s"/>
      <send event="test" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor" targetexpr="FIXME">
        </send>
    </onentry>
    <!-- if other end sends us back this event, we succeed -->
    <transition event="test" cond="_event.data._scxmleventname==test" target="pass"/>
    <transition event="*" target="fail"/>
  </state>
  <final id="pass"/>
  <final id="fail"/>
</scxml>