summaryrefslogtreecommitdiffstats
path: root/test/w3c/namespace/test396.scxml
blob: 1a818d26c4b25c122f8f64e527adb1c6c6f9d7bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<!-- test that the value in _event.name matches the event name used to match against transitions  -->
<scxml:scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" xmlns:scxml="http://www.w3.org/2005/07/scxml" datamodel="ecmascript" version="1.0">
  <scxml:state id="s0">
    <scxml:onentry>
      <scxml:raise event="foo"/>
    </scxml:onentry>
    <scxml:transition event="foo" cond="_event.name == 'foo'" target="pass"/>
    <scxml:transition event="foo" target="fail"/>
  </scxml:state>
  <scxml:final id="pass">
    <scxml:onentry>
      <scxml:log label="Outcome" expr="'pass'"/>
    </scxml:onentry>
  </scxml:final>
  <scxml:final id="fail">
    <scxml:onentry>
      <scxml:log label="Outcome" expr="'fail'"/>
    </scxml:onentry>
  </scxml:final>
</scxml:scxml>