cpee 1.4.7 → 1.4.8

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 (127) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +41 -7
  4. data/lib/cpee/handler_properties.rb +9 -9
  5. data/lib/cpee/instantiation.rb +12 -6
  6. data/lib/instantiation.xml +1 -0
  7. data/log/elasticsearch.rb +120 -0
  8. data/log/logs/1/test +1 -0
  9. data/log/xes_yaml.rb +3 -20
  10. data/server/handlerwrappers/default.rb +10 -10
  11. data/server/instances/1/properties.xml +34 -122
  12. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +1 -0
  13. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +1 -0
  14. data/server/instances/{76/notifications/a59df784fab648f5327915fc6cf012ab → 10/notifications/182434032285ca1d06a8b6554b8889c8}/subscription.xml +6 -21
  15. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +1 -0
  16. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +1 -0
  17. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +6 -0
  18. data/server/instances/10/properties.xml +141 -127
  19. data/server/instances/11/properties.xml +162 -179
  20. data/server/instances/12/properties.xml +163 -87
  21. data/server/instances/13/properties.xml +131 -2002
  22. data/server/instances/14/properties.xml +9 -2044
  23. data/server/instances/15/properties.xml +8 -2039
  24. data/server/instances/16/properties.xml +8 -2069
  25. data/server/instances/17/properties.xml +11 -2065
  26. data/server/instances/18/properties.xml +10 -2109
  27. data/server/instances/19/properties.xml +5 -90
  28. data/server/instances/2/properties.xml +10 -135
  29. data/server/instances/20/properties.xml +169 -9
  30. data/server/instances/21/properties.xml +122 -82
  31. data/server/instances/22/properties.xml +53 -2042
  32. data/server/instances/23/properties.xml +75 -68
  33. data/server/instances/24/properties.xml +82 -2033
  34. data/server/instances/25/properties.xml +121 -37
  35. data/server/instances/26/properties.xml +9 -9
  36. data/server/instances/27/properties.xml +48 -2044
  37. data/server/instances/28/properties.xml +83 -2058
  38. data/server/instances/29/properties.xml +83 -2072
  39. data/server/instances/3/properties.xml +76 -211
  40. data/server/instances/30/properties.xml +293 -112
  41. data/server/instances/31/properties.xml +332 -9
  42. data/server/instances/313/notifications/crisp/consumer-secret +1 -0
  43. data/server/instances/313/notifications/crisp/producer-secret +1 -0
  44. data/server/instances/313/notifications/crisp/subscription.xml +7 -0
  45. data/server/instances/313/notifications/logging/consumer-secret +1 -0
  46. data/server/instances/313/notifications/logging/producer-secret +1 -0
  47. data/server/instances/313/notifications/logging/subscription.xml +7 -0
  48. data/server/instances/313/notifications/logging_yaml/consumer-secret +1 -0
  49. data/server/instances/313/notifications/logging_yaml/producer-secret +1 -0
  50. data/server/instances/313/notifications/logging_yaml/subscription.xml +7 -0
  51. data/server/instances/313/properties.xml +524 -0
  52. data/server/instances/32/properties.xml +582 -65
  53. data/server/instances/33/properties.xml +113 -99
  54. data/server/instances/4/properties.xml +92 -9
  55. data/server/instances/5/properties.xml +49 -1505
  56. data/server/instances/6/properties.xml +186 -11
  57. data/server/instances/662/notifications/crisp/consumer-secret +1 -0
  58. data/server/instances/662/notifications/crisp/producer-secret +1 -0
  59. data/server/instances/662/notifications/crisp/subscription.xml +7 -0
  60. data/server/instances/662/notifications/logging/consumer-secret +1 -0
  61. data/server/instances/662/notifications/logging/producer-secret +1 -0
  62. data/server/instances/662/notifications/logging/subscription.xml +7 -0
  63. data/server/instances/662/notifications/logging_yaml/consumer-secret +1 -0
  64. data/server/instances/662/notifications/logging_yaml/producer-secret +1 -0
  65. data/server/instances/662/notifications/logging_yaml/subscription.xml +7 -0
  66. data/server/instances/662/properties.xml +427 -0
  67. data/server/instances/{46 → 663}/properties.xml +1 -1
  68. data/server/instances/664/properties.xml +425 -0
  69. data/server/instances/665/properties.xml +425 -0
  70. data/server/instances/666/properties.xml +427 -0
  71. data/server/instances/667/properties.xml +427 -0
  72. data/server/instances/668/properties.xml +425 -0
  73. data/server/instances/669/properties.xml +425 -0
  74. data/server/instances/670/properties.xml +31 -0
  75. data/server/instances/{75 → 671}/properties.xml +12 -12
  76. data/server/instances/672/properties.xml +199 -0
  77. data/server/instances/673/properties.xml +52 -0
  78. data/server/instances/7/properties.xml +82 -1691
  79. data/server/instances/8/properties.xml +53 -1738
  80. data/server/instances/9/properties.xml +95 -680
  81. metadata +42 -52
  82. data/server/instances/34/properties.xml +0 -183
  83. data/server/instances/35/properties.xml +0 -183
  84. data/server/instances/36/properties.xml +0 -185
  85. data/server/instances/37/properties.xml +0 -183
  86. data/server/instances/38/properties.xml +0 -183
  87. data/server/instances/39/properties.xml +0 -183
  88. data/server/instances/40/properties.xml +0 -183
  89. data/server/instances/41/properties.xml +0 -183
  90. data/server/instances/42/properties.xml +0 -183
  91. data/server/instances/43/properties.xml +0 -183
  92. data/server/instances/44/properties.xml +0 -183
  93. data/server/instances/45/properties.xml +0 -185
  94. data/server/instances/47/properties.xml +0 -185
  95. data/server/instances/48/properties.xml +0 -185
  96. data/server/instances/49/properties.xml +0 -185
  97. data/server/instances/50/properties.xml +0 -183
  98. data/server/instances/51/properties.xml +0 -183
  99. data/server/instances/52/properties.xml +0 -2129
  100. data/server/instances/53/properties.xml +0 -2129
  101. data/server/instances/54/properties.xml +0 -319
  102. data/server/instances/55/properties.xml +0 -2114
  103. data/server/instances/56/properties.xml +0 -2114
  104. data/server/instances/57/properties.xml +0 -2119
  105. data/server/instances/58/properties.xml +0 -2119
  106. data/server/instances/59/properties.xml +0 -2119
  107. data/server/instances/60/properties.xml +0 -2119
  108. data/server/instances/61/properties.xml +0 -2114
  109. data/server/instances/62/properties.xml +0 -2116
  110. data/server/instances/63/properties.xml +0 -2116
  111. data/server/instances/64/properties.xml +0 -2116
  112. data/server/instances/65/properties.xml +0 -76
  113. data/server/instances/66/properties.xml +0 -97
  114. data/server/instances/67/properties.xml +0 -184
  115. data/server/instances/68/properties.xml +0 -158
  116. data/server/instances/69/properties.xml +0 -156
  117. data/server/instances/70/properties.xml +0 -156
  118. data/server/instances/71/properties.xml +0 -156
  119. data/server/instances/72/properties.xml +0 -156
  120. data/server/instances/73/properties.xml +0 -156
  121. data/server/instances/74/properties.xml +0 -156
  122. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/consumer-secret +0 -1
  123. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/producer-secret +0 -1
  124. data/server/instances/76/properties.xml +0 -156
  125. data/server/resources/base.xml +0 -78
  126. data/server/resources/test.rb +0 -19
  127. data/server/resources/test.xml +0 -33
@@ -0,0 +1,425 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>f67580db-d253-4c75-86ef-518e1fe30fd5</uuid>
4
+ <info>a01209799</info>
5
+ <modeltype>Signavio</modeltype>
6
+ <theme>labels</theme>
7
+ </attributes>
8
+ <state>ready</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <pid>null</pid>
13
+ <rid>null</rid>
14
+ <startingblock>null</startingblock>
15
+ <testruntime>null</testruntime>
16
+ <startingnumber>null</startingnumber>
17
+ <timetonightrun>null</timetonightrun>
18
+ <nightruntime>null</nightruntime>
19
+ </dataelements>
20
+ <endpoints>
21
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
22
+ <processid>http://abgabe.cs.univie.ac.at:9500/processid</processid>
23
+ <runnerid>http://abgabe.cs.univie.ac.at:9500/runnerid</runnerid>
24
+ <startingblock>http://abgabe.cs.univie.ac.at:9500/startingblock</startingblock>
25
+ <trainrunning>http://abgabe.cs.univie.ac.at:9500/trainrunning</trainrunning>
26
+ <runtestrun>http://abgabe.cs.univie.ac.at:9500/runtestrun</runtestrun>
27
+ <savetestrun>http://abgabe.cs.univie.ac.at:9500/savetestrun</savetestrun>
28
+ <startingnumber>http://abgabe.cs.univie.ac.at:9500/startingnumber</startingnumber>
29
+ <estimate>http://abgabe.cs.univie.ac.at:9500/estimate</estimate>
30
+ <saveestimate>http://abgabe.cs.univie.ac.at:9500/saveestimate</saveestimate>
31
+ <hometonightrun>http://abgabe.cs.univie.ac.at:9500/hometonightrun</hometonightrun>
32
+ <worktonightrun>http://abgabe.cs.univie.ac.at:9500/worktonightrun</worktonightrun>
33
+ <startnightrun>http://abgabe.cs.univie.ac.at:9500/startnightrun</startnightrun>
34
+ <run>http://abgabe.cs.univie.ac.at:9500/run</run>
35
+ <drink>http://abgabe.cs.univie.ac.at:9500/drink</drink>
36
+ <calculate>http://abgabe.cs.univie.ac.at:9500/calculate</calculate>
37
+ </endpoints>
38
+ <dsl>call :a16, :processid, parameters: { :label =&gt; "Set up process id", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
39
+ data.pid=result
40
+ END
41
+ call :a15, :runnerid, parameters: { :label =&gt; "Assign runner id", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
42
+ data.rid=result
43
+ END
44
+ call :a12, :startingblock, parameters: { :label =&gt; "Select starting block", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
45
+ data.startingblock=result
46
+ END
47
+ loop post_test{23 &gt; 25} do
48
+ call :a11, :trainrunning, parameters: { :label =&gt; "Train running", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
49
+ call :a13, :runtestrun, parameters: { :label =&gt; "Run 5km measured run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
50
+ data.testruntime=result
51
+ END
52
+ call :a14, :savetestrun, parameters: { :label =&gt; "Save time testrun", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid), ⭐(:name =&gt; :testrun, :value =&gt; data.testruntime)] }
53
+ end
54
+ call :a3, :startingnumber, parameters: { :label =&gt; "Get starting number", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
55
+ data.startingnumber=result
56
+ END
57
+ call :a2, :estimate, parameters: { :label =&gt; "Estimate time to run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
58
+ data.timetonightrun=result
59
+ END
60
+ call :a4, :saveestimate, parameters: { :label =&gt; "Save estimated time", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid), ⭐(:name =&gt; :estimate, :value =&gt; data.timetonightrun)] }
61
+ choose :exclusive do
62
+ alternative test{data.timetonightrun&gt;60} do
63
+ call :a6, :hometonightrun, parameters: { :label =&gt; "Leave from home to go to Night Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
64
+ end
65
+ otherwise do
66
+ call :a5, :worktonightrun, parameters: { :label =&gt; "Leave directly from work to go to Night Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
67
+ end
68
+ end
69
+ call :a7, :startnightrun, parameters: { :label =&gt; "Start taking the time of Night Run", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
70
+ parallel :wait =&gt; -1 do
71
+ parallel_branch do ||
72
+ call :a8, :run, parameters: { :label =&gt; "Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
73
+ end
74
+ parallel_branch do ||
75
+ call :a9, :drink, parameters: { :label =&gt; "Drink", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
76
+ end
77
+ end
78
+ call :a10, :calculate, parameters: { :label =&gt; "Calculate running time", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
79
+ data.nightruntime=result
80
+ END
81
+ </dsl>
82
+ <dslx>
83
+ <description xmlns="http://cpee.org/ns/description/1.0">
84
+ <call id="a16" endpoint="processid">
85
+ <parameters>
86
+ <label>Set up process id</label>
87
+ <method>:get</method>
88
+ <arguments/>
89
+ </parameters>
90
+ <finalize output="result">data.pid=result</finalize>
91
+ <update output="result"/>
92
+ </call>
93
+ <call id="a15" endpoint="runnerid">
94
+ <parameters>
95
+ <label>Assign runner id</label>
96
+ <method>:post</method>
97
+ <arguments>
98
+ <pid>data.pid</pid>
99
+ </arguments>
100
+ </parameters>
101
+ <finalize output="result">data.rid=result</finalize>
102
+ <update output="result"/>
103
+ </call>
104
+ <call id="a12" endpoint="startingblock">
105
+ <parameters>
106
+ <label>Select starting block</label>
107
+ <method>:get</method>
108
+ <arguments>
109
+ <pid>data.pid</pid>
110
+ </arguments>
111
+ </parameters>
112
+ <finalize output="result">data.startingblock=result</finalize>
113
+ <update output="result"/>
114
+ </call>
115
+ <loop mode="post_test" condition="23 &gt; 25">
116
+ <call id="a11" endpoint="trainrunning">
117
+ <parameters>
118
+ <label>Train running</label>
119
+ <method>:get</method>
120
+ <arguments>
121
+ <pid>data.pid</pid>
122
+ </arguments>
123
+ </parameters>
124
+ </call>
125
+ <call id="a13" endpoint="runtestrun">
126
+ <parameters>
127
+ <label>Run 5km measured run</label>
128
+ <method>:get</method>
129
+ <arguments>
130
+ <pid>data.pid</pid>
131
+ </arguments>
132
+ </parameters>
133
+ <finalize output="result">data.testruntime=result</finalize>
134
+ <update output="result"/>
135
+ </call>
136
+ <call id="a14" endpoint="savetestrun">
137
+ <parameters>
138
+ <label>Save time testrun</label>
139
+ <method>:post</method>
140
+ <arguments>
141
+ <pid>data.pid</pid>
142
+ <testrun>data.testruntime</testrun>
143
+ </arguments>
144
+ </parameters>
145
+ </call>
146
+ </loop>
147
+ <call id="a3" endpoint="startingnumber">
148
+ <parameters>
149
+ <label>Get starting number</label>
150
+ <method>:post</method>
151
+ <arguments>
152
+ <pid>data.pid</pid>
153
+ </arguments>
154
+ </parameters>
155
+ <finalize output="result">data.startingnumber=result</finalize>
156
+ <update output="result"/>
157
+ </call>
158
+ <call id="a2" endpoint="estimate">
159
+ <parameters>
160
+ <label>Estimate time to run</label>
161
+ <method>:get</method>
162
+ <arguments>
163
+ <pid>data.pid</pid>
164
+ </arguments>
165
+ </parameters>
166
+ <finalize output="result">data.timetonightrun=result</finalize>
167
+ <update output="result"/>
168
+ </call>
169
+ <call id="a4" endpoint="saveestimate">
170
+ <parameters>
171
+ <label>Save estimated time</label>
172
+ <method>:post</method>
173
+ <arguments>
174
+ <pid>data.pid</pid>
175
+ <estimate>data.timetonightrun</estimate>
176
+ </arguments>
177
+ </parameters>
178
+ </call>
179
+ <choose mode="exclusive">
180
+ <alternative condition="data.timetonightrun&gt;60">
181
+ <call id="a6" endpoint="hometonightrun">
182
+ <parameters>
183
+ <label>Leave from home to go to Night Run</label>
184
+ <method>:get</method>
185
+ <arguments>
186
+ <pid>data.pid</pid>
187
+ </arguments>
188
+ </parameters>
189
+ </call>
190
+ </alternative>
191
+ <otherwise>
192
+ <call id="a5" endpoint="worktonightrun">
193
+ <parameters>
194
+ <label>Leave directly from work to go to Night Run</label>
195
+ <method>:get</method>
196
+ <arguments>
197
+ <pid>data.pid</pid>
198
+ </arguments>
199
+ </parameters>
200
+ </call>
201
+ </otherwise>
202
+ </choose>
203
+ <call id="a7" endpoint="startnightrun">
204
+ <parameters>
205
+ <label>Start taking the time of Night Run</label>
206
+ <method>:post</method>
207
+ <arguments>
208
+ <pid>data.pid</pid>
209
+ </arguments>
210
+ </parameters>
211
+ </call>
212
+ <parallel wait="-1">
213
+ <parallel_branch pass="" local="">
214
+ <call id="a8" endpoint="run">
215
+ <parameters>
216
+ <label>Run</label>
217
+ <method>:get</method>
218
+ <arguments>
219
+ <pid>data.pid</pid>
220
+ </arguments>
221
+ </parameters>
222
+ </call>
223
+ </parallel_branch>
224
+ <parallel_branch pass="" local="">
225
+ <call id="a9" endpoint="drink">
226
+ <parameters>
227
+ <label>Drink</label>
228
+ <method>:get</method>
229
+ <arguments>
230
+ <pid>data.pid</pid>
231
+ </arguments>
232
+ </parameters>
233
+ </call>
234
+ </parallel_branch>
235
+ </parallel>
236
+ <call id="a10" endpoint="calculate">
237
+ <parameters>
238
+ <label>Calculate running time</label>
239
+ <method>:post</method>
240
+ <arguments>
241
+ <pid>data.pid</pid>
242
+ </arguments>
243
+ </parameters>
244
+ <finalize output="result">data.nightruntime=result</finalize>
245
+ <update output="result"/>
246
+ </call>
247
+ </description>
248
+ </dslx>
249
+ <status>
250
+ <id>0</id>
251
+ <message>undefined</message>
252
+ </status>
253
+ <description>
254
+ <description xmlns="http://cpee.org/ns/description/1.0">
255
+ <call id="a16" endpoint="processid">
256
+ <parameters>
257
+ <label>Set up process id</label>
258
+ <method>:get</method>
259
+ <arguments/>
260
+ </parameters>
261
+ <finalize output="result">data.pid=result</finalize>
262
+ <update output="result"/>
263
+ </call>
264
+ <call id="a15" endpoint="runnerid">
265
+ <parameters>
266
+ <label>Assign runner id</label>
267
+ <method>:post</method>
268
+ <arguments>
269
+ <pid>data.pid</pid>
270
+ </arguments>
271
+ </parameters>
272
+ <finalize output="result">data.rid=result</finalize>
273
+ <update output="result"/>
274
+ </call>
275
+ <call id="a12" endpoint="startingblock">
276
+ <parameters>
277
+ <label>Select starting block</label>
278
+ <method>:get</method>
279
+ <arguments>
280
+ <pid>data.pid</pid>
281
+ </arguments>
282
+ </parameters>
283
+ <finalize output="result">data.startingblock=result</finalize>
284
+ <update output="result"/>
285
+ </call>
286
+ <loop mode="post_test" condition="23 &gt; 25">
287
+ <call id="a11" endpoint="trainrunning">
288
+ <parameters>
289
+ <label>Train running</label>
290
+ <method>:get</method>
291
+ <arguments>
292
+ <pid>data.pid</pid>
293
+ </arguments>
294
+ </parameters>
295
+ </call>
296
+ <call id="a13" endpoint="runtestrun">
297
+ <parameters>
298
+ <label>Run 5km measured run</label>
299
+ <method>:get</method>
300
+ <arguments>
301
+ <pid>data.pid</pid>
302
+ </arguments>
303
+ </parameters>
304
+ <finalize output="result">data.testruntime=result</finalize>
305
+ <update output="result"/>
306
+ </call>
307
+ <call id="a14" endpoint="savetestrun">
308
+ <parameters>
309
+ <label>Save time testrun</label>
310
+ <method>:post</method>
311
+ <arguments>
312
+ <pid>data.pid</pid>
313
+ <testrun>data.testruntime</testrun>
314
+ </arguments>
315
+ </parameters>
316
+ </call>
317
+ </loop>
318
+ <call id="a3" endpoint="startingnumber">
319
+ <parameters>
320
+ <label>Get starting number</label>
321
+ <method>:post</method>
322
+ <arguments>
323
+ <pid>data.pid</pid>
324
+ </arguments>
325
+ </parameters>
326
+ <finalize output="result">data.startingnumber=result</finalize>
327
+ <update output="result"/>
328
+ </call>
329
+ <call id="a2" endpoint="estimate">
330
+ <parameters>
331
+ <label>Estimate time to run</label>
332
+ <method>:get</method>
333
+ <arguments>
334
+ <pid>data.pid</pid>
335
+ </arguments>
336
+ </parameters>
337
+ <finalize output="result">data.timetonightrun=result</finalize>
338
+ <update output="result"/>
339
+ </call>
340
+ <call id="a4" endpoint="saveestimate">
341
+ <parameters>
342
+ <label>Save estimated time</label>
343
+ <method>:post</method>
344
+ <arguments>
345
+ <pid>data.pid</pid>
346
+ <estimate>data.timetonightrun</estimate>
347
+ </arguments>
348
+ </parameters>
349
+ </call>
350
+ <choose mode="exclusive">
351
+ <alternative condition="data.timetonightrun&gt;60">
352
+ <call id="a6" endpoint="hometonightrun">
353
+ <parameters>
354
+ <label>Leave from home to go to Night Run</label>
355
+ <method>:get</method>
356
+ <arguments>
357
+ <pid>data.pid</pid>
358
+ </arguments>
359
+ </parameters>
360
+ </call>
361
+ </alternative>
362
+ <otherwise>
363
+ <call id="a5" endpoint="worktonightrun">
364
+ <parameters>
365
+ <label>Leave directly from work to go to Night Run</label>
366
+ <method>:get</method>
367
+ <arguments>
368
+ <pid>data.pid</pid>
369
+ </arguments>
370
+ </parameters>
371
+ </call>
372
+ </otherwise>
373
+ </choose>
374
+ <call id="a7" endpoint="startnightrun">
375
+ <parameters>
376
+ <label>Start taking the time of Night Run</label>
377
+ <method>:post</method>
378
+ <arguments>
379
+ <pid>data.pid</pid>
380
+ </arguments>
381
+ </parameters>
382
+ </call>
383
+ <parallel wait="-1">
384
+ <parallel_branch pass="" local="">
385
+ <call id="a8" endpoint="run">
386
+ <parameters>
387
+ <label>Run</label>
388
+ <method>:get</method>
389
+ <arguments>
390
+ <pid>data.pid</pid>
391
+ </arguments>
392
+ </parameters>
393
+ </call>
394
+ </parallel_branch>
395
+ <parallel_branch pass="" local="">
396
+ <call id="a9" endpoint="drink">
397
+ <parameters>
398
+ <label>Drink</label>
399
+ <method>:get</method>
400
+ <arguments>
401
+ <pid>data.pid</pid>
402
+ </arguments>
403
+ </parameters>
404
+ </call>
405
+ </parallel_branch>
406
+ </parallel>
407
+ <call id="a10" endpoint="calculate">
408
+ <parameters>
409
+ <label>Calculate running time</label>
410
+ <method>:post</method>
411
+ <arguments>
412
+ <pid>data.pid</pid>
413
+ </arguments>
414
+ </parameters>
415
+ <finalize output="result">data.nightruntime=result</finalize>
416
+ <update output="result"/>
417
+ </call>
418
+ </description>
419
+ </description>
420
+ <transformation>
421
+ <description type="copy"/>
422
+ <dataelements type="none"/>
423
+ <endpoints type="none"/>
424
+ </transformation>
425
+ </properties>
@@ -0,0 +1,425 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>e5b75cbd-75ec-4f21-92ca-ddbc28d28067</uuid>
4
+ <info>a01209799</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>labels</theme>
7
+ </attributes>
8
+ <state>ready</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <pid>null</pid>
13
+ <rid>null</rid>
14
+ <startingblock>null</startingblock>
15
+ <testruntime>null</testruntime>
16
+ <startingnumber>null</startingnumber>
17
+ <timetonightrun>null</timetonightrun>
18
+ <nightruntime>null</nightruntime>
19
+ </dataelements>
20
+ <endpoints>
21
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
22
+ <processid>http://abgabe.cs.univie.ac.at:9500/processid</processid>
23
+ <runnerid>http://abgabe.cs.univie.ac.at:9500/runnerid</runnerid>
24
+ <startingblock>http://abgabe.cs.univie.ac.at:9500/startingblock</startingblock>
25
+ <trainrunning>http://abgabe.cs.univie.ac.at:9500/trainrunning</trainrunning>
26
+ <runtestrun>http://abgabe.cs.univie.ac.at:9500/runtestrun</runtestrun>
27
+ <savetestrun>http://abgabe.cs.univie.ac.at:9500/savetestrun</savetestrun>
28
+ <startingnumber>http://abgabe.cs.univie.ac.at:9500/startingnumber</startingnumber>
29
+ <estimate>http://abgabe.cs.univie.ac.at:9500/estimate</estimate>
30
+ <saveestimate>http://abgabe.cs.univie.ac.at:9500/saveestimate</saveestimate>
31
+ <hometonightrun>http://abgabe.cs.univie.ac.at:9500/hometonightrun</hometonightrun>
32
+ <worktonightrun>http://abgabe.cs.univie.ac.at:9500/worktonightrun</worktonightrun>
33
+ <startnightrun>http://abgabe.cs.univie.ac.at:9500/startnightrun</startnightrun>
34
+ <run>http://abgabe.cs.univie.ac.at:9500/run</run>
35
+ <drink>http://abgabe.cs.univie.ac.at:9500/drink</drink>
36
+ <calculate>http://abgabe.cs.univie.ac.at:9500/calculate</calculate>
37
+ </endpoints>
38
+ <dsl>call :a16, :processid, parameters: { :label =&gt; "Set up process id", :method =&gt; :get, :arguments =&gt; nil }, finalize: &lt;&lt;-END
39
+ data.pid=result
40
+ END
41
+ call :a15, :runnerid, parameters: { :label =&gt; "Assign runner id", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
42
+ data.rid=result
43
+ END
44
+ call :a12, :startingblock, parameters: { :label =&gt; "Select starting block", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
45
+ data.startingblock=result
46
+ END
47
+ loop post_test{23 &gt; 25} do
48
+ call :a11, :trainrunning, parameters: { :label =&gt; "Train running", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
49
+ call :a13, :runtestrun, parameters: { :label =&gt; "Run 5km measured run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
50
+ data.testruntime=result
51
+ END
52
+ call :a14, :savetestrun, parameters: { :label =&gt; "Save time testrun", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid), ⭐(:name =&gt; :testrun, :value =&gt; data.testruntime)] }
53
+ end
54
+ call :a3, :startingnumber, parameters: { :label =&gt; "Get starting number", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
55
+ data.startingnumber=result
56
+ END
57
+ call :a2, :estimate, parameters: { :label =&gt; "Estimate time to run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
58
+ data.timetonightrun=result
59
+ END
60
+ call :a4, :saveestimate, parameters: { :label =&gt; "Save estimated time", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid), ⭐(:name =&gt; :estimate, :value =&gt; data.timetonightrun)] }
61
+ choose :exclusive do
62
+ alternative test{data.timetonightrun&gt;60} do
63
+ call :a6, :hometonightrun, parameters: { :label =&gt; "Leave from home to go to Night Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
64
+ end
65
+ otherwise do
66
+ call :a5, :worktonightrun, parameters: { :label =&gt; "Leave directly from work to go to Night Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
67
+ end
68
+ end
69
+ call :a7, :startnightrun, parameters: { :label =&gt; "Start taking the time of Night Run", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
70
+ parallel :wait =&gt; -1 do
71
+ parallel_branch do ||
72
+ call :a8, :run, parameters: { :label =&gt; "Run", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
73
+ end
74
+ parallel_branch do ||
75
+ call :a9, :drink, parameters: { :label =&gt; "Drink", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }
76
+ end
77
+ end
78
+ call :a10, :calculate, parameters: { :label =&gt; "Calculate running time", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :pid, :value =&gt; data.pid)] }, finalize: &lt;&lt;-END
79
+ data.nightruntime=result
80
+ END
81
+ </dsl>
82
+ <dslx>
83
+ <description xmlns="http://cpee.org/ns/description/1.0">
84
+ <call id="a16" endpoint="processid">
85
+ <parameters>
86
+ <label>Set up process id</label>
87
+ <method>:get</method>
88
+ <arguments/>
89
+ </parameters>
90
+ <finalize output="result">data.pid=result</finalize>
91
+ <update output="result"/>
92
+ </call>
93
+ <call id="a15" endpoint="runnerid">
94
+ <parameters>
95
+ <label>Assign runner id</label>
96
+ <method>:post</method>
97
+ <arguments>
98
+ <pid>data.pid</pid>
99
+ </arguments>
100
+ </parameters>
101
+ <finalize output="result">data.rid=result</finalize>
102
+ <update output="result"/>
103
+ </call>
104
+ <call id="a12" endpoint="startingblock">
105
+ <parameters>
106
+ <label>Select starting block</label>
107
+ <method>:get</method>
108
+ <arguments>
109
+ <pid>data.pid</pid>
110
+ </arguments>
111
+ </parameters>
112
+ <finalize output="result">data.startingblock=result</finalize>
113
+ <update output="result"/>
114
+ </call>
115
+ <loop mode="post_test" condition="23 &gt; 25">
116
+ <call id="a11" endpoint="trainrunning">
117
+ <parameters>
118
+ <label>Train running</label>
119
+ <method>:get</method>
120
+ <arguments>
121
+ <pid>data.pid</pid>
122
+ </arguments>
123
+ </parameters>
124
+ </call>
125
+ <call id="a13" endpoint="runtestrun">
126
+ <parameters>
127
+ <label>Run 5km measured run</label>
128
+ <method>:get</method>
129
+ <arguments>
130
+ <pid>data.pid</pid>
131
+ </arguments>
132
+ </parameters>
133
+ <finalize output="result">data.testruntime=result</finalize>
134
+ <update output="result"/>
135
+ </call>
136
+ <call id="a14" endpoint="savetestrun">
137
+ <parameters>
138
+ <label>Save time testrun</label>
139
+ <method>:post</method>
140
+ <arguments>
141
+ <pid>data.pid</pid>
142
+ <testrun>data.testruntime</testrun>
143
+ </arguments>
144
+ </parameters>
145
+ </call>
146
+ </loop>
147
+ <call id="a3" endpoint="startingnumber">
148
+ <parameters>
149
+ <label>Get starting number</label>
150
+ <method>:post</method>
151
+ <arguments>
152
+ <pid>data.pid</pid>
153
+ </arguments>
154
+ </parameters>
155
+ <finalize output="result">data.startingnumber=result</finalize>
156
+ <update output="result"/>
157
+ </call>
158
+ <call id="a2" endpoint="estimate">
159
+ <parameters>
160
+ <label>Estimate time to run</label>
161
+ <method>:get</method>
162
+ <arguments>
163
+ <pid>data.pid</pid>
164
+ </arguments>
165
+ </parameters>
166
+ <finalize output="result">data.timetonightrun=result</finalize>
167
+ <update output="result"/>
168
+ </call>
169
+ <call id="a4" endpoint="saveestimate">
170
+ <parameters>
171
+ <label>Save estimated time</label>
172
+ <method>:post</method>
173
+ <arguments>
174
+ <pid>data.pid</pid>
175
+ <estimate>data.timetonightrun</estimate>
176
+ </arguments>
177
+ </parameters>
178
+ </call>
179
+ <choose mode="exclusive">
180
+ <alternative condition="data.timetonightrun&gt;60">
181
+ <call id="a6" endpoint="hometonightrun">
182
+ <parameters>
183
+ <label>Leave from home to go to Night Run</label>
184
+ <method>:get</method>
185
+ <arguments>
186
+ <pid>data.pid</pid>
187
+ </arguments>
188
+ </parameters>
189
+ </call>
190
+ </alternative>
191
+ <otherwise>
192
+ <call id="a5" endpoint="worktonightrun">
193
+ <parameters>
194
+ <label>Leave directly from work to go to Night Run</label>
195
+ <method>:get</method>
196
+ <arguments>
197
+ <pid>data.pid</pid>
198
+ </arguments>
199
+ </parameters>
200
+ </call>
201
+ </otherwise>
202
+ </choose>
203
+ <call id="a7" endpoint="startnightrun">
204
+ <parameters>
205
+ <label>Start taking the time of Night Run</label>
206
+ <method>:post</method>
207
+ <arguments>
208
+ <pid>data.pid</pid>
209
+ </arguments>
210
+ </parameters>
211
+ </call>
212
+ <parallel wait="-1">
213
+ <parallel_branch pass="" local="">
214
+ <call id="a8" endpoint="run">
215
+ <parameters>
216
+ <label>Run</label>
217
+ <method>:get</method>
218
+ <arguments>
219
+ <pid>data.pid</pid>
220
+ </arguments>
221
+ </parameters>
222
+ </call>
223
+ </parallel_branch>
224
+ <parallel_branch pass="" local="">
225
+ <call id="a9" endpoint="drink">
226
+ <parameters>
227
+ <label>Drink</label>
228
+ <method>:get</method>
229
+ <arguments>
230
+ <pid>data.pid</pid>
231
+ </arguments>
232
+ </parameters>
233
+ </call>
234
+ </parallel_branch>
235
+ </parallel>
236
+ <call id="a10" endpoint="calculate">
237
+ <parameters>
238
+ <label>Calculate running time</label>
239
+ <method>:post</method>
240
+ <arguments>
241
+ <pid>data.pid</pid>
242
+ </arguments>
243
+ </parameters>
244
+ <finalize output="result">data.nightruntime=result</finalize>
245
+ <update output="result"/>
246
+ </call>
247
+ </description>
248
+ </dslx>
249
+ <status>
250
+ <id>0</id>
251
+ <message>undefined</message>
252
+ </status>
253
+ <description>
254
+ <description xmlns="http://cpee.org/ns/description/1.0">
255
+ <call id="a16" endpoint="processid">
256
+ <parameters>
257
+ <label>Set up process id</label>
258
+ <method>:get</method>
259
+ <arguments/>
260
+ </parameters>
261
+ <finalize output="result">data.pid=result</finalize>
262
+ <update output="result"/>
263
+ </call>
264
+ <call id="a15" endpoint="runnerid">
265
+ <parameters>
266
+ <label>Assign runner id</label>
267
+ <method>:post</method>
268
+ <arguments>
269
+ <pid>data.pid</pid>
270
+ </arguments>
271
+ </parameters>
272
+ <finalize output="result">data.rid=result</finalize>
273
+ <update output="result"/>
274
+ </call>
275
+ <call id="a12" endpoint="startingblock">
276
+ <parameters>
277
+ <label>Select starting block</label>
278
+ <method>:get</method>
279
+ <arguments>
280
+ <pid>data.pid</pid>
281
+ </arguments>
282
+ </parameters>
283
+ <finalize output="result">data.startingblock=result</finalize>
284
+ <update output="result"/>
285
+ </call>
286
+ <loop mode="post_test" condition="23 &gt; 25">
287
+ <call id="a11" endpoint="trainrunning">
288
+ <parameters>
289
+ <label>Train running</label>
290
+ <method>:get</method>
291
+ <arguments>
292
+ <pid>data.pid</pid>
293
+ </arguments>
294
+ </parameters>
295
+ </call>
296
+ <call id="a13" endpoint="runtestrun">
297
+ <parameters>
298
+ <label>Run 5km measured run</label>
299
+ <method>:get</method>
300
+ <arguments>
301
+ <pid>data.pid</pid>
302
+ </arguments>
303
+ </parameters>
304
+ <finalize output="result">data.testruntime=result</finalize>
305
+ <update output="result"/>
306
+ </call>
307
+ <call id="a14" endpoint="savetestrun">
308
+ <parameters>
309
+ <label>Save time testrun</label>
310
+ <method>:post</method>
311
+ <arguments>
312
+ <pid>data.pid</pid>
313
+ <testrun>data.testruntime</testrun>
314
+ </arguments>
315
+ </parameters>
316
+ </call>
317
+ </loop>
318
+ <call id="a3" endpoint="startingnumber">
319
+ <parameters>
320
+ <label>Get starting number</label>
321
+ <method>:post</method>
322
+ <arguments>
323
+ <pid>data.pid</pid>
324
+ </arguments>
325
+ </parameters>
326
+ <finalize output="result">data.startingnumber=result</finalize>
327
+ <update output="result"/>
328
+ </call>
329
+ <call id="a2" endpoint="estimate">
330
+ <parameters>
331
+ <label>Estimate time to run</label>
332
+ <method>:get</method>
333
+ <arguments>
334
+ <pid>data.pid</pid>
335
+ </arguments>
336
+ </parameters>
337
+ <finalize output="result">data.timetonightrun=result</finalize>
338
+ <update output="result"/>
339
+ </call>
340
+ <call id="a4" endpoint="saveestimate">
341
+ <parameters>
342
+ <label>Save estimated time</label>
343
+ <method>:post</method>
344
+ <arguments>
345
+ <pid>data.pid</pid>
346
+ <estimate>data.timetonightrun</estimate>
347
+ </arguments>
348
+ </parameters>
349
+ </call>
350
+ <choose mode="exclusive">
351
+ <alternative condition="data.timetonightrun&gt;60">
352
+ <call id="a6" endpoint="hometonightrun">
353
+ <parameters>
354
+ <label>Leave from home to go to Night Run</label>
355
+ <method>:get</method>
356
+ <arguments>
357
+ <pid>data.pid</pid>
358
+ </arguments>
359
+ </parameters>
360
+ </call>
361
+ </alternative>
362
+ <otherwise>
363
+ <call id="a5" endpoint="worktonightrun">
364
+ <parameters>
365
+ <label>Leave directly from work to go to Night Run</label>
366
+ <method>:get</method>
367
+ <arguments>
368
+ <pid>data.pid</pid>
369
+ </arguments>
370
+ </parameters>
371
+ </call>
372
+ </otherwise>
373
+ </choose>
374
+ <call id="a7" endpoint="startnightrun">
375
+ <parameters>
376
+ <label>Start taking the time of Night Run</label>
377
+ <method>:post</method>
378
+ <arguments>
379
+ <pid>data.pid</pid>
380
+ </arguments>
381
+ </parameters>
382
+ </call>
383
+ <parallel wait="-1">
384
+ <parallel_branch pass="" local="">
385
+ <call id="a8" endpoint="run">
386
+ <parameters>
387
+ <label>Run</label>
388
+ <method>:get</method>
389
+ <arguments>
390
+ <pid>data.pid</pid>
391
+ </arguments>
392
+ </parameters>
393
+ </call>
394
+ </parallel_branch>
395
+ <parallel_branch pass="" local="">
396
+ <call id="a9" endpoint="drink">
397
+ <parameters>
398
+ <label>Drink</label>
399
+ <method>:get</method>
400
+ <arguments>
401
+ <pid>data.pid</pid>
402
+ </arguments>
403
+ </parameters>
404
+ </call>
405
+ </parallel_branch>
406
+ </parallel>
407
+ <call id="a10" endpoint="calculate">
408
+ <parameters>
409
+ <label>Calculate running time</label>
410
+ <method>:post</method>
411
+ <arguments>
412
+ <pid>data.pid</pid>
413
+ </arguments>
414
+ </parameters>
415
+ <finalize output="result">data.nightruntime=result</finalize>
416
+ <update output="result"/>
417
+ </call>
418
+ </description>
419
+ </description>
420
+ <transformation>
421
+ <description type="copy"/>
422
+ <dataelements type="none"/>
423
+ <endpoints type="none"/>
424
+ </transformation>
425
+ </properties>