cpee 1.4.7 → 1.4.8

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