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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<scxml datamodel="ecmascript">
<script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
<state id="start">
<invoke type="umundo" id="scxml.umundo">
<param name="types" expr="'proto/Test.proto'" />
<param name="channel" expr="'types'" />
<param name="domain" expr="''" />
<finalize>
<script>
dump(_event);
</script>
</finalize>
</invoke>
<state id="idle">
<transition event="umundo.sub.added">
<send target="#_scxml.umundo" event="dump.event">
<!-- param name="type" expr="'RepeatedTypes'" / -->
<content>
({
"doubleType": [ 1.0, 2.0 ],
"floatType": [ 2.0, 3.0 ],
"int32Type": [ -3, -4 ],
"int64Type": [ -4, -5 ],
"uint32Type": [ 5, 6 ],
"uint64Type": [ 6, 7 ],
"sint32Type": [ -7, -8 ],
"sint64Type": [ -8, -9 ],
"fixed32Type": [ 9, 10 ],
"fixed64Type": [ 10, 11 ],
"sfixed32Type": [ -11, -12 ],
"sfixed64Type": [ -12, -13 ],
"boolType": [ false, true ],
"stringType": [ '1st string', '2nd string' ],
"bytesType": [ '1st bytes', '2nd bytes' ],
"repeatedMessage": [{
"doubleType": [ 1.0, 2.0 ],
"floatType": [ 2.0, 3.0 ],
"int32Type": [ -3, -4 ],
"int64Type": [ -4, -5 ],
"uint32Type": [ 5, 6 ],
"uint64Type": [ 6, 7 ],
"sint32Type": [ -7, -8 ],
"sint64Type": [ -8, -9 ],
"fixed32Type": [ 9, 10 ],
"fixed64Type": [ 10, 11 ],
"sfixed32Type": [ -11, -12 ],
"sfixed64Type": [ -12, -13 ],
"boolType": [ false, true ],
"stringType": [ '1st string', '2nd string' ],
"bytesType": [ '1st bytes', '2nd bytes' ],
}],
})
</content>
</send>
</transition>
</state>
</state>
</scxml>
|