summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-invoked.scxml
blob: f34ed5c777436efc305a514c3362502ff34a65a0 (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
<!-- This is invoked in test-communications.scxml from a scxml invoker -->
<scxml datamodel="ecmascript">
	<state id="start">
		<onentry>
			<script>
				foo = {
					"atom": "urghs",
					"array": [0,1,2,3,4],
					"compound": {
						"key1": "value1",
						"key2": "value2",
						"key3": "value3",
					}
				};
				bar = "This is some string";
			</script>
			<log expr="'Message from the invoked scxml interpreter'" type="http://www.w3.org/TR/scxml/#Anything" id="thisOne" />
			<send target="#_parent" event="transitionToNext" namelist="foo bar">
				<param name="bar" expr="bar" />
				<content>
This is some content!
				</content>
			</send>
		</onentry>
		
		<transition target="done" />
	</state>
	<state id="done" final="true" />
</scxml>