cpee 2.0.17 → 2.0.22
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 +0 -1
- data/cockpit/js_libs.zip +0 -0
- data/cockpit/themes/model/rngs/call.rng +2 -1
- data/cockpit/themes/model/rngs/callmanipulate.rng +2 -1
- data/cockpit/themes/model/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 +15 -15
- 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 +5 -5
- 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 +221 -3
- data/cockpit/edit.html +0 -1
@@ -0,0 +1,103 @@
|
|
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
|
+
<method>:post</method>
|
23
|
+
<arguments>
|
24
|
+
<from>data.from</from>
|
25
|
+
<to>data.to</to>
|
26
|
+
<persons>data.persons</persons>
|
27
|
+
</arguments>
|
28
|
+
</parameters>
|
29
|
+
<code>
|
30
|
+
<finalize output="result">data.airline = result.value('id')
|
31
|
+
data.costs += result.value('costs').to_f</finalize>
|
32
|
+
</code>
|
33
|
+
</call>
|
34
|
+
<parallel>
|
35
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
36
|
+
<parallel_branch pass="data.persons" local="p">
|
37
|
+
<call id="a2" endpoint="bookHotel">
|
38
|
+
<parameters>
|
39
|
+
<method>:post</method>
|
40
|
+
<arguments>
|
41
|
+
<to>data.to</to>
|
42
|
+
</arguments>
|
43
|
+
</parameters>
|
44
|
+
<code>
|
45
|
+
<finalize output="result">data.hotels << result.value('id')
|
46
|
+
data.costs += result.value('costs').to_f</finalize>
|
47
|
+
</code>
|
48
|
+
</call>
|
49
|
+
</parallel_branch>
|
50
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
51
|
+
</loop>
|
52
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
53
|
+
<parallel_branch pass="data.persons" local="p">
|
54
|
+
<call id="a4" endpoint="bookHotel">
|
55
|
+
<parameters>
|
56
|
+
<method>:post</method>
|
57
|
+
<arguments>
|
58
|
+
<to>data.to</to>
|
59
|
+
</arguments>
|
60
|
+
</parameters>
|
61
|
+
<code>
|
62
|
+
<finalize output="result">data.hotels << result.value('id')
|
63
|
+
data.costs += result.value('costs').to_f</finalize>
|
64
|
+
</code>
|
65
|
+
</call>
|
66
|
+
</parallel_branch>
|
67
|
+
<parallel_branch pass="data.persons" local="p">
|
68
|
+
<call id="a5" endpoint="bookHotel">
|
69
|
+
<parameters>
|
70
|
+
<method>:post</method>
|
71
|
+
<arguments>
|
72
|
+
<to>data.to</to>
|
73
|
+
</arguments>
|
74
|
+
</parameters>
|
75
|
+
<code>
|
76
|
+
<finalize output="result">data.hotels << result.value('id')
|
77
|
+
data.costs += result.value('costs').to_f</finalize>
|
78
|
+
</code>
|
79
|
+
</call>
|
80
|
+
</parallel_branch>
|
81
|
+
<manipulate id="a6">data.persons -= 1</manipulate>
|
82
|
+
</loop>
|
83
|
+
</parallel>
|
84
|
+
<choose>
|
85
|
+
<alternative condition="data.costs > 700">
|
86
|
+
<call id="a7" endpoint="approve">
|
87
|
+
<parameters>
|
88
|
+
<method>:post</method>
|
89
|
+
<arguments>
|
90
|
+
<costs>data.costs</costs>
|
91
|
+
</arguments>
|
92
|
+
</parameters>
|
93
|
+
</call>
|
94
|
+
</alternative>
|
95
|
+
</choose>
|
96
|
+
</description>
|
97
|
+
</description>
|
98
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
99
|
+
<description type="copy"/>
|
100
|
+
<dataelements type="rest"/>
|
101
|
+
<endpoints type="rest"/>
|
102
|
+
</transformation>
|
103
|
+
</testset>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<testset>
|
2
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<timeout xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
6
|
+
</endpoints>
|
7
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
8
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
9
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
10
|
+
<call id="a2" endpoint="timeout">
|
11
|
+
<parameters>
|
12
|
+
<label>centrifugation</label>
|
13
|
+
<method>:post</method>
|
14
|
+
<arguments/>
|
15
|
+
</parameters>
|
16
|
+
</call>
|
17
|
+
<call id="a1" endpoint="timeout">
|
18
|
+
<parameters>
|
19
|
+
<label>"any activity"</label>
|
20
|
+
<method>:post</method>
|
21
|
+
<arguments>
|
22
|
+
<timeout>2</timeout>
|
23
|
+
</arguments>
|
24
|
+
</parameters>
|
25
|
+
</call>
|
26
|
+
<call id="a3" endpoint="timeout">
|
27
|
+
<parameters>
|
28
|
+
<label>connect KWP</label>
|
29
|
+
<method>:post</method>
|
30
|
+
<arguments>
|
31
|
+
<timeout>2</timeout>
|
32
|
+
</arguments>
|
33
|
+
</parameters>
|
34
|
+
</call>
|
35
|
+
<call id="a4" endpoint="timeout">
|
36
|
+
<parameters>
|
37
|
+
<label>get loan</label>
|
38
|
+
<method>:post</method>
|
39
|
+
<arguments>
|
40
|
+
<timeout>2</timeout>
|
41
|
+
</arguments>
|
42
|
+
</parameters>
|
43
|
+
</call>
|
44
|
+
</description>
|
45
|
+
</description>
|
46
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
47
|
+
<description type="copy"/>
|
48
|
+
<dataelements type="none"/>
|
49
|
+
<endpoints type="none"/>
|
50
|
+
</transformation>
|
51
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
52
|
+
<info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">Lego Conveyor</info>
|
53
|
+
<modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
|
54
|
+
</attributes>
|
55
|
+
</testset>
|
@@ -0,0 +1,275 @@
|
|
1
|
+
<testset>
|
2
|
+
<dataelements xmlns="http://cpee.org/ns/properties/2.0"/>
|
3
|
+
<handlerwrapper xmlns="http://cpee.org/ns/properties/2.0">DefaultHandlerWrapper</handlerwrapper>
|
4
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
5
|
+
<timeout xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/timeout</timeout>
|
6
|
+
<timeout1 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/timeout/1</timeout1>
|
7
|
+
<timeout2 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/timeout/16</timeout2>
|
8
|
+
<timeout3 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/timeout/41</timeout3>
|
9
|
+
<preminder1 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/preminder/1</preminder1>
|
10
|
+
<preminder2 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/preminder/2</preminder2>
|
11
|
+
<sreminder1 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/sreminder/1</sreminder1>
|
12
|
+
<sreminder2 xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/sreminder/2</sreminder2>
|
13
|
+
<inkasso xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/inkasso</inkasso>
|
14
|
+
<customer xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/customer</customer>
|
15
|
+
<credit xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/credit</credit>
|
16
|
+
<credit_worthy xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/credit/worthy</credit_worthy>
|
17
|
+
<activation xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/activation</activation>
|
18
|
+
<zaehler xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/zaehler</zaehler>
|
19
|
+
<update xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/update</update>
|
20
|
+
<consume xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/consume</consume>
|
21
|
+
<decide xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/decide</decide>
|
22
|
+
<credit_consume xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/credit/consume</credit_consume>
|
23
|
+
<credit_activate xmlns="http://riddl.org/ns/common-patterns/properties/1.0">http://promise.wst.univie.ac.at:9301/credit/activate</credit_activate>
|
24
|
+
</endpoints>
|
25
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
26
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
27
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
28
|
+
<call id="a20" endpoint="customer" svg-label="Generate Customer">
|
29
|
+
<parameters>
|
30
|
+
<label>"Generate Customer"</label>
|
31
|
+
<method>:post</method>
|
32
|
+
<arguments/>
|
33
|
+
</parameters>
|
34
|
+
<code>
|
35
|
+
<finalize>data.knr=result[0].value;data.status="normal";data.zaehlerid=result[1].value</finalize>
|
36
|
+
</code>
|
37
|
+
</call>
|
38
|
+
<call id="a10" endpoint="sreminder1" svg-label="Sendung erste Mahnung">
|
39
|
+
<parameters>
|
40
|
+
<label>"Sent first Reminder"</label>
|
41
|
+
<method>:post</method>
|
42
|
+
<arguments>
|
43
|
+
<knr>data.knr</knr>
|
44
|
+
</arguments>
|
45
|
+
<type>:task</type>
|
46
|
+
<mid>'sid-5CD9191C-7233-414F-8EF4-A4E1A8D39E07'</mid>
|
47
|
+
</parameters>
|
48
|
+
</call>
|
49
|
+
<parallel wait="1" svg-label="">
|
50
|
+
<parallel_branch svg-label="">
|
51
|
+
<call id="a14" endpoint="timeout1" svg-label="2-woechige Frist">
|
52
|
+
<parameters>
|
53
|
+
<label>"1. 2 week deadline"</label>
|
54
|
+
<method>:post</method>
|
55
|
+
<arguments>
|
56
|
+
<timeout>2</timeout>
|
57
|
+
</arguments>
|
58
|
+
</parameters>
|
59
|
+
</call>
|
60
|
+
<call id="a11" endpoint="sreminder2" svg-label="Senden zweite Mahnung">
|
61
|
+
<parameters>
|
62
|
+
<label>"Send second reminder"</label>
|
63
|
+
<method>:post</method>
|
64
|
+
<arguments>
|
65
|
+
<knr>data.knr</knr>
|
66
|
+
</arguments>
|
67
|
+
<type>:task</type>
|
68
|
+
<mid>'sid-8417E18E-016C-4F87-86FC-216475C1C029'</mid>
|
69
|
+
</parameters>
|
70
|
+
</call>
|
71
|
+
<parallel wait="1" svg-label="">
|
72
|
+
<parallel_branch svg-label="">
|
73
|
+
<call id="a7" endpoint="timeout2" svg-label="2-woechige Frist">
|
74
|
+
<parameters>
|
75
|
+
<label>"2. 2 week deadline"</label>
|
76
|
+
<method>:post</method>
|
77
|
+
<arguments>
|
78
|
+
<timeout>2</timeout>
|
79
|
+
</arguments>
|
80
|
+
</parameters>
|
81
|
+
</call>
|
82
|
+
<call id="a1" endpoint="inkasso" svg-label="Registrierung als Inkassokunde">
|
83
|
+
<parameters>
|
84
|
+
<label>"Register as debt customer"</label>
|
85
|
+
<method>:put</method>
|
86
|
+
<arguments>
|
87
|
+
<status>data.status</status>
|
88
|
+
</arguments>
|
89
|
+
</parameters>
|
90
|
+
<code>
|
91
|
+
<finalize>data.status=result[0].value;data.zaehler_status='normal'</finalize>
|
92
|
+
</code>
|
93
|
+
</call>
|
94
|
+
<parallel wait="-1" svg-label="">
|
95
|
+
<parallel_branch svg-label="">
|
96
|
+
<call id="a4" endpoint="activation" svg-label="Aktivierung Register fuer Guthaben und Anzeige am Display (Prepayment)">
|
97
|
+
<parameters>
|
98
|
+
<label>"Activate register for credit and display (prepayment)"</label>
|
99
|
+
<method>:post</method>
|
100
|
+
<type>:task</type>
|
101
|
+
<mid>'sid-032C8450-4DF9-435B-8105-F0C13734A7A8'</mid>
|
102
|
+
<arguments>
|
103
|
+
<knr>data.knr</knr>
|
104
|
+
</arguments>
|
105
|
+
</parameters>
|
106
|
+
</call>
|
107
|
+
</parallel_branch>
|
108
|
+
<parallel_branch svg-label="">
|
109
|
+
<call id="a2" endpoint="inkasso" svg-label="Umparametrierung des Zaehlers von Normal- auf Inkassobetrieb">
|
110
|
+
<parameters>
|
111
|
+
<label>"Parametrize meter from normal to debt operation "</label>
|
112
|
+
<method>:put</method>
|
113
|
+
<arguments>
|
114
|
+
<zaehlerid>data.zaehlerid</zaehlerid>
|
115
|
+
<status>data.zaehler_status</status>
|
116
|
+
</arguments>
|
117
|
+
</parameters>
|
118
|
+
<code>
|
119
|
+
<finalize>data.zaehler_status=result[0].value</finalize>
|
120
|
+
</code>
|
121
|
+
</call>
|
122
|
+
</parallel_branch>
|
123
|
+
</parallel>
|
124
|
+
<call id="a6" endpoint="update" svg-label="Aktualisierung Guthaben">
|
125
|
+
<parameters>
|
126
|
+
<label>"Create credit"</label>
|
127
|
+
<method>:post</method>
|
128
|
+
<arguments/>
|
129
|
+
</parameters>
|
130
|
+
<code>
|
131
|
+
<finalize>data.wartefrist="ok";data.guthaben=result[0].value.to_i</finalize>
|
132
|
+
</code>
|
133
|
+
</call>
|
134
|
+
<call id="a3" endpoint="timeout3" svg-label="Aufladen">
|
135
|
+
<parameters>
|
136
|
+
<label>"Upate Credit"</label>
|
137
|
+
<method>:post</method>
|
138
|
+
<arguments/>
|
139
|
+
</parameters>
|
140
|
+
<code>
|
141
|
+
<finalize>p data.guthaben</finalize>
|
142
|
+
</code>
|
143
|
+
</call>
|
144
|
+
<loop mode="pre_test" condition="data.wartefrist!='verstrichen'" svg-label="">
|
145
|
+
<loop mode="pre_test" condition="data.guthaben>0" svg-label="">
|
146
|
+
<call id="a5" endpoint="consume" svg-label="Verbrauchen">
|
147
|
+
<parameters>
|
148
|
+
<label>"Consume Credit"</label>
|
149
|
+
<method>:post</method>
|
150
|
+
<arguments>
|
151
|
+
<knr>data.knr</knr>
|
152
|
+
</arguments>
|
153
|
+
</parameters>
|
154
|
+
<code>
|
155
|
+
<finalize>data.guthaben=data.guthaben-result[0].value.to_i</finalize>
|
156
|
+
</code>
|
157
|
+
</call>
|
158
|
+
</loop>
|
159
|
+
<call id="a13" endpoint="decide" svg-label="Gesetzl. Frist">
|
160
|
+
<parameters>
|
161
|
+
<label>"Legal waiting time"</label>
|
162
|
+
<method>:post</method>
|
163
|
+
<arguments>
|
164
|
+
<knr>data.knr</knr>
|
165
|
+
</arguments>
|
166
|
+
</parameters>
|
167
|
+
<code>
|
168
|
+
<finalize>data.wartefrist="verstrichen" if result[0].name == 'wartefrist';data.guthaben=result[0].value.to_i if result[0].name == "balance"</finalize>
|
169
|
+
</code>
|
170
|
+
</call>
|
171
|
+
</loop>
|
172
|
+
<call id="a17" endpoint="timeout" svg-label="Abschaltung">
|
173
|
+
<parameters>
|
174
|
+
<label>"Trigger switching off"</label>
|
175
|
+
<method>:post</method>
|
176
|
+
<arguments>
|
177
|
+
<knr>data.knr</knr>
|
178
|
+
</arguments>
|
179
|
+
</parameters>
|
180
|
+
<code>
|
181
|
+
<finalize>data.zaehler_status='off'</finalize>
|
182
|
+
</code>
|
183
|
+
</call>
|
184
|
+
<call id="a8" endpoint="credit_worthy" svg-label="Kreditwuerdig">
|
185
|
+
<parameters>
|
186
|
+
<label>"Creditworthy"</label>
|
187
|
+
<method>:post</method>
|
188
|
+
<arguments>
|
189
|
+
<knr>data.knr</knr>
|
190
|
+
</arguments>
|
191
|
+
</parameters>
|
192
|
+
<code>
|
193
|
+
<finalize>data.kreditf=result[0].value;data.kredit_wanted="true"</finalize>
|
194
|
+
</code>
|
195
|
+
</call>
|
196
|
+
<choose mode="exclusive" svg-label="">
|
197
|
+
<alternative condition="data.kreditf=='true'" svg-label="">
|
198
|
+
<call id="a12" endpoint="timeout" svg-label="activate parametrizable credit function and credit offer">
|
199
|
+
<parameters>
|
200
|
+
<label>"activate parametrizable credit function and credit offer"</label>
|
201
|
+
<method>:post</method>
|
202
|
+
<arguments>
|
203
|
+
<knr>data.knr</knr>
|
204
|
+
</arguments>
|
205
|
+
</parameters>
|
206
|
+
</call>
|
207
|
+
<choose mode="exclusive" svg-label="">
|
208
|
+
<alternative condition="data.kredit_wanted=='true'" svg-label="">
|
209
|
+
<call id="a18" endpoint="credit_activate" svg-label="activate meter">
|
210
|
+
<parameters>
|
211
|
+
<label>"activate meter"</label>
|
212
|
+
<method>:post</method>
|
213
|
+
<arguments>
|
214
|
+
<knr>knr=data.knr</knr>
|
215
|
+
</arguments>
|
216
|
+
</parameters>
|
217
|
+
<code>
|
218
|
+
<finalize>data.kredit=result[0].value.to_i</finalize>
|
219
|
+
</code>
|
220
|
+
</call>
|
221
|
+
<loop mode="pre_test" condition="data.kredit>0" svg-label="">
|
222
|
+
<call id="a19" endpoint="credit_consume" svg-label="Consume credit">
|
223
|
+
<parameters>
|
224
|
+
<label>"Consume credit"</label>
|
225
|
+
<method>:post</method>
|
226
|
+
<arguments>
|
227
|
+
<knr>knr=data.knr</knr>
|
228
|
+
</arguments>
|
229
|
+
</parameters>
|
230
|
+
<code>
|
231
|
+
<finalize>data.kredit=data.kredit-result[0].value.to_i</finalize>
|
232
|
+
</code>
|
233
|
+
</call>
|
234
|
+
</loop>
|
235
|
+
</alternative>
|
236
|
+
<otherwise svg-label=""/>
|
237
|
+
</choose>
|
238
|
+
</alternative>
|
239
|
+
<otherwise svg-label=""/>
|
240
|
+
</choose>
|
241
|
+
</parallel_branch>
|
242
|
+
<parallel_branch svg-label="">
|
243
|
+
<call id="a9" endpoint="preminder2" svg-label="Kunde zahlt">
|
244
|
+
<parameters>
|
245
|
+
<label>"paying2 "</label>
|
246
|
+
<method>:post</method>
|
247
|
+
<arguments/>
|
248
|
+
</parameters>
|
249
|
+
</call>
|
250
|
+
</parallel_branch>
|
251
|
+
</parallel>
|
252
|
+
</parallel_branch>
|
253
|
+
<parallel_branch svg-label="">
|
254
|
+
<call id="a15" endpoint="preminder1" svg-label="Kunde zahlt">
|
255
|
+
<parameters>
|
256
|
+
<label>"paying1"</label>
|
257
|
+
<method>:post</method>
|
258
|
+
<arguments/>
|
259
|
+
</parameters>
|
260
|
+
</call>
|
261
|
+
</parallel_branch>
|
262
|
+
</parallel>
|
263
|
+
</description>
|
264
|
+
</description>
|
265
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
266
|
+
<description type="copy"/>
|
267
|
+
<dataelements type="none"/>
|
268
|
+
<endpoints type="none"/>
|
269
|
+
</transformation>
|
270
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
271
|
+
<theme xmlns="http://riddl.org/ns/common-patterns/properties/1.0">preset</theme>
|
272
|
+
<info xmlns="http://riddl.org/ns/common-patterns/properties/1.0">ss</info>
|
273
|
+
<modeltype xmlns="http://riddl.org/ns/common-patterns/properties/1.0">CPEE</modeltype>
|
274
|
+
</attributes>
|
275
|
+
</testset>
|
@@ -0,0 +1,83 @@
|
|
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
|
+
<handlers>
|
14
|
+
<handler url="http://localhost:9299/events">
|
15
|
+
<events topic="activity">calling,failed,manipulating,done</events>
|
16
|
+
<events topic="dataelements">change</events>
|
17
|
+
<events topic="endpoints">change</events>
|
18
|
+
<events topic="description">error</events>
|
19
|
+
<events topic="state">change</events>
|
20
|
+
<events topic="status">change</events>
|
21
|
+
</handler>
|
22
|
+
</handlers>
|
23
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
24
|
+
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
25
|
+
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
26
|
+
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
27
|
+
</endpoints>
|
28
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
29
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
30
|
+
<call id="a1" endpoint="bookAir">
|
31
|
+
<parameters>
|
32
|
+
<method>:post</method>
|
33
|
+
<arguments>
|
34
|
+
<from>data.from</from>
|
35
|
+
<to>data.to</to>
|
36
|
+
<persons>data.persons</persons>
|
37
|
+
</arguments>
|
38
|
+
</parameters>
|
39
|
+
<code>
|
40
|
+
<finalize output="result">data.airline = result.value('id')
|
41
|
+
data.costs += result.value('costs').to_f
|
42
|
+
status.update 1, 'Hotel'</finalize>
|
43
|
+
</code>
|
44
|
+
</call>
|
45
|
+
<parallel>
|
46
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
47
|
+
<parallel_branch pass="data.persons" local="p">
|
48
|
+
<call id="a2" endpoint="bookHotel">
|
49
|
+
<parameters>
|
50
|
+
<method>:post</method>
|
51
|
+
<arguments>
|
52
|
+
<to>data.to</to>
|
53
|
+
</arguments>
|
54
|
+
</parameters>
|
55
|
+
<code>
|
56
|
+
<finalize output="result">data.hotels << result.value('id')
|
57
|
+
data.costs += result.value('costs').to_f</finalize>
|
58
|
+
</code>
|
59
|
+
</call>
|
60
|
+
</parallel_branch>
|
61
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
62
|
+
</loop>
|
63
|
+
</parallel>
|
64
|
+
<choose>
|
65
|
+
<alternative condition="data.costs > 700">
|
66
|
+
<call id="a4" endpoint="approve">
|
67
|
+
<parameters>
|
68
|
+
<method>:post</method>
|
69
|
+
<arguments>
|
70
|
+
<costs>data.costs</costs>
|
71
|
+
</arguments>
|
72
|
+
</parameters>
|
73
|
+
</call>
|
74
|
+
</alternative>
|
75
|
+
</choose>
|
76
|
+
</description>
|
77
|
+
</description>
|
78
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
79
|
+
<description type="copy"/>
|
80
|
+
<dataelements type="rest"/>
|
81
|
+
<endpoints type="rest"/>
|
82
|
+
</transformation>
|
83
|
+
</testset>
|