-
Notifications
You must be signed in to change notification settings - Fork 0
/
testdom003.scxml
43 lines (40 loc) · 1.02 KB
/
testdom003.scxml
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
35
36
37
38
39
40
41
42
43
<scxml
initial="s0"
xmlns="http://www.w3.org/2005/07/scxml"
version="1.0"
xmlns:conf="http://www.w3.org/2005/scxml-conformance"
datamodel="ecmascript" >
<state id="s0" >
<onentry>
<send delay="5s" event="timeout" />
</onentry>
<invoke type="scxml" >
<content>
<scxml initial="sub0" version="1.0" datamodel="ecmascript" >
<state id="sub0" >
<onentry>
<send type="http://www.w3.org/TR/scxml/#DOMEventProcessor" target="#invalid" event="setcontent">
<content expr="'this is new content'"/>
</send>
</onentry>
<transition event="error.communication" >
<send event="caught" target="#_parent" />
</transition>
</state>
</scxml>
</content>
</invoke>
<transition event="caught" target="pass" />
<transition event="timeout" target="fail" />
</state>
<final id="pass" >
<onentry>
<log expr="'pass'" label="Outcome" />
</onentry>
</final>
<final id="fail" >
<onentry>
<log expr="'fail'" label="Outcome" />
</onentry>
</final>
</scxml>