blob: 14576ed965940ff67bcf4ac4ae13ce312d5599ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?xml version="1.0" standalone="no"?>
<!-- test that that namelist values get encoded as POST parameters. -->
<scxml xmlns="http://www.w3.org/2005/07/scxml" initial="s0" version="1.0" datamodel="lua">
<datamodel>
<data expr="2" id="testvar1"/>
</datamodel>
<state id="s0">
<onentry>
<send event="timeout" delay="30s"/>
<send event="test" type="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor" namelist="testvar1" targetexpr="_ioprocessors.basichttp.location"/>
</onentry>
<transition event="test" cond="_event.data.testvar1==2" target="pass"/>
<transition event="*" target="fail"/>
</state>
<final id="pass"/>
<final id="fail"/>
</scxml>
|