cpee 2.0.18 → 2.0.23
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 +9 -8
- data/cockpit/js_libs.zip +0 -0
- data/cockpit/templates/.CPEE.xml +8 -0
- data/cockpit/templates/.Signavio.xml +8 -0
- data/cockpit/templates/.templates.xml +13 -0
- data/cockpit/templates/.transformations.xml +4 -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/resources/notifications/logging/subscription.xml +6 -0
- 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 +26 -14
- 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 +225 -3
- data/cockpit/edit.html +0 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require 'xml/smart'
|
3
|
+
|
4
|
+
Dir['*.xml'].each do |f|
|
5
|
+
XML::Smart.modify(f) do |doc|
|
6
|
+
doc.register_namespace 'd', 'http://cpee.org/ns/description/1.0'
|
7
|
+
doc.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0'
|
8
|
+
if doc.root.qname.name == 'testset'
|
9
|
+
doc.find('//attributes | //endpoints | //dataelements | //positions | //transformation | //handlerwrapper | //description').each do |e|
|
10
|
+
e.namespaces[nil] = 'http://cpee.org/ns/properties/2.0'
|
11
|
+
e.namespace = nil
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require 'xml/smart'
|
3
|
+
|
4
|
+
Dir['*.xml'].each do |f|
|
5
|
+
XML::Smart.modify(f) do |doc|
|
6
|
+
p f
|
7
|
+
doc.register_namespace 'd', 'http://cpee.org/ns/description/1.0'
|
8
|
+
doc.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0'
|
9
|
+
if doc.root.qname.name == 'testset'
|
10
|
+
doc.find('//d:call').each do |e|
|
11
|
+
x = e.find('d:finalize')
|
12
|
+
if x.length > 0
|
13
|
+
code = x.first.add_before 'code'
|
14
|
+
code.add x
|
15
|
+
code.add e.find('d:update')
|
16
|
+
end
|
17
|
+
x = e.find('d:_timing')
|
18
|
+
if x.length > 0
|
19
|
+
code = x.first.add_before 'annotations'
|
20
|
+
code.add x
|
21
|
+
code.add e.find('d:_notes')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
begin
|
25
|
+
if doc.find('//attributes/p:theme').any?
|
26
|
+
doc.find('//attributes/p:theme').first.text = 'preset'
|
27
|
+
end
|
28
|
+
rescue
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<testsets>
|
2
|
+
<!--testset>Centurio</testset-->
|
3
|
+
<testset>Subprocess</testset>
|
4
|
+
<testset>Async</testset>
|
5
|
+
<testset>Log</testset>
|
6
|
+
<testset>BCS</testset>
|
7
|
+
<testset>BCO</testset>
|
8
|
+
<testset>Infinity</testset>
|
9
|
+
<!--testset>SOPROMO Test Sonification</testset-->
|
10
|
+
<testset>Linear</testset>
|
11
|
+
<testset>Coopis Testset</testset>
|
12
|
+
<testset>ICSOC Testset</testset>
|
13
|
+
<testset>Mangler 1</testset>
|
14
|
+
<testset>Mangler 2</testset>
|
15
|
+
<testset>Concurrent</testset>
|
16
|
+
<!--testset>Endpoints and Data Manipulation</testset-->
|
17
|
+
<!--testset>TEST - Wrong Positions</testset-->
|
18
|
+
<!--testset>TEST - Bad Loop</testset-->
|
19
|
+
<testset>Syncing P34</testset>
|
20
|
+
<testset>Syncing P34 1</testset>
|
21
|
+
<testset>Syncing P34 2</testset>
|
22
|
+
<testset>Syncing P34 3</testset>
|
23
|
+
<testset>Worklist Test</testset>
|
24
|
+
<testset>Worklist Test CPEE</testset>
|
25
|
+
<testset>Worklist Parallel</testset>
|
26
|
+
<testset>Update</testset>
|
27
|
+
<testset>Promise</testset>
|
28
|
+
<testset>Lego Boxer</testset>
|
29
|
+
<testset>Lego Conveyor</testset>
|
30
|
+
<testset>Lego Transporter</testset>
|
31
|
+
<testset>Lego Ejector</testset>
|
32
|
+
<testset>Lego Crane</testset>
|
33
|
+
<testset>Lego Plate</testset>
|
34
|
+
<testset>Lego Liddy</testset>
|
35
|
+
<testset>Lego Full</testset>
|
36
|
+
<!--testset>Manuel Labels</testset-->
|
37
|
+
</testsets>
|
@@ -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,77 @@
|
|
1
|
+
<testset>
|
2
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
3
|
+
<info>Syncing Instance 1</info>
|
4
|
+
<modeltype>CPEE</modeltype>
|
5
|
+
<theme>preset</theme>
|
6
|
+
</attributes>
|
7
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
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
|
+
<!--{{{-->
|
15
|
+
<handler url="http://localhost:9399/1/events">
|
16
|
+
<votes topic="activity">syncing_before,syncing_after</votes>
|
17
|
+
</handler>
|
18
|
+
</handlers>
|
19
|
+
<!--}}}-->
|
20
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
21
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
22
|
+
<timeouts>http://gruppe.wst.univie.ac.at/~mangler/services/timeout-sync.php</timeouts>
|
23
|
+
</endpoints>
|
24
|
+
<!--}}}-->
|
25
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
26
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
27
|
+
<!--{{{-->
|
28
|
+
<call id="a1" endpoint="timeout">
|
29
|
+
<parameters>
|
30
|
+
<!--{{{-->
|
31
|
+
<label>Task 1</label>
|
32
|
+
<method>:post</method>
|
33
|
+
<arguments>
|
34
|
+
<timeout>2</timeout>
|
35
|
+
</arguments>
|
36
|
+
</parameters>
|
37
|
+
<!--}}}-->
|
38
|
+
<code>
|
39
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
40
|
+
</code>
|
41
|
+
</call>
|
42
|
+
<call id="a2" endpoint="timeouts">
|
43
|
+
<parameters>
|
44
|
+
<!--{{{-->
|
45
|
+
<label>Resource Synchronisation</label>
|
46
|
+
<method>:post</method>
|
47
|
+
<arguments>
|
48
|
+
<timeout>4</timeout>
|
49
|
+
</arguments>
|
50
|
+
</parameters>
|
51
|
+
<!--}}}-->
|
52
|
+
<code>
|
53
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
54
|
+
</code>
|
55
|
+
</call>
|
56
|
+
<call id="a3" endpoint="timeout">
|
57
|
+
<parameters>
|
58
|
+
<!--{{{-->
|
59
|
+
<label>Task 3</label>
|
60
|
+
<method>:post</method>
|
61
|
+
<arguments>
|
62
|
+
<timeout>4</timeout>
|
63
|
+
</arguments>
|
64
|
+
</parameters>
|
65
|
+
<!--}}}-->
|
66
|
+
<code>
|
67
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
68
|
+
</code>
|
69
|
+
</call>
|
70
|
+
</description>
|
71
|
+
</description>
|
72
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
73
|
+
<description type="copy"/>
|
74
|
+
<dataelements type="rest"/>
|
75
|
+
<endpoints type="rest"/>
|
76
|
+
</transformation>
|
77
|
+
</testset>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<testset>
|
2
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
3
|
+
<info>Syncing Instance 2</info>
|
4
|
+
<modeltype>CPEE</modeltype>
|
5
|
+
<theme>preset</theme>
|
6
|
+
</attributes>
|
7
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
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
|
+
<!--{{{-->
|
15
|
+
<handler url="http://localhost:9399/1/events">
|
16
|
+
<votes topic="activity">syncing_before,syncing_after</votes>
|
17
|
+
</handler>
|
18
|
+
</handlers>
|
19
|
+
<!--}}}-->
|
20
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
21
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
22
|
+
<timeouts>http://gruppe.wst.univie.ac.at/~mangler/services/timeout-sync.php</timeouts>
|
23
|
+
</endpoints>
|
24
|
+
<!--}}}-->
|
25
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
26
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
27
|
+
<!--{{{-->
|
28
|
+
<call id="a1" endpoint="timeout">
|
29
|
+
<parameters>
|
30
|
+
<!--{{{-->
|
31
|
+
<label>Task 1</label>
|
32
|
+
<method>:post</method>
|
33
|
+
<arguments>
|
34
|
+
<timeout>2</timeout>
|
35
|
+
</arguments>
|
36
|
+
</parameters>
|
37
|
+
<!--}}}-->
|
38
|
+
<code>
|
39
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
40
|
+
</code>
|
41
|
+
</call>
|
42
|
+
<call id="a2" endpoint="timeouts">
|
43
|
+
<parameters>
|
44
|
+
<!--{{{-->
|
45
|
+
<label>Resource Synchronisation</label>
|
46
|
+
<method>:post</method>
|
47
|
+
<arguments>
|
48
|
+
<timeout>10</timeout>
|
49
|
+
</arguments>
|
50
|
+
</parameters>
|
51
|
+
<!--}}}-->
|
52
|
+
<code>
|
53
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
54
|
+
</code>
|
55
|
+
</call>
|
56
|
+
<call id="a3" endpoint="timeout">
|
57
|
+
<parameters>
|
58
|
+
<!--{{{-->
|
59
|
+
<label>Task 3</label>
|
60
|
+
<method>:post</method>
|
61
|
+
<arguments>
|
62
|
+
<timeout>4</timeout>
|
63
|
+
</arguments>
|
64
|
+
</parameters>
|
65
|
+
<!--}}}-->
|
66
|
+
<code>
|
67
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
68
|
+
</code>
|
69
|
+
</call>
|
70
|
+
</description>
|
71
|
+
</description>
|
72
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
73
|
+
<description type="copy"/>
|
74
|
+
<dataelements type="rest"/>
|
75
|
+
<endpoints type="rest"/>
|
76
|
+
</transformation>
|
77
|
+
</testset>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<testset>
|
2
|
+
<attributes xmlns="http://cpee.org/ns/properties/2.0">
|
3
|
+
<info>Syncing Instance 3</info>
|
4
|
+
<modeltype>CPEE</modeltype>
|
5
|
+
<theme>preset</theme>
|
6
|
+
</attributes>
|
7
|
+
<positions xmlns="http://cpee.org/ns/properties/2.0"/>
|
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
|
+
<!--{{{-->
|
15
|
+
<handler url="http://localhost:9399/1/events">
|
16
|
+
<votes topic="activity">syncing_before,syncing_after</votes>
|
17
|
+
</handler>
|
18
|
+
</handlers>
|
19
|
+
<!--}}}-->
|
20
|
+
<endpoints xmlns="http://cpee.org/ns/properties/2.0">
|
21
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
22
|
+
<timeouts>http://gruppe.wst.univie.ac.at/~mangler/services/timeout-sync.php</timeouts>
|
23
|
+
</endpoints>
|
24
|
+
<!--}}}-->
|
25
|
+
<description xmlns="http://cpee.org/ns/properties/2.0">
|
26
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
27
|
+
<!--{{{-->
|
28
|
+
<call id="a1" endpoint="timeout">
|
29
|
+
<parameters>
|
30
|
+
<!--{{{-->
|
31
|
+
<label>Task 1</label>
|
32
|
+
<method>:post</method>
|
33
|
+
<arguments>
|
34
|
+
<timeout>2</timeout>
|
35
|
+
</arguments>
|
36
|
+
</parameters>
|
37
|
+
<!--}}}-->
|
38
|
+
<code>
|
39
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
40
|
+
</code>
|
41
|
+
</call>
|
42
|
+
<call id="a2" endpoint="timeouts">
|
43
|
+
<parameters>
|
44
|
+
<!--{{{-->
|
45
|
+
<label>Resource Synchronisation</label>
|
46
|
+
<method>:post</method>
|
47
|
+
<arguments>
|
48
|
+
<timeout>16</timeout>
|
49
|
+
</arguments>
|
50
|
+
</parameters>
|
51
|
+
<!--}}}-->
|
52
|
+
<code>
|
53
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
54
|
+
</code>
|
55
|
+
</call>
|
56
|
+
<call id="a3" endpoint="timeout">
|
57
|
+
<parameters>
|
58
|
+
<!--{{{-->
|
59
|
+
<label>Task 3</label>
|
60
|
+
<method>:post</method>
|
61
|
+
<arguments>
|
62
|
+
<timeout>4</timeout>
|
63
|
+
</arguments>
|
64
|
+
</parameters>
|
65
|
+
<!--}}}-->
|
66
|
+
<code>
|
67
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
68
|
+
</code>
|
69
|
+
</call>
|
70
|
+
</description>
|
71
|
+
</description>
|
72
|
+
<transformation xmlns="http://cpee.org/ns/properties/2.0">
|
73
|
+
<description type="copy"/>
|
74
|
+
<dataelements type="rest"/>
|
75
|
+
<endpoints type="rest"/>
|
76
|
+
</transformation>
|
77
|
+
</testset>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<testset xmlns="http://cpee.org/ns/properties/2.0">
|
2
|
+
<dataelements>
|
3
|
+
<i>0</i>
|
4
|
+
</dataelements>
|
5
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
6
|
+
<endpoints>
|
7
|
+
<start_url>http://localhost:9296/url/</start_url>
|
8
|
+
</endpoints>
|
9
|
+
<positions/>
|
10
|
+
<description>
|
11
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
12
|
+
<loop mode="pre_test" condition="true">
|
13
|
+
<parallel wait="-1">
|
14
|
+
<loop mode="pre_test" condition="data.i < 4">
|
15
|
+
<_probability>
|
16
|
+
<_probability_min/>
|
17
|
+
<_probability_max/>
|
18
|
+
<_probability_avg/>
|
19
|
+
</_probability>
|
20
|
+
<parallel_branch pass="" local="">
|
21
|
+
<call id="a1" endpoint="start_url">
|
22
|
+
<parameters>
|
23
|
+
<label>Start</label>
|
24
|
+
<method>:post</method>
|
25
|
+
<arguments>
|
26
|
+
<behavior>wait_running</behavior>
|
27
|
+
<url>http://localhost/flow/templates/instantiate.local/Take_Sub.xml</url>
|
28
|
+
<init>
|
29
|
+
<time>4</time>
|
30
|
+
</init>
|
31
|
+
<endpoints/>
|
32
|
+
<stream/>
|
33
|
+
</arguments>
|
34
|
+
<stream>
|
35
|
+
<sensors/>
|
36
|
+
<aggregators/>
|
37
|
+
<costs/>
|
38
|
+
</stream>
|
39
|
+
<report>
|
40
|
+
<url/>
|
41
|
+
</report>
|
42
|
+
</parameters>
|
43
|
+
<annotations>
|
44
|
+
<_timing>
|
45
|
+
<_timing_wait/>
|
46
|
+
<_timing_threshold/>
|
47
|
+
<_timing_min/>
|
48
|
+
<_timing_max/>
|
49
|
+
<_timing_avg/>
|
50
|
+
</_timing>
|
51
|
+
<_notes>
|
52
|
+
<_notes_general/>
|
53
|
+
</_notes>
|
54
|
+
</annotations>
|
55
|
+
</call>
|
56
|
+
</parallel_branch>
|
57
|
+
<manipulate id="a4" label="">data.i += 1</manipulate>
|
58
|
+
</loop>
|
59
|
+
</parallel>
|
60
|
+
<manipulate id="a3" label="">data.i = 0</manipulate>
|
61
|
+
<_probability>
|
62
|
+
<_probability_min/>
|
63
|
+
<_probability_max/>
|
64
|
+
<_probability_avg/>
|
65
|
+
</_probability>
|
66
|
+
<stop id="a2"/>
|
67
|
+
</loop>
|
68
|
+
</description>
|
69
|
+
</description>
|
70
|
+
<transformation>
|
71
|
+
<description type="copy"/>
|
72
|
+
<dataelements type="none"/>
|
73
|
+
<endpoints type="none"/>
|
74
|
+
</transformation>
|
75
|
+
<attributes>
|
76
|
+
<info>Track Test</info>
|
77
|
+
<modeltype>CPEE</modeltype>
|
78
|
+
<theme>default</theme>
|
79
|
+
<customer>pilotfabrik</customer>
|
80
|
+
<status>development</status>
|
81
|
+
</attributes>
|
82
|
+
</testset>
|