blob: 73e7ca8848f45d3fb99409d9b937024ca749df09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?xml version="1.0" standalone="no"?>
<!-- test that target value is used to decide what session to deliver the event to. A session should be
able to send an event to itself using its own session ID as the target -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="lua">
<datamodel>
<data expr="'#_scxml_'" id="testvar1"/>
<data expr="_sessionid" id="testvar2"/>
</datamodel>
<state id="s0">
<onentry>
<assign location="testvar1" expr="testvar1..testvar2"/>
<send delay="5s" event="timeout"/>
<send type="http://www.w3.org/TR/scxml/#SCXMLEventProcessor" event="s0Event" targetexpr="testvar1"/>
</onentry>
<transition event="s0Event" target="pass"/>
<transition event="*" target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|