cpee 2.0.15 → 2.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/wfadaptor.css +17 -0
- data/cockpit/js/instance.js +6 -3
- data/cockpit/js/model.js +1 -1
- data/cockpit/js_libs.zip +0 -0
- data/cockpit/templates/UR-VUE 2020.xml +2 -2
- data/cockpit/themes/compact/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/compact/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/compact/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/default/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/default/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/default/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/diana/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/diana/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/diana/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/extended/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/extended/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/extended/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/model/rngs/call.rng +6 -1
- data/cockpit/themes/model/rngs/callmanipulate.rng +6 -1
- data/cockpit/themes/model/theme.js +1 -1
- data/cockpit/themes/packed/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/packed/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/packed/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/preset/rngs/closed_loop.rng +6 -3
- data/cockpit/themes/preset/rngs/closed_loop_control.rng +3 -0
- data/cockpit/themes/preset/rngs/closed_loop_measuring.rng +3 -0
- data/cockpit/themes/preset/theme.js +1 -1
- data/cpee.gemspec +2 -2
- data/lib/cpee/controller.rb +6 -3
- data/lib/cpee/implementation.rb +23 -8
- data/lib/cpee/implementation_notifications.rb +1 -1
- data/lib/cpee/persistence.rb +2 -1
- data/lib/cpee/redis.rb +57 -0
- data/server/handlerwrappers/default.rb +16 -16
- data/server/routing/end.rb +16 -4
- data/server/routing/forward-events.rb +19 -7
- data/server/routing/forward-votes.rb +19 -7
- data/server/routing/persist.rb +27 -15
- data/tools/cpee +6 -6
- data/tools/server/{server.rb → cpee} +0 -0
- data/tools/test/README +4 -0
- data/tools/test/config.json +3 -0
- data/tools/test/contrib/graph_example.svg +1166 -0
- data/tools/test/contrib/legend.svg +817 -0
- data/tools/test/contrib/symbols.svg +224 -0
- data/tools/test/contrib/transformation1.xsl +264 -0
- data/tools/test/contrib/transformation2.xsl +10 -0
- data/tools/test/contrib/tree_example.svg +788 -0
- data/tools/test/css/model.css +24 -0
- data/tools/test/css/track.css +60 -0
- data/tools/test/css/ui.css +214 -0
- data/tools/test/css/wfadaptor.css +422 -0
- data/tools/test/edit.html +258 -0
- data/tools/test/graph.html +69 -0
- data/tools/test/index.html +258 -0
- data/tools/test/js/details.js +109 -0
- data/tools/test/js/instance.js +1344 -0
- data/tools/test/js/model.js +41 -0
- data/tools/test/js/parameters.js +82 -0
- data/tools/test/js/track.js +18 -0
- data/tools/test/js/ui.js +104 -0
- data/tools/test/js/wfadaptor.js +763 -0
- data/tools/test/js_libs.zip +0 -0
- data/tools/test/js_libs/Makefile +2 -0
- data/tools/test/js_libs/ansi_up.js +333 -0
- data/tools/test/js_libs/console.js +80 -0
- data/tools/test/js_libs/custommenu.css +84 -0
- data/tools/test/js_libs/custommenu.js +104 -0
- data/tools/test/js_libs/experiments1/relaxngui.css +185 -0
- data/tools/test/js_libs/experiments1/relaxngui.js +488 -0
- data/tools/test/js_libs/experiments1/rngtest9.html +60 -0
- data/tools/test/js_libs/experiments1/rngtest9.rng +35 -0
- data/tools/test/js_libs/experiments1/rngtest9.xml +8 -0
- data/tools/test/js_libs/jquery-2.2.4.min.js +4 -0
- data/tools/test/js_libs/jquery-3.2.1.min.js +4 -0
- data/tools/test/js_libs/jquery-3.3.1.min.js +2 -0
- data/tools/test/js_libs/jquery.browser.js +40 -0
- data/tools/test/js_libs/jquery.caret.min.js +10 -0
- data/tools/test/js_libs/jquery.cookie.js +117 -0
- data/tools/test/js_libs/jquery.min.js +1 -0
- data/tools/test/js_libs/jquery.svg.min.js +6 -0
- data/tools/test/js_libs/jquery.svgdom.min.js +6 -0
- data/tools/test/js_libs/markdown.min.js +1 -0
- data/tools/test/js_libs/parsequery.js +21 -0
- data/tools/test/js_libs/printf.js +368 -0
- data/tools/test/js_libs/relaxngui.css +213 -0
- data/tools/test/js_libs/relaxngui.js +543 -0
- data/tools/test/js_libs/strftime.min.js +1 -0
- data/tools/test/js_libs/tests/dataelements.html +59 -0
- data/tools/test/js_libs/tests/dataelements.rng +8 -0
- data/tools/test/js_libs/tests/dataelements.xml +3 -0
- data/tools/test/js_libs/tests/relaxngui.css +203 -0
- data/tools/test/js_libs/tests/relaxngui.js +502 -0
- data/tools/test/js_libs/tests/rngtest1.html +66 -0
- data/tools/test/js_libs/tests/rngtest1.rng +147 -0
- data/tools/test/js_libs/tests/rngtest1.xml +13 -0
- data/tools/test/js_libs/tests/rngtest2.html +60 -0
- data/tools/test/js_libs/tests/rngtest2.rng +6 -0
- data/tools/test/js_libs/tests/rngtest2.xml +3 -0
- data/tools/test/js_libs/tests/rngtest3.html +60 -0
- data/tools/test/js_libs/tests/rngtest3.rng +23 -0
- data/tools/test/js_libs/tests/rngtest3.xml +9 -0
- data/tools/test/js_libs/tests/rngtest4.html +60 -0
- data/tools/test/js_libs/tests/rngtest4.rng +19 -0
- data/tools/test/js_libs/tests/rngtest4.xml +12 -0
- data/tools/test/js_libs/tests/rngtest5.html +60 -0
- data/tools/test/js_libs/tests/rngtest5.rng +75 -0
- data/tools/test/js_libs/tests/rngtest5.xml +40 -0
- data/tools/test/js_libs/tests/rngtest6.html +60 -0
- data/tools/test/js_libs/tests/rngtest6.rng +24 -0
- data/tools/test/js_libs/tests/rngtest6.xml +6 -0
- data/tools/test/js_libs/tests/rngtest8.html +60 -0
- data/tools/test/js_libs/tests/rngtest8.rng +13 -0
- data/tools/test/js_libs/tests/rngtest8.xml +2 -0
- data/tools/test/js_libs/tests/rngtest9.html +60 -0
- data/tools/test/js_libs/tests/rngtest9.rng +31 -0
- data/tools/test/js_libs/tests/rngtest9.xml +8 -0
- data/tools/test/js_libs/ui.css +333 -0
- data/tools/test/js_libs/ui.html +168 -0
- data/tools/test/js_libs/ui.js +177 -0
- data/tools/test/js_libs/underscore.min.js +27 -0
- data/tools/test/js_libs/util.js +81 -0
- data/tools/test/js_libs/vkbeautify.0.99.00.beta.js +358 -0
- data/tools/test/js_libs/vkbeautify.js +1 -0
- data/tools/test/js_libs/webcomponents.min.js +196 -0
- data/tools/test/model.html +192 -0
- data/tools/test/rngs/attributes.rng +8 -0
- data/tools/test/rngs/dataelements.rng +8 -0
- data/tools/test/rngs/endpoints.rng +8 -0
- data/tools/test/templates.legacy/Async.xml +46 -0
- data/tools/test/templates.legacy/BCO.xml +70 -0
- data/tools/test/templates.legacy/BCS.xml +70 -0
- data/tools/test/templates.legacy/Centurio.xml +75 -0
- data/tools/test/templates.legacy/Concurrent.xml +40 -0
- data/tools/test/templates.legacy/Coopis Testset.xml +76 -0
- data/tools/test/templates.legacy/Endpoints and Data Manipulation.xml +30 -0
- data/tools/test/templates.legacy/ICSOC Testset.xml +95 -0
- data/tools/test/templates.legacy/Infinity.xml +28 -0
- data/tools/test/templates.legacy/Lego Boxer.xml +31 -0
- data/tools/test/templates.legacy/Lego Conveyor.xml +31 -0
- data/tools/test/templates.legacy/Lego Crane.xml +87 -0
- data/tools/test/templates.legacy/Lego Ejector.xml +55 -0
- data/tools/test/templates.legacy/Lego Full.xml +142 -0
- data/tools/test/templates.legacy/Lego Liddy.xml +40 -0
- data/tools/test/templates.legacy/Lego Plate.xml +31 -0
- data/tools/test/templates.legacy/Lego Transporter.xml +43 -0
- data/tools/test/templates.legacy/Lego_Part_1.xml +85 -0
- data/tools/test/templates.legacy/LgLinear.xml +65 -0
- data/tools/test/templates.legacy/Linear.xml +77 -0
- data/tools/test/templates.legacy/Log.xml +117 -0
- data/tools/test/templates.legacy/Mangler 1.xml +87 -0
- data/tools/test/templates.legacy/Mangler 2.xml +103 -0
- data/tools/test/templates.legacy/Manuel Labels.xml +55 -0
- data/tools/test/templates.legacy/Promise.xml +275 -0
- data/tools/test/templates.legacy/SOPROMO Test Sonification.xml +83 -0
- data/tools/test/templates.legacy/Subprocess.xml +56 -0
- data/tools/test/templates.legacy/Syncing P34 1.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34 2.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34 3.xml +77 -0
- data/tools/test/templates.legacy/Syncing P34.xml +77 -0
- data/tools/test/templates.legacy/TEST - Bad Loop.xml +173 -0
- data/tools/test/templates.legacy/TEST - Wrong Positions.xml +174 -0
- data/tools/test/templates.legacy/Take_5.xml +48 -0
- data/tools/test/templates.legacy/Update.xml +32 -0
- data/tools/test/templates.legacy/Worklist Parallel.xml +104 -0
- data/tools/test/templates.legacy/Worklist Test CPEE.xml +40 -0
- data/tools/test/templates.legacy/Worklist Test.xml +42 -0
- data/tools/test/templates.legacy/Worklist Test2.xml +43 -0
- data/tools/test/templates.legacy/convert_cpee2.rb +15 -0
- data/tools/test/templates.legacy/convert_preset.rb +32 -0
- data/tools/test/templates.legacy/testsets.xml +37 -0
- data/tools/test/templates.legacy/transformations.xml +4 -0
- data/tools/test/templates/Coopis 2010.xml +76 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 1.xml +77 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 2.xml +77 -0
- data/tools/test/templates/IUPC arXiv:1104.3609 P34 3.xml +77 -0
- data/tools/test/templates/Track Test Local.xml +82 -0
- data/tools/test/templates/Track Test.xml +82 -0
- data/tools/test/templates/UR-VUE 2020 Manual Adjust.xml +182 -0
- data/tools/test/templates/UR-VUE 2020 Solution Baseline.xml +203 -0
- data/tools/test/templates/UR-VUE 2020 Solution NN.xml +197 -0
- data/tools/test/templates/UR-VUE 2020 Solution View.xml +151 -0
- data/tools/test/templates/UR-VUE 2020.xml +26 -0
- data/tools/test/templates/Worklist.xml +42 -0
- data/tools/test/templates/instantiate.local/Take_Sub.xml +59 -0
- data/tools/test/templates/instantiate/Take_Perf.xml +46 -0
- data/tools/test/templates/instantiate/Take_Sub.xml +58 -0
- data/tools/test/templates/instantiate/Take_X.xml +48 -0
- data/tools/test/themes/compact/theme.js +1285 -0
- data/tools/test/themes/diana/theme.js +1650 -0
- data/tools/test/themes/extended/theme.js +1325 -0
- data/tools/test/themes/model/rngs/alternative.rng +1 -0
- data/tools/test/themes/model/rngs/call.rng +67 -0
- data/tools/test/themes/model/rngs/callmanipulate.rng +72 -0
- data/tools/test/themes/model/rngs/choose.rng +1 -0
- data/tools/test/themes/model/rngs/critical.rng +1 -0
- data/tools/test/themes/model/rngs/escape.rng +1 -0
- data/tools/test/themes/model/rngs/group.rng +1 -0
- data/tools/test/themes/model/rngs/loop.rng +1 -0
- data/tools/test/themes/model/rngs/manipulate.rng +1 -0
- data/tools/test/themes/model/rngs/otherwise.rng +1 -0
- data/tools/test/themes/model/rngs/parallel.rng +1 -0
- data/tools/test/themes/model/rngs/parallel_branch.rng +1 -0
- data/tools/test/themes/model/rngs/scripts.rng +7 -0
- data/tools/test/themes/model/rngs/stop.rng +1 -0
- data/tools/test/themes/model/rngs/terminate.rng +1 -0
- data/tools/test/themes/model/theme.js +1268 -0
- data/tools/test/themes/packed/theme.js +1286 -0
- data/tools/test/themes/preset/rngs/alternative.rng +25 -0
- data/tools/test/themes/preset/rngs/call.rng +122 -0
- data/tools/test/themes/preset/rngs/callmanipulate.rng +145 -0
- data/tools/test/themes/preset/rngs/choose.rng +14 -0
- data/tools/test/themes/preset/rngs/closed_loop.rng +62 -0
- data/tools/test/themes/preset/rngs/closed_loop_cancel.rng +5 -0
- data/tools/test/themes/preset/rngs/closed_loop_control.rng +31 -0
- data/tools/test/themes/preset/rngs/closed_loop_measuring.rng +12 -0
- data/tools/test/themes/preset/rngs/critical.rng +5 -0
- data/tools/test/themes/preset/rngs/escape.rng +1 -0
- data/tools/test/themes/preset/rngs/group.rng +3 -0
- data/tools/test/themes/preset/rngs/loop.rng +22 -0
- data/tools/test/themes/preset/rngs/manipulate.rng +9 -0
- data/tools/test/themes/preset/rngs/otherwise.rng +22 -0
- data/tools/test/themes/preset/rngs/parallel.rng +21 -0
- data/tools/test/themes/preset/rngs/parallel_branch.rng +8 -0
- data/tools/test/themes/preset/rngs/scripts.rng +23 -0
- data/tools/test/themes/preset/rngs/stop.rng +5 -0
- data/tools/test/themes/preset/rngs/terminate.rng +1 -0
- data/tools/test/themes/preset/symbols/alternative.svg +5 -0
- data/tools/test/themes/preset/symbols/arrow.svg +3 -0
- data/tools/test/themes/preset/symbols/call.svg +6 -0
- data/tools/test/themes/preset/symbols/callmanipulate.svg +8 -0
- data/tools/test/themes/preset/symbols/choose.svg +5 -0
- data/tools/test/themes/preset/symbols/choose_exclusive.svg +5 -0
- data/tools/test/themes/preset/symbols/choose_inclusive.svg +4 -0
- data/tools/test/themes/preset/symbols/closed_loop.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_cancel.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_control.svg +5 -0
- data/tools/test/themes/preset/symbols/closed_loop_measuring.svg +6 -0
- data/tools/test/themes/preset/symbols/complex.svg +8 -0
- data/tools/test/themes/preset/symbols/critical.svg +4 -0
- data/tools/test/themes/preset/symbols/end.svg +3 -0
- data/tools/test/themes/preset/symbols/escape.svg +5 -0
- data/tools/test/themes/preset/symbols/event_end.svg +3 -0
- data/tools/test/themes/preset/symbols/loop.svg +5 -0
- data/tools/test/themes/preset/symbols/manipulate.svg +4 -0
- data/tools/test/themes/preset/symbols/otherwise.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel_branch.svg +5 -0
- data/tools/test/themes/preset/symbols/parallel_branch_compact.svg +4 -0
- data/tools/test/themes/preset/symbols/parallel_branch_event.svg +14 -0
- data/tools/test/themes/preset/symbols/parallel_branch_normal.svg +5 -0
- data/tools/test/themes/preset/symbols/scripts.svg +4 -0
- data/tools/test/themes/preset/symbols/start.svg +3 -0
- data/tools/test/themes/preset/symbols/stop.svg +5 -0
- data/tools/test/themes/preset/symbols/terminate.svg +4 -0
- data/tools/test/themes/preset/theme.js +1287 -0
- data/tools/test/track.html +142 -0
- metadata +222 -3
@@ -0,0 +1,70 @@
|
|
1
|
+
<testset>
|
2
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
3
|
+
<info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">Linear</info>
|
4
|
+
<modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
|
5
|
+
<theme>preset</theme>
|
6
|
+
<bc>operate</bc>
|
7
|
+
</attributes>
|
8
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
9
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
10
|
+
<x/>
|
11
|
+
</dataelements>
|
12
|
+
<!--}}}-->
|
13
|
+
<handlers/>
|
14
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<!--}}}-->
|
18
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
19
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
20
|
+
<!--{{{-->
|
21
|
+
<call id="a1" endpoint="timeout">
|
22
|
+
<parameters>
|
23
|
+
<!--{{{-->
|
24
|
+
<label>Step 1</label>
|
25
|
+
<method>:post</method>
|
26
|
+
<arguments>
|
27
|
+
<timeout>2</timeout>
|
28
|
+
</arguments>
|
29
|
+
</parameters>
|
30
|
+
<!--}}}-->
|
31
|
+
<code>
|
32
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
33
|
+
</code>
|
34
|
+
</call>
|
35
|
+
<call id="a2" endpoint="timeout">
|
36
|
+
<parameters>
|
37
|
+
<!--{{{-->
|
38
|
+
<label>Step 2</label>
|
39
|
+
<method>:post</method>
|
40
|
+
<arguments>
|
41
|
+
<timeout>4</timeout>
|
42
|
+
</arguments>
|
43
|
+
</parameters>
|
44
|
+
<!--}}}-->
|
45
|
+
<code>
|
46
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
47
|
+
</code>
|
48
|
+
</call>
|
49
|
+
<call id="a3" endpoint="timeout">
|
50
|
+
<parameters>
|
51
|
+
<!--{{{-->
|
52
|
+
<label>Step 3</label>
|
53
|
+
<method>:post</method>
|
54
|
+
<arguments>
|
55
|
+
<timeout>4</timeout>
|
56
|
+
</arguments>
|
57
|
+
</parameters>
|
58
|
+
<!--}}}-->
|
59
|
+
<code>
|
60
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
61
|
+
</code>
|
62
|
+
</call>
|
63
|
+
</description>
|
64
|
+
</description>
|
65
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
66
|
+
<description type="copy"/>
|
67
|
+
<dataelements type="rest"/>
|
68
|
+
<endpoints type="rest"/>
|
69
|
+
</transformation>
|
70
|
+
</testset>
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<testset>
|
2
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
3
|
+
<info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">Linear</info>
|
4
|
+
<modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
|
5
|
+
<theme>preset</theme>
|
6
|
+
<bc>start</bc>
|
7
|
+
</attributes>
|
8
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
9
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
10
|
+
<x/>
|
11
|
+
</dataelements>
|
12
|
+
<!--}}}-->
|
13
|
+
<handlers/>
|
14
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<!--}}}-->
|
18
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
19
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
20
|
+
<!--{{{-->
|
21
|
+
<call id="a1" endpoint="timeout">
|
22
|
+
<parameters>
|
23
|
+
<!--{{{-->
|
24
|
+
<label>Step 1</label>
|
25
|
+
<method>:post</method>
|
26
|
+
<arguments>
|
27
|
+
<timeout>2</timeout>
|
28
|
+
</arguments>
|
29
|
+
</parameters>
|
30
|
+
<!--}}}-->
|
31
|
+
<code>
|
32
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
33
|
+
</code>
|
34
|
+
</call>
|
35
|
+
<call id="a2" endpoint="timeout">
|
36
|
+
<parameters>
|
37
|
+
<!--{{{-->
|
38
|
+
<label>Step 2</label>
|
39
|
+
<method>:post</method>
|
40
|
+
<arguments>
|
41
|
+
<timeout>4</timeout>
|
42
|
+
</arguments>
|
43
|
+
</parameters>
|
44
|
+
<!--}}}-->
|
45
|
+
<code>
|
46
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
47
|
+
</code>
|
48
|
+
</call>
|
49
|
+
<call id="a3" endpoint="timeout">
|
50
|
+
<parameters>
|
51
|
+
<!--{{{-->
|
52
|
+
<label>Step 3</label>
|
53
|
+
<method>:post</method>
|
54
|
+
<arguments>
|
55
|
+
<timeout>4</timeout>
|
56
|
+
</arguments>
|
57
|
+
</parameters>
|
58
|
+
<!--}}}-->
|
59
|
+
<code>
|
60
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
61
|
+
</code>
|
62
|
+
</call>
|
63
|
+
</description>
|
64
|
+
</description>
|
65
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
66
|
+
<description type="copy"/>
|
67
|
+
<dataelements type="rest"/>
|
68
|
+
<endpoints type="rest"/>
|
69
|
+
</transformation>
|
70
|
+
</testset>
|
@@ -0,0 +1,75 @@
|
|
1
|
+
<testset>
|
2
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<losgroesse>3</losgroesse>
|
6
|
+
<spec>12345</spec>
|
7
|
+
<qualitaet>null</qualitaet>
|
8
|
+
<drilled>[]</drilled>
|
9
|
+
<typ>Typ A</typ>
|
10
|
+
<score>0</score>
|
11
|
+
</dataelements>
|
12
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
13
|
+
<cut>http://gruppe.wst.univie.ac.at/~mangler/services/cut.php</cut>
|
14
|
+
<drill>http://gruppe.wst.univie.ac.at/~mangler/services/drill.php</drill>
|
15
|
+
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
16
|
+
</endpoints>
|
17
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
18
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
19
|
+
<call id="a1" endpoint="cut">
|
20
|
+
<parameters>
|
21
|
+
<label>Schneiden</label>
|
22
|
+
<method>:post</method>
|
23
|
+
<arguments>
|
24
|
+
<typ>data.typ</typ>
|
25
|
+
<spec>data.spec</spec>
|
26
|
+
<losgroesse>data.losgroesse</losgroesse>
|
27
|
+
</arguments>
|
28
|
+
</parameters>
|
29
|
+
<code>
|
30
|
+
<finalize output="result">data.qualitaet = result.value('id')
|
31
|
+
data.score += result.value('score').to_f
|
32
|
+
status.update 1, 'Produziert'</finalize>
|
33
|
+
</code>
|
34
|
+
</call>
|
35
|
+
<parallel>
|
36
|
+
<loop mode="pre_test" condition="data.losgroesse > 0">
|
37
|
+
<parallel_branch pass="data.losgroesse" local="p">
|
38
|
+
<call id="a2" endpoint="drill">
|
39
|
+
<parameters>
|
40
|
+
<label>Bohren</label>
|
41
|
+
<method>:post</method>
|
42
|
+
<arguments>
|
43
|
+
<to>data.to</to>
|
44
|
+
</arguments>
|
45
|
+
</parameters>
|
46
|
+
<code>
|
47
|
+
<finalize output="result">data.drilled << result.value('id')
|
48
|
+
data.score += result.value('score').to_f</finalize>
|
49
|
+
</code>
|
50
|
+
</call>
|
51
|
+
</parallel_branch>
|
52
|
+
<manipulate id="a3">data.losgroesse -= 1</manipulate>
|
53
|
+
</loop>
|
54
|
+
</parallel>
|
55
|
+
<choose>
|
56
|
+
<alternative condition="data.score > 700">
|
57
|
+
<call id="a4" endpoint="approve">
|
58
|
+
<parameters>
|
59
|
+
<label>Beurteilen</label>
|
60
|
+
<method>:post</method>
|
61
|
+
<arguments>
|
62
|
+
<score>data.score</score>
|
63
|
+
</arguments>
|
64
|
+
</parameters>
|
65
|
+
</call>
|
66
|
+
</alternative>
|
67
|
+
</choose>
|
68
|
+
</description>
|
69
|
+
</description>
|
70
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
71
|
+
<description type="copy"/>
|
72
|
+
<dataelements type="rest"/>
|
73
|
+
<endpoints type="rest"/>
|
74
|
+
</transformation>
|
75
|
+
</testset>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<testset>
|
2
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<persons>3</persons>
|
6
|
+
<hotels>[]</hotels>
|
7
|
+
<costs>0</costs>
|
8
|
+
</dataelements>
|
9
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
10
|
+
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
11
|
+
</endpoints>
|
12
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
13
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
14
|
+
<parallel>
|
15
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
16
|
+
<parallel_branch pass="data.persons" local="p">
|
17
|
+
<call id="a2" endpoint="bookHotel">
|
18
|
+
<parameters>
|
19
|
+
<method>:post</method>
|
20
|
+
<arguments>
|
21
|
+
<to>"Vienna"</to>
|
22
|
+
</arguments>
|
23
|
+
</parameters>
|
24
|
+
<code>
|
25
|
+
<finalize output="result">data.hotels << result.value('id')
|
26
|
+
data.costs += result.value('costs').to_f</finalize>
|
27
|
+
</code>
|
28
|
+
</call>
|
29
|
+
</parallel_branch>
|
30
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
31
|
+
</loop>
|
32
|
+
</parallel>
|
33
|
+
</description>
|
34
|
+
</description>
|
35
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
36
|
+
<description type="copy"/>
|
37
|
+
<dataelements type="rest"/>
|
38
|
+
<endpoints type="rest"/>
|
39
|
+
</transformation>
|
40
|
+
</testset>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<testset>
|
2
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<persons>3</persons>
|
6
|
+
<card>Visa_12345</card>
|
7
|
+
<airline>null</airline>
|
8
|
+
<hotels>[]</hotels>
|
9
|
+
<from>Vienna</from>
|
10
|
+
<to>Prague</to>
|
11
|
+
<costs>0</costs>
|
12
|
+
</dataelements>
|
13
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
14
|
+
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
15
|
+
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
16
|
+
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
17
|
+
</endpoints>
|
18
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
19
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
20
|
+
<call id="a1" endpoint="bookAir">
|
21
|
+
<parameters>
|
22
|
+
<label>Book Airline</label>
|
23
|
+
<method>:post</method>
|
24
|
+
<arguments>
|
25
|
+
<from>data.from</from>
|
26
|
+
<to>data.to</to>
|
27
|
+
<persons>data.persons</persons>
|
28
|
+
</arguments>
|
29
|
+
</parameters>
|
30
|
+
<code>
|
31
|
+
<finalize output="result">data.airline = result.value('id')
|
32
|
+
data.costs += result.value('costs').to_f
|
33
|
+
status.update 1, 'Hotel'</finalize>
|
34
|
+
</code>
|
35
|
+
</call>
|
36
|
+
<parallel>
|
37
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
38
|
+
<parallel_branch pass="data.persons" local="p">
|
39
|
+
<call id="a2" endpoint="bookHotel">
|
40
|
+
<parameters>
|
41
|
+
<label>Book Hotel</label>
|
42
|
+
<method>:post</method>
|
43
|
+
<arguments>
|
44
|
+
<to>data.to</to>
|
45
|
+
</arguments>
|
46
|
+
</parameters>
|
47
|
+
<code>
|
48
|
+
<finalize output="result">data.hotels << result.value('id')
|
49
|
+
data.costs += result.value('costs').to_f</finalize>
|
50
|
+
</code>
|
51
|
+
</call>
|
52
|
+
</parallel_branch>
|
53
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
54
|
+
</loop>
|
55
|
+
</parallel>
|
56
|
+
<choose mode="inclusive">
|
57
|
+
<alternative condition="data.costs > 700">
|
58
|
+
<call id="a4" endpoint="approve">
|
59
|
+
<parameters>
|
60
|
+
<label>Approve Hotel</label>
|
61
|
+
<method>:post</method>
|
62
|
+
<arguments>
|
63
|
+
<costs>data.costs</costs>
|
64
|
+
</arguments>
|
65
|
+
</parameters>
|
66
|
+
</call>
|
67
|
+
</alternative>
|
68
|
+
</choose>
|
69
|
+
</description>
|
70
|
+
</description>
|
71
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
72
|
+
<description type="copy"/>
|
73
|
+
<dataelements type="rest"/>
|
74
|
+
<endpoints type="rest"/>
|
75
|
+
</transformation>
|
76
|
+
</testset>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<testset>
|
2
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">RescueHandlerWrapper</handlerwrapper>
|
4
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<input>4</input>
|
6
|
+
<data_stores_endpoint/>
|
7
|
+
<output/>
|
8
|
+
</dataelements>
|
9
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
10
|
+
<ep1>Somewhere over the rainbow</ep1>
|
11
|
+
</endpoints>
|
12
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
13
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
14
|
+
<manipulate id="endpoints">
|
15
|
+
endpoints.a_new_one = "new Endpoint"
|
16
|
+
endpoints.ep1 = "services changed"
|
17
|
+
endpoints.copy_of_ep1 = endpoints.ep1
|
18
|
+
data.data_stores_endpoint = endpoints.ep1
|
19
|
+
</manipulate>
|
20
|
+
<manipulate id="data">data.a_new_one = "new dataelement"
|
21
|
+
data[:input] = "dataelement changed"
|
22
|
+
data.output = data[:input]</manipulate>
|
23
|
+
</description>
|
24
|
+
</description>
|
25
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
26
|
+
<description type="external"/>
|
27
|
+
<dataelements type="external"/>
|
28
|
+
<endpoints type="external"/>
|
29
|
+
</transformation>
|
30
|
+
</testset>
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<testset>
|
2
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<feedback>true</feedback>
|
6
|
+
</dataelements>
|
7
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
8
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
9
|
+
</endpoints>
|
10
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
11
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
12
|
+
<parallel>
|
13
|
+
<parallel_branch>
|
14
|
+
<loop mode="pre_test" condition="data.feedback">
|
15
|
+
<call id="design" endpoint="timeout">
|
16
|
+
<parameters>
|
17
|
+
<!--{{{-->
|
18
|
+
<label>Design</label>
|
19
|
+
<method>:post</method>
|
20
|
+
<arguments>
|
21
|
+
<timeout>4</timeout>
|
22
|
+
</arguments>
|
23
|
+
</parameters>
|
24
|
+
<!--}}}-->
|
25
|
+
</call>
|
26
|
+
<call id="validate" endpoint="timeout">
|
27
|
+
<parameters>
|
28
|
+
<!--{{{-->
|
29
|
+
<label>Validate</label>
|
30
|
+
<method>:post</method>
|
31
|
+
<arguments>
|
32
|
+
<timeout>2</timeout>
|
33
|
+
</arguments>
|
34
|
+
</parameters>
|
35
|
+
<!--}}}-->
|
36
|
+
</call>
|
37
|
+
<call id="publish" endpoint="timeout">
|
38
|
+
<parameters>
|
39
|
+
<!--{{{-->
|
40
|
+
<label>Publish</label>
|
41
|
+
<method>:post</method>
|
42
|
+
<arguments>
|
43
|
+
<timeout>1</timeout>
|
44
|
+
</arguments>
|
45
|
+
</parameters>
|
46
|
+
<!--}}}-->
|
47
|
+
</call>
|
48
|
+
</loop>
|
49
|
+
</parallel_branch>
|
50
|
+
<parallel_branch>
|
51
|
+
<loop mode="pre_test" condition="data.feedback">
|
52
|
+
<call id="prepare" endpoint="timeout">
|
53
|
+
<parameters>
|
54
|
+
<!--{{{-->
|
55
|
+
<label>Prepare</label>
|
56
|
+
<method>:post</method>
|
57
|
+
<arguments>
|
58
|
+
<timeout>4</timeout>
|
59
|
+
</arguments>
|
60
|
+
</parameters>
|
61
|
+
<!--}}}-->
|
62
|
+
</call>
|
63
|
+
<call id="fab" endpoint="timeout">
|
64
|
+
<parameters>
|
65
|
+
<!--{{{-->
|
66
|
+
<label>Fabricate</label>
|
67
|
+
<method>:post</method>
|
68
|
+
<arguments>
|
69
|
+
<timeout>4</timeout>
|
70
|
+
</arguments>
|
71
|
+
</parameters>
|
72
|
+
<!--}}}-->
|
73
|
+
</call>
|
74
|
+
<call id="evaluate" endpoint="timeout">
|
75
|
+
<parameters>
|
76
|
+
<!--{{{-->
|
77
|
+
<label>Evaluate</label>
|
78
|
+
<method>:post</method>
|
79
|
+
<arguments>
|
80
|
+
<timeout>4</timeout>
|
81
|
+
</arguments>
|
82
|
+
</parameters>
|
83
|
+
<!--}}}-->
|
84
|
+
</call>
|
85
|
+
</loop>
|
86
|
+
</parallel_branch>
|
87
|
+
</parallel>
|
88
|
+
</description>
|
89
|
+
</description>
|
90
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
91
|
+
<description type="copy"/>
|
92
|
+
<dataelements type="rest"/>
|
93
|
+
<endpoints type="rest"/>
|
94
|
+
</transformation>
|
95
|
+
</testset>
|