summaryrefslogtreecommitdiffstats
path: root/test/scxml-test-framework/test/atom3-basic-tests/m3.scxml
blob: a2ceb343ccc7c3481d1338f2150c415dd886eecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<ns0:scxml 
    datamodel="ecmascript"
    xmlns:ns0="http://www.w3.org/2005/07/scxml" version="1.0"  name="root">
  <ns0:state id="AB">
    <ns0:initial>
      <ns0:transition target="A"/>
    </ns0:initial>
    <ns0:state id="A">
      <ns0:onentry>
        <ns0:log expr="&quot;entering state A&quot;"/>
      </ns0:onentry>
      <ns0:onexit>
        <ns0:log expr="&quot;exiting state A&quot;"/>
      </ns0:onexit>
      <ns0:transition target="B" event="e1">
        <ns0:log expr="&quot;triggered by e1&quot;"/>
      </ns0:transition>
    </ns0:state>
    <ns0:state id="B">
      <ns0:transition target="A" event="e2">
        <ns0:log expr="&quot;triggered by e2&quot;"/>
      </ns0:transition>
    </ns0:state>
    <ns0:transition target="C" event="e1"/>
  </ns0:state>
  <ns0:state id="C">
    <ns0:onentry>
      <ns0:log expr="&quot;entering state C&quot;"/>
    </ns0:onentry>
    <ns0:onexit>
      <ns0:log expr="&quot;exiting state C&quot;"/>
    </ns0:onexit>
  </ns0:state>
</ns0:scxml>