summaryrefslogtreecommitdiffstats
path: root/apps/samples
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-20 21:13:02 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-20 21:13:02 (GMT)
commita56f28b0db56ff3e39f0b50e4c55c52b7aeec696 (patch)
tree41cf67ea5cee9593e86272ab55367653fbd1c2f3 /apps/samples
parent7c779099b3acd1fa969dde718299484ebe0d2775 (diff)
downloaduscxml-a56f28b0db56ff3e39f0b50e4c55c52b7aeec696.zip
uscxml-a56f28b0db56ff3e39f0b50e4c55c52b7aeec696.tar.gz
uscxml-a56f28b0db56ff3e39f0b50e4c55c52b7aeec696.tar.bz2
See detailled log
- Builds on windows again - All HTTP requests are no passed into interpreter - New response element to reply with data - Moved basichttp URL - New HTTP servlet invoker to register additional URLs - More bugfixes than I care to mention
Diffstat (limited to 'apps/samples')
-rw-r--r--apps/samples/vrml-server.scxml26
1 files changed, 23 insertions, 3 deletions
diff --git a/apps/samples/vrml-server.scxml b/apps/samples/vrml-server.scxml
index 82560ef..e88be4c 100644
--- a/apps/samples/vrml-server.scxml
+++ b/apps/samples/vrml-server.scxml
@@ -1,11 +1,31 @@
-<scxml datamodel="ecmascript" name="vrml-convert">
+<scxml datamodel="ecmascript" name="vrml">
<script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
- <state id="main">
+ <datamodel>
+ <data id="files">
+ {
+ "foo" : "bar"
+ }
+ </data>
+ </datamodel>
+ <parallel id="main">
<!-- Stop processing if no vrml-path was given on command line -->
<transition target="final" cond="_x['args']['vrml-path'] == undefined || _x['args']['vrml-path'].length == 0">
<log expr="'No --vrml-path given'" />
</transition>
+ <state id="processHttp">
+ <state id="wait">
+ <transition event="http" target="wait">
+ <script>
+ dump(_event);
+ </script>
+ <response status="200" requestexpr="_event.origin">
+ <content expr="files" />
+ </response>
+ </transition>
+ </state>
+ </state>
+
<!-- Stop processing if an error occurred -->
<transition target="final" event="error">
<log expr="'An error occured:'" />
@@ -41,6 +61,6 @@
</script>
</onentry>
</state>
- </state>
+ </parallel>
<state id="final" final="true" />
</scxml> \ No newline at end of file