blob: 4cfa34aa2e9e585d01df13aacf3115ccd1260e19 (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" binding="early"
name="content-expr-in-send" datamodel="ecmascript">
<state id="top">
<onentry>
<send event="timeout" delay="2s"/>
<send event="to_second">
<content>blah</content>
</send>
</onentry>
<state id="first">
<transition event="to_second" target="second"/>
</state>
<state id="second">
<onentry>
<send event="to_pass">
<content expr="_event.data"/>
</send>
</onentry>
</state>
<transition event="to_pass" cond="_event.data=='blah'" target="pass"/>
<transition event="timeout" 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>
|