summaryrefslogtreecommitdiffstats
path: root/test/w3c/xpath/test193.scxml
blob: 58a5c675e4658124c1d03ab7b3ee8468c6600bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?><!-- we test that omitting target and targetexpr of <send> when using the
basichttp event i/o processor puts error.communication on the internal queue.  --><scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:conf="http://www.w3.org/2005/scxml-conformance" initial="s0" version="1.0" datamodel="xpath">

  
<state id="s0">
  <onentry>
   <!-- this should put an error in the internal queue -->
   <send event="event1" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor"/>
   <send event="fail"/>
    </onentry>
  
  <transition event="error.communication" target="pass"/>
  <transition event="*" target="fail"/>
 </state>

<final id="pass"><onentry><log label="Outcome" expr="'pass'"/></onentry></final>
<final id="fail"><onentry><log label="Outcome" expr="'fail'"/></onentry></final>

</scxml>