cpee 1.4.15 → 1.4.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/js/instance.js +15 -6
  3. data/cockpit/js/wfadaptor.js +18 -3
  4. data/cockpit/themes/compact/theme.js +5 -3
  5. data/cockpit/themes/default/rngs/choose.rng +2 -2
  6. data/cockpit/themes/default/rngs/parallel.rng +2 -2
  7. data/cockpit/themes/default/theme.js +5 -3
  8. data/cockpit/themes/extended/theme.js +1042 -0
  9. data/cockpit/track.html +118 -0
  10. data/cpee.gemspec +1 -1
  11. data/lib/cpee/controller.rb +24 -8
  12. data/lib/cpee/implementation.rb +3 -6
  13. data/server/handlerwrappers/default.rb +1 -1
  14. data/server/resources/properties.init +5 -4
  15. data/server/resources/properties.schema.active +9 -1
  16. data/server/resources/properties.schema.finished +8 -0
  17. data/server/resources/properties.schema.inactive +8 -0
  18. data/tools/cpee +42 -19
  19. metadata +4 -109
  20. data/log/logs/1/test +0 -1
  21. data/log/logs/3b0cfe66-5a3d-43de-b5a1-d7b9386be65a.xes.yaml +0 -413
  22. data/server/instances/1/properties.xml +0 -62
  23. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +0 -1
  24. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +0 -1
  25. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +0 -23
  26. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +0 -1
  27. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +0 -1
  28. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +0 -6
  29. data/server/instances/10/properties.xml +0 -187
  30. data/server/instances/11/properties.xml +0 -191
  31. data/server/instances/12/properties.xml +0 -191
  32. data/server/instances/13/properties.xml +0 -204
  33. data/server/instances/14/properties.xml +0 -31
  34. data/server/instances/15/properties.xml +0 -30
  35. data/server/instances/16/properties.xml +0 -29
  36. data/server/instances/17/properties.xml +0 -29
  37. data/server/instances/18/properties.xml +0 -31
  38. data/server/instances/19/properties.xml +0 -31
  39. data/server/instances/2/properties.xml +0 -31
  40. data/server/instances/20/properties.xml +0 -191
  41. data/server/instances/21/properties.xml +0 -156
  42. data/server/instances/22/properties.xml +0 -118
  43. data/server/instances/23/properties.xml +0 -118
  44. data/server/instances/24/properties.xml +0 -156
  45. data/server/instances/25/properties.xml +0 -156
  46. data/server/instances/26/properties.xml +0 -156
  47. data/server/instances/27/properties.xml +0 -140
  48. data/server/instances/28/properties.xml +0 -156
  49. data/server/instances/29/properties.xml +0 -156
  50. data/server/instances/3/properties.xml +0 -120
  51. data/server/instances/30/properties.xml +0 -354
  52. data/server/instances/31/properties.xml +0 -354
  53. data/server/instances/313/notifications/crisp/consumer-secret +0 -1
  54. data/server/instances/313/notifications/crisp/producer-secret +0 -1
  55. data/server/instances/313/notifications/crisp/subscription.xml +0 -7
  56. data/server/instances/313/notifications/logging/consumer-secret +0 -1
  57. data/server/instances/313/notifications/logging/producer-secret +0 -1
  58. data/server/instances/313/notifications/logging/subscription.xml +0 -7
  59. data/server/instances/313/notifications/logging_yaml/consumer-secret +0 -1
  60. data/server/instances/313/notifications/logging_yaml/producer-secret +0 -1
  61. data/server/instances/313/notifications/logging_yaml/subscription.xml +0 -7
  62. data/server/instances/313/properties.xml +0 -524
  63. data/server/instances/32/properties.xml +0 -628
  64. data/server/instances/33/properties.xml +0 -156
  65. data/server/instances/4/properties.xml +0 -114
  66. data/server/instances/5/properties.xml +0 -114
  67. data/server/instances/6/properties.xml +0 -206
  68. data/server/instances/662/notifications/crisp/consumer-secret +0 -1
  69. data/server/instances/662/notifications/crisp/producer-secret +0 -1
  70. data/server/instances/662/notifications/crisp/subscription.xml +0 -7
  71. data/server/instances/662/notifications/logging/consumer-secret +0 -1
  72. data/server/instances/662/notifications/logging/producer-secret +0 -1
  73. data/server/instances/662/notifications/logging/subscription.xml +0 -7
  74. data/server/instances/662/notifications/logging_yaml/consumer-secret +0 -1
  75. data/server/instances/662/notifications/logging_yaml/producer-secret +0 -1
  76. data/server/instances/662/notifications/logging_yaml/subscription.xml +0 -7
  77. data/server/instances/662/properties.xml +0 -427
  78. data/server/instances/663/properties.xml +0 -31
  79. data/server/instances/664/properties.xml +0 -425
  80. data/server/instances/665/properties.xml +0 -425
  81. data/server/instances/666/properties.xml +0 -427
  82. data/server/instances/667/properties.xml +0 -427
  83. data/server/instances/668/properties.xml +0 -425
  84. data/server/instances/669/properties.xml +0 -425
  85. data/server/instances/670/properties.xml +0 -31
  86. data/server/instances/671/properties.xml +0 -158
  87. data/server/instances/672/properties.xml +0 -199
  88. data/server/instances/673/properties.xml +0 -52
  89. data/server/instances/674/properties.xml +0 -75
  90. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/consumer-secret +0 -1
  91. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/producer-secret +0 -1
  92. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/subscription.xml +0 -6
  93. data/server/instances/675/properties.xml +0 -74
  94. data/server/instances/676/properties.xml +0 -76
  95. data/server/instances/677/properties.xml +0 -76
  96. data/server/instances/678/properties.xml +0 -74
  97. data/server/instances/679/properties.xml +0 -76
  98. data/server/instances/680/properties.xml +0 -76
  99. data/server/instances/681/properties.xml +0 -156
  100. data/server/instances/682/properties.xml +0 -156
  101. data/server/instances/683/properties.xml +0 -156
  102. data/server/instances/684/properties.xml +0 -156
  103. data/server/instances/685/properties.xml +0 -156
  104. data/server/instances/686/properties.xml +0 -156
  105. data/server/instances/687/properties.xml +0 -156
  106. data/server/instances/688/properties.xml +0 -118
  107. data/server/instances/689/properties.xml +0 -156
  108. data/server/instances/690/properties.xml +0 -156
  109. data/server/instances/691/properties.xml +0 -129
  110. data/server/instances/692/properties.xml +0 -31
  111. data/server/instances/693/properties.xml +0 -118
  112. data/server/instances/694/properties.xml +0 -118
  113. data/server/instances/695/properties.xml +0 -156
  114. data/server/instances/696/properties.xml +0 -156
  115. data/server/instances/697/notifications/ruleengine/consumer-secret +0 -1
  116. data/server/instances/697/notifications/ruleengine/producer-secret +0 -1
  117. data/server/instances/697/notifications/ruleengine/subscription.xml +0 -16
  118. data/server/instances/697/properties.xml +0 -156
  119. data/server/instances/698/notifications/ruleengine/consumer-secret +0 -1
  120. data/server/instances/698/notifications/ruleengine/producer-secret +0 -1
  121. data/server/instances/698/notifications/ruleengine/subscription.xml +0 -16
  122. data/server/instances/698/properties.xml +0 -31
  123. data/server/instances/7/properties.xml +0 -156
  124. data/server/instances/8/properties.xml +0 -118
  125. data/server/instances/9/properties.xml +0 -120
  126. data/server/server.pid +0 -1
@@ -1,354 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>c25bd9e6-a5b5-44b3-a375-87e40d87f985</uuid>
4
- <info>a1200993</info>
5
- <modeltype>Signavio</modeltype>
6
- <theme>labels</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <passportStatus>0</passportStatus>
13
- <visaStatus>0</visaStatus>
14
- <jobStatus>0</jobStatus>
15
- <money>0</money>
16
- <adress>null</adress>
17
- </dataelements>
18
- <endpoints>
19
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
20
- </endpoints>
21
- <dsl>call :a1, :timeout, parameters: { :label =&gt; "\"Save money for living expenses in Austria\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
22
- data.money=10000
23
- END
24
- call :a2, :timeout, parameters: { :label =&gt; "\"Check if passport still valid\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
25
- data.passportStatus=0
26
- END
27
- choose :exclusive do
28
- alternative "data.passportStatus==0" do
29
- call :a4, :timeout, parameters: { :label =&gt; "Renew passport", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
30
- data.passportStatus=1
31
- data.money=data.money-60
32
- END
33
- end
34
- end
35
- call :a6, :timeout, parameters: { :label =&gt; "\"Check if visa is needed\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
36
- data.visaStatus=1
37
- END
38
- choose :exclusive do
39
- alternative "data.passportStatus==1" do
40
- call :a5, :timeout, parameters: { :label =&gt; "Apply for visa", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
41
- data.visaStatus=0
42
- data.money=data.money-110
43
- END
44
- end
45
- end
46
- call :a10, :timeout, parameters: { :label =&gt; "\"Apply for \\"Rot-Weiß-Rot\\" card\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
47
- data.money=data.money-200
48
- END
49
- parallel :wait =&gt; -1 do
50
- parallel_branch do
51
- call :a12, :timeout, parameters: { :label =&gt; "\"Organise bank account\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
52
- data.money=data.money+100
53
- END
54
- end
55
- parallel_branch do
56
- call :a13, :timeout, parameters: { :label =&gt; "\"Organise accomodation\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
57
- data.adress="Sonnenallee 51/1/16"
58
- END
59
- end
60
- end
61
- call :a15, :timeout, parameters: { :label =&gt; "\"Enter Austria\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
62
- data.money=data.money-1000
63
- data.jobStatus=1
64
- END
65
- loop pre_test{data.jobStatus==0} do
66
- call :a3, :timeout, parameters: { :label =&gt; "Search for a job", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
67
- data.jobStatus=1
68
- END
69
- end
70
- </dsl>
71
- <dslx>
72
- <description xmlns="http://cpee.org/ns/description/1.0">
73
- <call id="a1" endpoint="timeout">
74
- <parameters>
75
- <label>"Save money for living expenses in Austria"</label>
76
- <method>:post</method>
77
- <arguments>
78
- <timeout>2</timeout>
79
- </arguments>
80
- </parameters>
81
- <finalize output="result">data.money=10000
82
- </finalize>
83
- <update output="result"/>
84
- </call>
85
- <call id="a2" endpoint="timeout">
86
- <parameters>
87
- <label>"Check if passport still valid"</label>
88
- <method>:post</method>
89
- <arguments>
90
- <timeout>2</timeout>
91
- </arguments>
92
- </parameters>
93
- <finalize output="result">data.passportStatus=0
94
- </finalize>
95
- <update output="result"/>
96
- </call>
97
- <choose mode="exclusive">
98
- <alternative condition="data.passportStatus==0">
99
- <call id="a4" endpoint="timeout">
100
- <parameters>
101
- <label>Renew passport</label>
102
- <method>:post</method>
103
- <arguments>
104
- <timeout>2</timeout>
105
- </arguments>
106
- </parameters>
107
- <finalize output="result">data.passportStatus=1
108
- data.money=data.money-60</finalize>
109
- <update output="result"/>
110
- </call>
111
- </alternative>
112
- <otherwise/>
113
- </choose>
114
- <call id="a6" endpoint="timeout">
115
- <parameters>
116
- <label>"Check if visa is needed"</label>
117
- <method>:post</method>
118
- <arguments>
119
- <timeout>2</timeout>
120
- </arguments>
121
- </parameters>
122
- <finalize output="result">data.visaStatus=1</finalize>
123
- <update output="result"/>
124
- </call>
125
- <choose mode="exclusive">
126
- <alternative condition="data.passportStatus==1">
127
- <call id="a5" endpoint="timeout">
128
- <parameters>
129
- <label>Apply for visa</label>
130
- <method>:post</method>
131
- <arguments>
132
- <timeout>2</timeout>
133
- </arguments>
134
- </parameters>
135
- <finalize output="result">data.visaStatus=0
136
- data.money=data.money-110</finalize>
137
- <update output="result"/>
138
- </call>
139
- </alternative>
140
- <otherwise/>
141
- </choose>
142
- <call id="a10" endpoint="timeout">
143
- <parameters>
144
- <label>"Apply for \"Rot-Weiß-Rot\" card"</label>
145
- <method>:post</method>
146
- <arguments>
147
- <timeout>2</timeout>
148
- </arguments>
149
- </parameters>
150
- <finalize output="result">data.money=data.money-200</finalize>
151
- <update output="result"/>
152
- </call>
153
- <parallel wait="-1">
154
- <parallel_branch>
155
- <call id="a12" endpoint="timeout">
156
- <parameters>
157
- <label>"Organise bank account"</label>
158
- <method>:post</method>
159
- <arguments>
160
- <timeout>2</timeout>
161
- </arguments>
162
- </parameters>
163
- <finalize output="result">data.money=data.money+100</finalize>
164
- <update output="result"/>
165
- </call>
166
- </parallel_branch>
167
- <parallel_branch>
168
- <call id="a13" endpoint="timeout">
169
- <parameters>
170
- <label>"Organise accomodation"</label>
171
- <method>:post</method>
172
- <arguments>
173
- <timeout>2</timeout>
174
- </arguments>
175
- </parameters>
176
- <finalize output="result">data.adress="Sonnenallee 51/1/16"</finalize>
177
- <update output="result"/>
178
- </call>
179
- </parallel_branch>
180
- </parallel>
181
- <call id="a15" endpoint="timeout">
182
- <parameters>
183
- <label>"Enter Austria"</label>
184
- <method>:post</method>
185
- <arguments>
186
- <timeout>2</timeout>
187
- </arguments>
188
- </parameters>
189
- <finalize output="result">data.money=data.money-1000
190
- data.jobStatus=1</finalize>
191
- <update output="result"/>
192
- </call>
193
- <loop mode="pre_test" condition="data.jobStatus==0">
194
- <call id="a3" endpoint="timeout">
195
- <parameters>
196
- <label>Search for a job</label>
197
- <method>:post</method>
198
- <arguments>
199
- <timeout>2</timeout>
200
- </arguments>
201
- </parameters>
202
- <finalize output="result">data.jobStatus=1</finalize>
203
- <update output="result"/>
204
- </call>
205
- </loop>
206
- </description>
207
- </dslx>
208
- <status>
209
- <id>0</id>
210
- <message>undefined</message>
211
- </status>
212
- <description>
213
- <description xmlns="http://cpee.org/ns/description/1.0">
214
- <call id="a1" endpoint="timeout">
215
- <parameters>
216
- <label>"Save money for living expenses in Austria"</label>
217
- <method>:post</method>
218
- <arguments>
219
- <timeout>2</timeout>
220
- </arguments>
221
- </parameters>
222
- <finalize output="result">data.money=10000
223
- </finalize>
224
- <update output="result"/>
225
- </call>
226
- <call id="a2" endpoint="timeout">
227
- <parameters>
228
- <label>"Check if passport still valid"</label>
229
- <method>:post</method>
230
- <arguments>
231
- <timeout>2</timeout>
232
- </arguments>
233
- </parameters>
234
- <finalize output="result">data.passportStatus=0
235
- </finalize>
236
- <update output="result"/>
237
- </call>
238
- <choose mode="exclusive">
239
- <alternative condition="data.passportStatus==0">
240
- <call id="a4" endpoint="timeout">
241
- <parameters>
242
- <label>Renew passport</label>
243
- <method>:post</method>
244
- <arguments>
245
- <timeout>2</timeout>
246
- </arguments>
247
- </parameters>
248
- <finalize output="result">data.passportStatus=1
249
- data.money=data.money-60</finalize>
250
- <update output="result"/>
251
- </call>
252
- </alternative>
253
- <otherwise/>
254
- </choose>
255
- <call id="a6" endpoint="timeout">
256
- <parameters>
257
- <label>"Check if visa is needed"</label>
258
- <method>:post</method>
259
- <arguments>
260
- <timeout>2</timeout>
261
- </arguments>
262
- </parameters>
263
- <finalize output="result">data.visaStatus=1</finalize>
264
- <update output="result"/>
265
- </call>
266
- <choose mode="exclusive">
267
- <alternative condition="data.passportStatus==1">
268
- <call id="a5" endpoint="timeout">
269
- <parameters>
270
- <label>Apply for visa</label>
271
- <method>:post</method>
272
- <arguments>
273
- <timeout>2</timeout>
274
- </arguments>
275
- </parameters>
276
- <finalize output="result">data.visaStatus=0
277
- data.money=data.money-110</finalize>
278
- <update output="result"/>
279
- </call>
280
- </alternative>
281
- <otherwise/>
282
- </choose>
283
- <call id="a10" endpoint="timeout">
284
- <parameters>
285
- <label>"Apply for \"Rot-Weiß-Rot\" card"</label>
286
- <method>:post</method>
287
- <arguments>
288
- <timeout>2</timeout>
289
- </arguments>
290
- </parameters>
291
- <finalize output="result">data.money=data.money-200</finalize>
292
- <update output="result"/>
293
- </call>
294
- <parallel wait="-1">
295
- <parallel_branch>
296
- <call id="a12" endpoint="timeout">
297
- <parameters>
298
- <label>"Organise bank account"</label>
299
- <method>:post</method>
300
- <arguments>
301
- <timeout>2</timeout>
302
- </arguments>
303
- </parameters>
304
- <finalize output="result">data.money=data.money+100</finalize>
305
- <update output="result"/>
306
- </call>
307
- </parallel_branch>
308
- <parallel_branch>
309
- <call id="a13" endpoint="timeout">
310
- <parameters>
311
- <label>"Organise accomodation"</label>
312
- <method>:post</method>
313
- <arguments>
314
- <timeout>2</timeout>
315
- </arguments>
316
- </parameters>
317
- <finalize output="result">data.adress="Sonnenallee 51/1/16"</finalize>
318
- <update output="result"/>
319
- </call>
320
- </parallel_branch>
321
- </parallel>
322
- <call id="a15" endpoint="timeout">
323
- <parameters>
324
- <label>"Enter Austria"</label>
325
- <method>:post</method>
326
- <arguments>
327
- <timeout>2</timeout>
328
- </arguments>
329
- </parameters>
330
- <finalize output="result">data.money=data.money-1000
331
- data.jobStatus=1</finalize>
332
- <update output="result"/>
333
- </call>
334
- <loop mode="pre_test" condition="data.jobStatus==0">
335
- <call id="a3" endpoint="timeout">
336
- <parameters>
337
- <label>Search for a job</label>
338
- <method>:post</method>
339
- <arguments>
340
- <timeout>2</timeout>
341
- </arguments>
342
- </parameters>
343
- <finalize output="result">data.jobStatus=1</finalize>
344
- <update output="result"/>
345
- </call>
346
- </loop>
347
- </description>
348
- </description>
349
- <transformation>
350
- <description type="copy"/>
351
- <dataelements type="none"/>
352
- <endpoints type="none"/>
353
- </transformation>
354
- </properties>
@@ -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>