summaryrefslogtreecommitdiffstats
path: root/test/issues/test-issue110.scxml
blob: 4d5032434682d42c51c7dae9cb3472bc7ce5b0d4 (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
35
36
37
38
39
40
41
42
<scxml datamodel="lua" initial="s0" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
	<datamodel>
		<data expr="1" id="Var1"/>
	</datamodel>
	<state id="s0">
		<onentry>
			<send delay="2000" event="timeout" xmlns:scxml="http://www.w3.org/2005/07/scxml"/>
		</onentry>
		<invoke type="http://www.w3.org/TR/scxml/">
			<content>
				<scxml datamodel="lua" initial="sub0" name="ScxmlShape1" version="1.0" xmlns="http://www.w3.org/2005/07/scxml">
					<datamodel>
						<data expr="555" id="VarXXX"/>
					</datamodel>
					<final id="subFinal"/>
					<state id="sub0">
						<transition cond="Var1==1" target="subFinal">
							<log expr="Var1" label="Var1 is supposed to be out of scope" />
							<send target="#_parent" event="failure"/>
						</transition>
						<transition target="subFinal">
							<send target="#_parent" event="success"/>
						</transition>
					</state>
				</scxml>
			</content>
		</invoke>
		<transition event="success" cond="not VarXXX" target="pass"/>
		<transition event="*" target="fail"/>
	</state>
	<final id="pass" xmlns:scxml="http://www.w3.org/2005/07/scxml">
		<onentry>
			<log expr="'pass'" label="Outcome"/>
			<log expr="VarXXX" label="We mustn't see VarXXX here"/>
		</onentry>
	</final>
	<final id="fail" xmlns:scxml="http://www.w3.org/2005/07/scxml">
		<onentry>
			<log expr="'fail'" label="Outcome"/>
		</onentry>
	</final>
</scxml>