cpee 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +7 -16
  4. data/lib/cpee/implementation.rb +1 -1
  5. data/server/handlerwrappers/default.rb +12 -1
  6. data/server/instances/1/properties.xml +122 -34
  7. data/server/instances/10/properties.xml +127 -141
  8. data/server/instances/11/properties.xml +179 -162
  9. data/server/instances/12/properties.xml +87 -163
  10. data/server/instances/13/properties.xml +2002 -131
  11. data/server/instances/14/properties.xml +2044 -9
  12. data/server/instances/15/properties.xml +2039 -8
  13. data/server/instances/16/properties.xml +2069 -8
  14. data/server/instances/17/properties.xml +2065 -11
  15. data/server/instances/18/properties.xml +2109 -10
  16. data/server/instances/19/properties.xml +90 -5
  17. data/server/instances/2/properties.xml +135 -10
  18. data/server/instances/20/properties.xml +9 -169
  19. data/server/instances/21/properties.xml +82 -122
  20. data/server/instances/22/properties.xml +2042 -53
  21. data/server/instances/23/properties.xml +68 -75
  22. data/server/instances/24/properties.xml +2033 -82
  23. data/server/instances/25/properties.xml +37 -121
  24. data/server/instances/26/properties.xml +9 -9
  25. data/server/instances/27/properties.xml +2044 -48
  26. data/server/instances/28/properties.xml +2058 -83
  27. data/server/instances/29/properties.xml +2072 -83
  28. data/server/instances/3/properties.xml +211 -76
  29. data/server/instances/30/properties.xml +112 -293
  30. data/server/instances/31/properties.xml +9 -332
  31. data/server/instances/32/properties.xml +65 -582
  32. data/server/instances/33/properties.xml +99 -113
  33. data/server/instances/34/properties.xml +183 -0
  34. data/server/instances/35/properties.xml +183 -0
  35. data/server/instances/36/properties.xml +185 -0
  36. data/server/instances/37/properties.xml +183 -0
  37. data/server/instances/38/properties.xml +183 -0
  38. data/server/instances/39/properties.xml +183 -0
  39. data/server/instances/4/properties.xml +9 -92
  40. data/server/instances/40/properties.xml +183 -0
  41. data/server/instances/41/properties.xml +183 -0
  42. data/server/instances/42/properties.xml +183 -0
  43. data/server/instances/43/properties.xml +183 -0
  44. data/server/instances/44/properties.xml +183 -0
  45. data/server/instances/45/properties.xml +185 -0
  46. data/server/instances/{670 → 46}/properties.xml +1 -1
  47. data/server/instances/47/properties.xml +185 -0
  48. data/server/instances/48/properties.xml +185 -0
  49. data/server/instances/49/properties.xml +185 -0
  50. data/server/instances/5/properties.xml +1505 -49
  51. data/server/instances/50/properties.xml +183 -0
  52. data/server/instances/51/properties.xml +183 -0
  53. data/server/instances/52/properties.xml +2129 -0
  54. data/server/instances/53/properties.xml +2129 -0
  55. data/server/instances/54/properties.xml +319 -0
  56. data/server/instances/55/properties.xml +2114 -0
  57. data/server/instances/56/properties.xml +2114 -0
  58. data/server/instances/57/properties.xml +2119 -0
  59. data/server/instances/58/properties.xml +2119 -0
  60. data/server/instances/59/properties.xml +2119 -0
  61. data/server/instances/6/properties.xml +11 -186
  62. data/server/instances/60/properties.xml +2119 -0
  63. data/server/instances/61/properties.xml +2114 -0
  64. data/server/instances/62/properties.xml +2116 -0
  65. data/server/instances/63/properties.xml +2116 -0
  66. data/server/instances/64/properties.xml +2116 -0
  67. data/server/instances/65/properties.xml +76 -0
  68. data/server/instances/66/properties.xml +97 -0
  69. data/server/instances/7/properties.xml +1691 -82
  70. data/server/instances/8/properties.xml +1738 -53
  71. data/server/instances/9/properties.xml +680 -95
  72. data/server/resources/base.xml +78 -0
  73. data/server/resources/test.rb +19 -0
  74. data/server/resources/test.xml +33 -0
  75. data/server/server.pid +1 -0
  76. data/server/test.rb +3 -0
  77. metadata +41 -41
  78. data/log/logs/1/test +0 -1
  79. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +0 -1
  80. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +0 -1
  81. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +0 -23
  82. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +0 -1
  83. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +0 -1
  84. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +0 -6
  85. data/server/instances/313/notifications/crisp/consumer-secret +0 -1
  86. data/server/instances/313/notifications/crisp/producer-secret +0 -1
  87. data/server/instances/313/notifications/crisp/subscription.xml +0 -7
  88. data/server/instances/313/notifications/logging/consumer-secret +0 -1
  89. data/server/instances/313/notifications/logging/producer-secret +0 -1
  90. data/server/instances/313/notifications/logging/subscription.xml +0 -7
  91. data/server/instances/313/notifications/logging_yaml/consumer-secret +0 -1
  92. data/server/instances/313/notifications/logging_yaml/producer-secret +0 -1
  93. data/server/instances/313/notifications/logging_yaml/subscription.xml +0 -7
  94. data/server/instances/313/properties.xml +0 -524
  95. data/server/instances/662/notifications/crisp/consumer-secret +0 -1
  96. data/server/instances/662/notifications/crisp/producer-secret +0 -1
  97. data/server/instances/662/notifications/crisp/subscription.xml +0 -7
  98. data/server/instances/662/notifications/logging/consumer-secret +0 -1
  99. data/server/instances/662/notifications/logging/producer-secret +0 -1
  100. data/server/instances/662/notifications/logging/subscription.xml +0 -7
  101. data/server/instances/662/notifications/logging_yaml/consumer-secret +0 -1
  102. data/server/instances/662/notifications/logging_yaml/producer-secret +0 -1
  103. data/server/instances/662/notifications/logging_yaml/subscription.xml +0 -7
  104. data/server/instances/662/properties.xml +0 -427
  105. data/server/instances/663/properties.xml +0 -31
  106. data/server/instances/664/properties.xml +0 -425
  107. data/server/instances/665/properties.xml +0 -425
  108. data/server/instances/666/properties.xml +0 -427
  109. data/server/instances/667/properties.xml +0 -427
  110. data/server/instances/668/properties.xml +0 -425
  111. data/server/instances/669/properties.xml +0 -425
  112. data/server/instances/671/properties.xml +0 -158
  113. data/server/instances/672/properties.xml +0 -199
  114. data/server/instances/673/properties.xml +0 -52
@@ -0,0 +1,78 @@
1
+ <description xmlns="http://cpee.org/ns/description/1.0">
2
+ <call id="a1" endpoint="workqueue_mm">
3
+ <parameters>
4
+ <label>Setup Machine </label>
5
+ <method>:post</method>
6
+ <arguments>
7
+ <nc-program>Kuli</nc-program>
8
+ <material-name>XF-3</material-name>
9
+ <material-pic>https://centurio.work/customers/prime/maxxmill/mat.jpg</material-pic>
10
+ <result-pic>https://centurio.work/customers/prime/maxxmill/res.jpg</result-pic>
11
+ <comment>As fast as possible</comment>
12
+ <tools>
13
+ <tool>
14
+ <place>1</place>
15
+ <tool-name>Schrupper (500)</tool-name>
16
+ <tool-holder>X3</tool-holder>
17
+ <tool-orientation>gegenspindel axial</tool-orientation>
18
+ <corrections>
19
+ <correction length-x="45.5" length-z="3" radius="1"/>
20
+ </corrections>
21
+ <attachments>
22
+ <attachment label="Tool">https://centurio.work/customers/prime/maxxmill/tool.jpg</attachment>
23
+ </attachments>
24
+ </tool>
25
+ <tool>
26
+ <place>2</place>
27
+ <tool-name>Schaftfräser d6</tool-name>
28
+ <tool-holder>SK45</tool-holder>
29
+ <tool-orientation>-</tool-orientation>
30
+ <corrections>
31
+ <correction length-x="45.5" length-z="3" radius="1"/>
32
+ </corrections>
33
+ <attachments>
34
+ <attachment label="Tool">https://centurio.work/customers/prime/maxxmill/schaftfraeser.jpg</attachment>
35
+ </attachments>
36
+ </tool>
37
+ </tools>
38
+ </arguments>
39
+ </parameters>
40
+ <finalize output="result">data.setup = result['status']</finalize>
41
+ <update output="result">data.task = result['task']</update>
42
+ <_timing>
43
+ <_timing_min/>
44
+ <_timing_max/>
45
+ <_timing_avg/>
46
+ </_timing>
47
+ <_notes>
48
+ <_notes_general/>
49
+ <_notes_output/>
50
+ <_attachments/>
51
+ </_notes>
52
+ </call>
53
+ <choose mode="exclusive">
54
+ <alternative condition="data.setup == 'ok'">
55
+ <call id="a2" endpoint="timeout">
56
+ <parameters>
57
+ <label>Produce Part</label>
58
+ <method>:post</method>
59
+ <arguments>
60
+ <timeout>8</timeout>
61
+ </arguments>
62
+ </parameters>
63
+ <finalize output="result"/>
64
+ <update output="result"/>
65
+ <_timing>
66
+ <_timing_min/>
67
+ <_timing_max/>
68
+ <_timing_avg/>
69
+ </_timing>
70
+ <_notes>
71
+ <_notes_general/>
72
+ <_notes_output/>
73
+ <_attachments/>
74
+ </_notes>
75
+ </call>
76
+ </alternative>
77
+ </choose>
78
+ </description>
@@ -0,0 +1,19 @@
1
+ def manipulate(bla, label=nil, script=nil, &aaa)
2
+ if aaa.nil? && script.nil? && !label.nil?
3
+ script, label = label, nil
4
+ end
5
+ p label
6
+ p script
7
+ p aaa
8
+ p '---'
9
+ end
10
+
11
+ manipulate :a1, <<-END
12
+ bla1
13
+ END
14
+ manipulate :a2, "", <<-END
15
+ bla2
16
+ END
17
+ manipulate :a2, "" do
18
+ bla2
19
+ end
@@ -0,0 +1,33 @@
1
+ <description xmlns="http://cpee.org/ns/description/1.0">
2
+ <manipulate id="a1" label="test">a
3
+ a
4
+ a</manipulate>
5
+ <choose mode="exclusive">
6
+ <alternative condition="">
7
+ <terminate/>
8
+ </alternative>
9
+ <alternative condition="">
10
+ <stop/>
11
+ </alternative>
12
+ <otherwise/>
13
+ </choose>
14
+ <call id="a2" endpoint="">
15
+ <parameters>
16
+ <label/>
17
+ <method>:post</method>
18
+ <arguments/>
19
+ </parameters>
20
+ <finalize output="result"/>
21
+ <update output="result"/>
22
+ <_timing>
23
+ <_timing_min/>
24
+ <_timing_max/>
25
+ <_timing_avg/>
26
+ </_timing>
27
+ <_notes>
28
+ <_notes_general/>
29
+ <_notes_output/>
30
+ <_attachments/>
31
+ </_notes>
32
+ </call>
33
+ </description>
@@ -0,0 +1 @@
1
+ 16038
@@ -0,0 +1,3 @@
1
+ def manipulate(position, parameters={}, script=nil, &scriptblk)
2
+ puts script
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: tools
13
13
  cert_chain: []
14
- date: 2018-04-25 00:00:00.000000000 Z
14
+ date: 2018-04-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -275,7 +275,6 @@ files:
275
275
  - lib/instantiation.xml
276
276
  - log/chain.xml
277
277
  - log/log.xml
278
- - log/logs/1/test
279
278
  - log/non_tamp.rb
280
279
  - log/template.xes_xml
281
280
  - log/template.xes_yaml
@@ -285,12 +284,6 @@ files:
285
284
  - server/handlerwrappers/default.rb
286
285
  - server/handlerwrappers/soap.rb
287
286
  - server/instances/1/properties.xml
288
- - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret
289
- - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret
290
- - server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml
291
- - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret
292
- - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret
293
- - server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml
294
287
  - server/instances/10/properties.xml
295
288
  - server/instances/11/properties.xml
296
289
  - server/instances/12/properties.xml
@@ -315,54 +308,61 @@ files:
315
308
  - server/instances/3/properties.xml
316
309
  - server/instances/30/properties.xml
317
310
  - server/instances/31/properties.xml
318
- - server/instances/313/notifications/crisp/consumer-secret
319
- - server/instances/313/notifications/crisp/producer-secret
320
- - server/instances/313/notifications/crisp/subscription.xml
321
- - server/instances/313/notifications/logging/consumer-secret
322
- - server/instances/313/notifications/logging/producer-secret
323
- - server/instances/313/notifications/logging/subscription.xml
324
- - server/instances/313/notifications/logging_yaml/consumer-secret
325
- - server/instances/313/notifications/logging_yaml/producer-secret
326
- - server/instances/313/notifications/logging_yaml/subscription.xml
327
- - server/instances/313/properties.xml
328
311
  - server/instances/32/properties.xml
329
312
  - server/instances/33/properties.xml
313
+ - server/instances/34/properties.xml
314
+ - server/instances/35/properties.xml
315
+ - server/instances/36/properties.xml
316
+ - server/instances/37/properties.xml
317
+ - server/instances/38/properties.xml
318
+ - server/instances/39/properties.xml
330
319
  - server/instances/4/properties.xml
320
+ - server/instances/40/properties.xml
321
+ - server/instances/41/properties.xml
322
+ - server/instances/42/properties.xml
323
+ - server/instances/43/properties.xml
324
+ - server/instances/44/properties.xml
325
+ - server/instances/45/properties.xml
326
+ - server/instances/46/properties.xml
327
+ - server/instances/47/properties.xml
328
+ - server/instances/48/properties.xml
329
+ - server/instances/49/properties.xml
331
330
  - server/instances/5/properties.xml
331
+ - server/instances/50/properties.xml
332
+ - server/instances/51/properties.xml
333
+ - server/instances/52/properties.xml
334
+ - server/instances/53/properties.xml
335
+ - server/instances/54/properties.xml
336
+ - server/instances/55/properties.xml
337
+ - server/instances/56/properties.xml
338
+ - server/instances/57/properties.xml
339
+ - server/instances/58/properties.xml
340
+ - server/instances/59/properties.xml
332
341
  - server/instances/6/properties.xml
333
- - server/instances/662/notifications/crisp/consumer-secret
334
- - server/instances/662/notifications/crisp/producer-secret
335
- - server/instances/662/notifications/crisp/subscription.xml
336
- - server/instances/662/notifications/logging/consumer-secret
337
- - server/instances/662/notifications/logging/producer-secret
338
- - server/instances/662/notifications/logging/subscription.xml
339
- - server/instances/662/notifications/logging_yaml/consumer-secret
340
- - server/instances/662/notifications/logging_yaml/producer-secret
341
- - server/instances/662/notifications/logging_yaml/subscription.xml
342
- - server/instances/662/properties.xml
343
- - server/instances/663/properties.xml
344
- - server/instances/664/properties.xml
345
- - server/instances/665/properties.xml
346
- - server/instances/666/properties.xml
347
- - server/instances/667/properties.xml
348
- - server/instances/668/properties.xml
349
- - server/instances/669/properties.xml
350
- - server/instances/670/properties.xml
351
- - server/instances/671/properties.xml
352
- - server/instances/672/properties.xml
353
- - server/instances/673/properties.xml
342
+ - server/instances/60/properties.xml
343
+ - server/instances/61/properties.xml
344
+ - server/instances/62/properties.xml
345
+ - server/instances/63/properties.xml
346
+ - server/instances/64/properties.xml
347
+ - server/instances/65/properties.xml
348
+ - server/instances/66/properties.xml
354
349
  - server/instances/7/properties.xml
355
350
  - server/instances/8/properties.xml
356
351
  - server/instances/9/properties.xml
352
+ - server/resources/base.xml
357
353
  - server/resources/empty_dslx.xml
358
354
  - server/resources/properties.init
359
355
  - server/resources/properties.schema.active
360
356
  - server/resources/properties.schema.finished
361
357
  - server/resources/properties.schema.inactive
358
+ - server/resources/test.rb
359
+ - server/resources/test.xml
362
360
  - server/resources/topics.xml
363
361
  - server/resources/transformation.xml
364
362
  - server/resources/transformation_dslx.xsl
363
+ - server/server.pid
365
364
  - server/server.rb
365
+ - server/test.rb
366
366
  - test/callback.rb
367
367
  - tools/cpee
368
368
  - tools/instantiation/instantiation
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  version: '0'
392
392
  requirements: []
393
393
  rubyforge_project:
394
- rubygems_version: 2.6.6
394
+ rubygems_version: 2.7.6
395
395
  signing_key:
396
396
  specification_version: 4
397
397
  summary: Preliminary release of cloud process execution engine (cpee). If you just
@@ -1 +0,0 @@
1
- test
@@ -1,23 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/events">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>failed</event>
5
- <event>manipulating</event>
6
- <event>done</event>
7
- </topic>
8
- <topic id="dataelements">
9
- <event>change</event>
10
- </topic>
11
- <topic id="endpoints">
12
- <event>change</event>
13
- </topic>
14
- <topic id="description">
15
- <event>error</event>
16
- </topic>
17
- <topic id="state">
18
- <event>change</event>
19
- </topic>
20
- <topic id="status">
21
- <event>change</event>
22
- </topic>
23
- </subscription>
@@ -1,6 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://solo.wst.univie.ac.at:9299/log">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>done</event>
5
- </topic>
6
- </subscription>
@@ -1 +0,0 @@
1
- f7c77861ac613eeac8fb9829c9a545a2
@@ -1 +0,0 @@
1
- 2a24d172b1aeb05fe94fdc5e095dec32
@@ -1,7 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://cpee.org:9129">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>receiving</event>
5
- <event>done</event>
6
- </topic>
7
- </subscription>
@@ -1 +0,0 @@
1
- f7c77861ac613eeac8fb9829c9a545a2
@@ -1 +0,0 @@
1
- 2a24d172b1aeb05fe94fdc5e095dec32
@@ -1,7 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://cpee.org:9299/log">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>receiving</event>
5
- <event>done</event>
6
- </topic>
7
- </subscription>
@@ -1 +0,0 @@
1
- f7c77861ac613eeac8fb9829c9a545a2
@@ -1 +0,0 @@
1
- 2a24d172b1aeb05fe94fdc5e095dec32
@@ -1,7 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://cpee.org:9300/log">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>receiving</event>
5
- <event>done</event>
6
- </topic>
7
- </subscription>
@@ -1,524 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>d68fff80-2238-426f-9579-e3e7e0ee46eb</uuid>
4
- <info>a01406222</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a9>after</a9>
12
- </positions>
13
- <dataelements>
14
- <runtime>45</runtime>
15
- <timeleft>51</timeleft>
16
- <traintime>15</traintime>
17
- <startblock>B</startblock>
18
- <startnumber>28</startnumber>
19
- <runsteps>9518</runsteps>
20
- <contact>Desktopapp</contact>
21
- <drink>what</drink>
22
- <gothere>from where</gothere>
23
- </dataelements>
24
- <endpoints>
25
- <startnumber>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startnumber.php</startnumber>
26
- <runtime>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/runtime.php</runtime>
27
- <traintime>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/traintime.php</traintime>
28
- <startblock>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblock.php</startblock>
29
- <timeleft>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/timeleft.php</timeleft>
30
- <result>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/result.php</result>
31
- <run>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/run.php</run>
32
- <contactapp>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/contactapp.php</contactapp>
33
- <drink>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/drink.php</drink>
34
- <gothere>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/gothere.php</gothere>
35
- <saveblock>http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/saveblock.php</saveblock>
36
- </endpoints>
37
- <dsl>call :a1, :startblock, parameters: { :label =&gt; "select starting block", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
38
- data.startblock = result
39
- END
40
- call :a2, :saveblock, parameters: { :label =&gt; "save starting block", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :startblock, :value =&gt; data.startblock)] }
41
- parallel :wait =&gt; -1 do
42
- parallel_branch do ||
43
- call :a3, :run, parameters: { :label =&gt; "run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
44
- data.runsteps = data.runsteps + result;
45
- END
46
- end
47
- parallel_branch do ||
48
- call :a4, :traintime, parameters: { :label =&gt; "measure time", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
49
- data.traintime = result
50
- END
51
- end
52
- end
53
- loop pre_test{data.traintime &gt; 25} do
54
- parallel :wait =&gt; -1 do
55
- parallel_branch do ||
56
- call :a5, :run, parameters: { :label =&gt; "run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
57
- data.runsteps = data.runsteps + result;
58
- END
59
- end
60
- parallel_branch do ||
61
- call :a6, :traintime, parameters: { :label =&gt; "measure time", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
62
- data.traintime = result
63
- END
64
- end
65
- end
66
- end
67
- call :a7, :contactapp, parameters: { :label =&gt; "contact app", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
68
- data.contact = result
69
- END
70
- call :a8, :startnumber, parameters: { :label =&gt; "allocate start number", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
71
- data.startnumber= result
72
- END
73
- call :a16, :timeleft, parameters: { :label =&gt; "timeLeftERSATZ", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
74
- data.timeleft = result
75
- END
76
- choose :exclusive do
77
- alternative test{data.timeleft &gt; 60} do
78
- call :a10, :gothere, parameters: { :label =&gt; "go home", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :home, :value =&gt; yes), ⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
79
- data.gothere = result
80
- END
81
- end
82
- otherwise do
83
- call :a11, :gothere, parameters: { :label =&gt; "go there directly", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"), ⭐(:name =&gt; :home, :value =&gt; no)] }, finalize: &lt;&lt;-END
84
- data.gothere = result
85
- END
86
- end
87
- end
88
- parallel :wait =&gt; -1 do
89
- parallel_branch do ||
90
- call :a12, :run, parameters: { :label =&gt; "run", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
91
- data.runsteps = data.runsteps + result;
92
- END
93
- end
94
- parallel_branch do ||
95
- call :a13, :runtime, parameters: { :label =&gt; "measure time", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
96
- data.runtime = result
97
- END
98
- end
99
- parallel_branch do ||
100
- call :a14, :drink, parameters: { :label =&gt; "drink", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :role, :value =&gt; "Runner"), ⭐(:name =&gt; :organization, :value =&gt; "Privat"), ⭐(:name =&gt; :link, :value =&gt; "http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html")] }, finalize: &lt;&lt;-END
101
- data.drink = result
102
- END
103
- end
104
- end
105
- call :a15, :result, parameters: { :label =&gt; "read results", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :runtime, :value =&gt; data.runtime)] }
106
- </dsl>
107
- <dslx>
108
- <description xmlns="http://cpee.org/ns/description/1.0">
109
- <call id="a1" endpoint="startblock">
110
- <parameters>
111
- <label>select starting block</label>
112
- <method>:get</method>
113
- <arguments>
114
- <role>"Runner"</role>
115
- <organization>"Privat"</organization>
116
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
117
- </arguments>
118
- </parameters>
119
- <finalize output="result">data.startblock = result</finalize>
120
- <update output="result"/>
121
- </call>
122
- <call id="a2" endpoint="saveblock">
123
- <parameters>
124
- <label>save starting block</label>
125
- <method>:post</method>
126
- <arguments>
127
- <startblock>data.startblock</startblock>
128
- </arguments>
129
- </parameters>
130
- <finalize output="result"/>
131
- <update output="result"/>
132
- </call>
133
- <parallel wait="-1">
134
- <parallel_branch pass="" local="">
135
- <call id="a3" endpoint="run">
136
- <parameters>
137
- <label>run</label>
138
- <method>:get</method>
139
- <arguments>
140
- <role>"Runner"</role>
141
- <organization>"Privat"</organization>
142
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
143
- </arguments>
144
- </parameters>
145
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
146
- <update output="result"/>
147
- </call>
148
- </parallel_branch>
149
- <parallel_branch pass="" local="">
150
- <call id="a4" endpoint="traintime">
151
- <parameters>
152
- <label>measure time</label>
153
- <method>:get</method>
154
- <arguments/>
155
- </parameters>
156
- <finalize output="result">data.traintime = result</finalize>
157
- <update output="result"/>
158
- </call>
159
- </parallel_branch>
160
- </parallel>
161
- <loop mode="pre_test" condition="data.traintime &gt; 25">
162
- <parallel wait="-1">
163
- <parallel_branch pass="" local="">
164
- <call id="a5" endpoint="run">
165
- <parameters>
166
- <label>run</label>
167
- <method>:get</method>
168
- <arguments>
169
- <role>"Runner"</role>
170
- <organization>"Privat"</organization>
171
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
172
- </arguments>
173
- </parameters>
174
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
175
- <update output="result"/>
176
- </call>
177
- </parallel_branch>
178
- <parallel_branch pass="" local="">
179
- <call id="a6" endpoint="traintime">
180
- <parameters>
181
- <label>measure time</label>
182
- <method>:get</method>
183
- <arguments/>
184
- </parameters>
185
- <finalize output="result">data.traintime = result</finalize>
186
- <update output="result"/>
187
- </call>
188
- </parallel_branch>
189
- </parallel>
190
- </loop>
191
- <call id="a7" endpoint="contactapp">
192
- <parameters>
193
- <label>contact app</label>
194
- <method>:get</method>
195
- <arguments>
196
- <role>"Runner"</role>
197
- <organization>"Privat"</organization>
198
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
199
- </arguments>
200
- </parameters>
201
- <finalize output="result">data.contact = result</finalize>
202
- <update output="result"/>
203
- </call>
204
- <call id="a8" endpoint="startnumber">
205
- <parameters>
206
- <label>allocate start number</label>
207
- <method>:get</method>
208
- <arguments/>
209
- </parameters>
210
- <finalize output="result">data.startnumber= result</finalize>
211
- <update output="result"/>
212
- </call>
213
- <call id="a16" endpoint="timeleft">
214
- <parameters>
215
- <label>timeLeftERSATZ</label>
216
- <method>:post</method>
217
- <arguments/>
218
- </parameters>
219
- <finalize output="result">data.timeleft = result</finalize>
220
- <update output="result"/>
221
- </call>
222
- <choose mode="exclusive">
223
- <alternative condition="data.timeleft &gt; 60">
224
- <call id="a10" endpoint="gothere">
225
- <parameters>
226
- <label>go home</label>
227
- <method>:post</method>
228
- <arguments>
229
- <home>yes</home>
230
- <role>"Runner"</role>
231
- <organization>"Privat"</organization>
232
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
233
- </arguments>
234
- </parameters>
235
- <finalize output="result">data.gothere = result</finalize>
236
- <update output="result"/>
237
- </call>
238
- </alternative>
239
- <otherwise>
240
- <call id="a11" endpoint="gothere">
241
- <parameters>
242
- <label>go there directly</label>
243
- <method>:post</method>
244
- <arguments>
245
- <role>"Runner"</role>
246
- <organization>"Privat"</organization>
247
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
248
- <home>no</home>
249
- </arguments>
250
- </parameters>
251
- <finalize output="result">data.gothere = result</finalize>
252
- <update output="result"/>
253
- </call>
254
- </otherwise>
255
- </choose>
256
- <parallel wait="-1">
257
- <parallel_branch pass="" local="">
258
- <call id="a12" endpoint="run">
259
- <parameters>
260
- <label>run</label>
261
- <method>:post</method>
262
- <arguments>
263
- <role>"Runner"</role>
264
- <organization>"Privat"</organization>
265
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
266
- </arguments>
267
- </parameters>
268
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
269
- <update output="result"/>
270
- </call>
271
- </parallel_branch>
272
- <parallel_branch pass="" local="">
273
- <call id="a13" endpoint="runtime">
274
- <parameters>
275
- <label>measure time</label>
276
- <method>:get</method>
277
- <arguments/>
278
- </parameters>
279
- <finalize output="result">data.runtime = result</finalize>
280
- <update output="result"/>
281
- </call>
282
- </parallel_branch>
283
- <parallel_branch pass="" local="">
284
- <call id="a14" endpoint="drink">
285
- <parameters>
286
- <label>drink</label>
287
- <method>:get</method>
288
- <arguments>
289
- <role>"Runner"</role>
290
- <organization>"Privat"</organization>
291
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
292
- </arguments>
293
- </parameters>
294
- <finalize output="result">data.drink = result</finalize>
295
- <update output="result"/>
296
- </call>
297
- </parallel_branch>
298
- </parallel>
299
- <call id="a15" endpoint="result">
300
- <parameters>
301
- <label>read results</label>
302
- <method>:post</method>
303
- <arguments>
304
- <runtime>data.runtime</runtime>
305
- </arguments>
306
- </parameters>
307
- <finalize output="result"/>
308
- </call>
309
- </description>
310
- </dslx>
311
- <status>
312
- <id>0</id>
313
- <message>undefined</message>
314
- </status>
315
- <description>
316
- <description xmlns="http://cpee.org/ns/description/1.0">
317
- <call id="a1" endpoint="startblock">
318
- <parameters>
319
- <label>select starting block</label>
320
- <method>:get</method>
321
- <arguments>
322
- <role>"Runner"</role>
323
- <organization>"Privat"</organization>
324
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
325
- </arguments>
326
- </parameters>
327
- <finalize output="result">data.startblock = result</finalize>
328
- <update output="result"/>
329
- </call>
330
- <call id="a2" endpoint="saveblock">
331
- <parameters>
332
- <label>save starting block</label>
333
- <method>:post</method>
334
- <arguments>
335
- <startblock>data.startblock</startblock>
336
- </arguments>
337
- </parameters>
338
- <finalize output="result"/>
339
- <update output="result"/>
340
- </call>
341
- <parallel wait="-1">
342
- <parallel_branch pass="" local="">
343
- <call id="a3" endpoint="run">
344
- <parameters>
345
- <label>run</label>
346
- <method>:get</method>
347
- <arguments>
348
- <role>"Runner"</role>
349
- <organization>"Privat"</organization>
350
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
351
- </arguments>
352
- </parameters>
353
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
354
- <update output="result"/>
355
- </call>
356
- </parallel_branch>
357
- <parallel_branch pass="" local="">
358
- <call id="a4" endpoint="traintime">
359
- <parameters>
360
- <label>measure time</label>
361
- <method>:get</method>
362
- <arguments/>
363
- </parameters>
364
- <finalize output="result">data.traintime = result</finalize>
365
- <update output="result"/>
366
- </call>
367
- </parallel_branch>
368
- </parallel>
369
- <loop mode="pre_test" condition="data.traintime &gt; 25">
370
- <parallel wait="-1">
371
- <parallel_branch pass="" local="">
372
- <call id="a5" endpoint="run">
373
- <parameters>
374
- <label>run</label>
375
- <method>:get</method>
376
- <arguments>
377
- <role>"Runner"</role>
378
- <organization>"Privat"</organization>
379
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
380
- </arguments>
381
- </parameters>
382
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
383
- <update output="result"/>
384
- </call>
385
- </parallel_branch>
386
- <parallel_branch pass="" local="">
387
- <call id="a6" endpoint="traintime">
388
- <parameters>
389
- <label>measure time</label>
390
- <method>:get</method>
391
- <arguments/>
392
- </parameters>
393
- <finalize output="result">data.traintime = result</finalize>
394
- <update output="result"/>
395
- </call>
396
- </parallel_branch>
397
- </parallel>
398
- </loop>
399
- <call id="a7" endpoint="contactapp">
400
- <parameters>
401
- <label>contact app</label>
402
- <method>:get</method>
403
- <arguments>
404
- <role>"Runner"</role>
405
- <organization>"Privat"</organization>
406
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
407
- </arguments>
408
- </parameters>
409
- <finalize output="result">data.contact = result</finalize>
410
- <update output="result"/>
411
- </call>
412
- <call id="a8" endpoint="startnumber">
413
- <parameters>
414
- <label>allocate start number</label>
415
- <method>:get</method>
416
- <arguments/>
417
- </parameters>
418
- <finalize output="result">data.startnumber= result</finalize>
419
- <update output="result"/>
420
- </call>
421
- <call id="a16" endpoint="timeleft">
422
- <parameters>
423
- <label>timeLeftERSATZ</label>
424
- <method>:post</method>
425
- <arguments/>
426
- </parameters>
427
- <finalize output="result">data.timeleft = result</finalize>
428
- <update output="result"/>
429
- </call>
430
- <choose mode="exclusive">
431
- <alternative condition="data.timeleft &gt; 60">
432
- <call id="a10" endpoint="gothere">
433
- <parameters>
434
- <label>go home</label>
435
- <method>:post</method>
436
- <arguments>
437
- <home>yes</home>
438
- <role>"Runner"</role>
439
- <organization>"Privat"</organization>
440
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
441
- </arguments>
442
- </parameters>
443
- <finalize output="result">data.gothere = result</finalize>
444
- <update output="result"/>
445
- </call>
446
- </alternative>
447
- <otherwise>
448
- <call id="a11" endpoint="gothere">
449
- <parameters>
450
- <label>go there directly</label>
451
- <method>:post</method>
452
- <arguments>
453
- <role>"Runner"</role>
454
- <organization>"Privat"</organization>
455
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
456
- <home>no</home>
457
- </arguments>
458
- </parameters>
459
- <finalize output="result">data.gothere = result</finalize>
460
- <update output="result"/>
461
- </call>
462
- </otherwise>
463
- </choose>
464
- <parallel wait="-1">
465
- <parallel_branch pass="" local="">
466
- <call id="a12" endpoint="run">
467
- <parameters>
468
- <label>run</label>
469
- <method>:post</method>
470
- <arguments>
471
- <role>"Runner"</role>
472
- <organization>"Privat"</organization>
473
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
474
- </arguments>
475
- </parameters>
476
- <finalize output="result">data.runsteps = data.runsteps + result;</finalize>
477
- <update output="result"/>
478
- </call>
479
- </parallel_branch>
480
- <parallel_branch pass="" local="">
481
- <call id="a13" endpoint="runtime">
482
- <parameters>
483
- <label>measure time</label>
484
- <method>:get</method>
485
- <arguments/>
486
- </parameters>
487
- <finalize output="result">data.runtime = result</finalize>
488
- <update output="result"/>
489
- </call>
490
- </parallel_branch>
491
- <parallel_branch pass="" local="">
492
- <call id="a14" endpoint="drink">
493
- <parameters>
494
- <label>drink</label>
495
- <method>:get</method>
496
- <arguments>
497
- <role>"Runner"</role>
498
- <organization>"Privat"</organization>
499
- <link>"http://wwwlab.cs.univie.ac.at/~sumeredera95/wt17/startblockChose.html"</link>
500
- </arguments>
501
- </parameters>
502
- <finalize output="result">data.drink = result</finalize>
503
- <update output="result"/>
504
- </call>
505
- </parallel_branch>
506
- </parallel>
507
- <call id="a15" endpoint="result">
508
- <parameters>
509
- <label>read results</label>
510
- <method>:post</method>
511
- <arguments>
512
- <runtime>data.runtime</runtime>
513
- </arguments>
514
- </parameters>
515
- <finalize output="result"/>
516
- </call>
517
- </description>
518
- </description>
519
- <transformation>
520
- <description type="copy"/>
521
- <dataelements type="none"/>
522
- <endpoints type="none"/>
523
- </transformation>
524
- </properties>