summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-custom-executable-content.scxml
blob: a40af934a94cd41eb66a2c54e83980adc10f414f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<scxml datamodel="ecmascript">
	<script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
	<state id="start">
		<onentry>
			<fetch 
				target="http://data.wien.gv.at/daten/wfs?service=WFS&amp;request=GetFeature&amp;version=1.1.0&amp;typeName=ogdwien:BAUMOGD&amp;srsName=EPSG:4326&amp;outputFormat=json&amp;maxfeatures=5" 
				callback="data.wien" 
				type="json" />
		</onentry>
		<state id="wait">
			<transition event="data.wien" target="final">
				<script>
					dump(_event);
				</script>
			</transition>
		</state>
	</state>
	<final id="final" />
</scxml>