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,628 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>fda5e05d-6739-4062-a298-667b7b8a1508</uuid>
4
- <info>a01449849</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a18>after</a18>
12
- </positions>
13
- <dataelements>
14
- <credentials>HarryPotter</credentials>
15
- <password>HarryPotter</password>
16
- <product>Axe</product>
17
- <getproduct>Axe</getproduct>
18
- <prodcount>4</prodcount>
19
- <displaySC>["Axe"]</displaySC>
20
- </dataelements>
21
- <endpoints>
22
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
23
- </endpoints>
24
- <dsl>call :a2, :timeout, parameters: { :label =&gt; "\"Provide Login credentials\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
25
- data.credentials="HarryPotter";data.password="HarryPotter"
26
- END
27
- call :a3, :timeout, parameters: { :label =&gt; "\"Check logincredentials\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
28
- choose :exclusive do
29
- alternative test{data.credentials!="HarryPotter" &amp;&amp; data.password!="HarryPotter"} do
30
- call :a1, :timeout, parameters: { :label =&gt; "\"Abort shopping process\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
31
- end
32
- otherwise do
33
- call :a6, :timeout, parameters: { :label =&gt; "\"Select products\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
34
- data.product="Axe"
35
- END
36
- call :a32, :timeout, parameters: { :label =&gt; "\"Add product to shopping cart\"", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
37
- data.getproduct="Axe";data.prodcount=5
38
- END
39
- call :a15, :timeout, parameters: { :label =&gt; "\"Check availability of product\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
40
- choose :exclusive do
41
- alternative test{} do
42
- call :a9, :timeout, parameters: { :label =&gt; "\"Product could not be added to shopping cart\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
43
- end
44
- otherwise do
45
- call :a18, :timeout, parameters: { :label =&gt; "\"Add product to shopping cart\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
46
- data.displaySC=[data.product];data.prodcount=data.prodcount-1
47
- END
48
- end
49
- end
50
- call :a10, :timeout, parameters: { :label =&gt; "\"Check already selected products\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
51
- loop pre_test{data.prodcount&gt;0} do
52
- call :a6, :timeout, parameters: { :label =&gt; "\"Select products\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
53
- data.product="Axe"
54
- END
55
- call :a5, :timeout, parameters: { :label =&gt; "\"Add product to shopping cart\"", :method =&gt; :get, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
56
- data.getproduct="Axe";
57
- END
58
- call :a31, :timeout, parameters: { :label =&gt; "\"Check availability of product\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
59
- choose :exclusive do
60
- alternative test{} do
61
- call :a7, :timeout, parameters: { :label =&gt; "\"Product couldn't be add to shopping cart\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
62
- end
63
- otherwise do
64
- call :a30, :timeout, parameters: { :label =&gt; "\"Add product to shopping cart\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
65
- data.displaySC=data.displaySC.push(data.product);data.prodcount= data.prodcount-1
66
- END
67
- end
68
- end
69
- call :a10, :timeout, parameters: { :label =&gt; "\"Check already selected products\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
70
- end
71
- parallel :wait =&gt; -1 do
72
- parallel_branch do
73
- call :a13, :timeout, parameters: { :label =&gt; "\"Enter shipping address\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
74
- data.shippingaddress="SAddress"
75
- END
76
- choose :exclusive do
77
- alternative test{} do
78
- end
79
- otherwise do
80
- call :a12, :timeout, parameters: { :label =&gt; "\"Enter billing address\"", :method =&gt; :post, :arguments =&gt; nil }, finalize: &lt;&lt;-END
81
- data.billingaddress="BAddress"
82
- END
83
- end
84
- end
85
- end
86
- parallel_branch do
87
- call :a8, :timeout, parameters: { :label =&gt; "\"Enter and confirm payment data\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
88
- data.iban="AT1234";data.bic="1343";bankAcc="MyBankAcc"
89
- END
90
- call :a17, :timeout, parameters: { :label =&gt; "\"Send payment data\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
91
- call :a25, :timeout, parameters: { :label =&gt; "\"Wait for confirmation\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
92
- end
93
- end
94
- choose :exclusive do
95
- alternative test{} do
96
- call :a4, :timeout, parameters: { :label =&gt; "\"Abort shoppingprocess\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
97
- end
98
- otherwise do
99
- call :a23, :timeout, parameters: { :label =&gt; "\"Send confirmation of order to customer\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
100
- end
101
- end
102
- end
103
- end
104
- </dsl>
105
- <dslx>
106
- <description xmlns="http://cpee.org/ns/description/1.0">
107
- <call id="a2" endpoint="timeout">
108
- <parameters>
109
- <label>"Provide Login credentials"</label>
110
- <method>:post</method>
111
- <arguments>
112
- <timeout>2</timeout>
113
- </arguments>
114
- </parameters>
115
- <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
116
- <update output="result"/>
117
- </call>
118
- <call id="a3" endpoint="timeout">
119
- <parameters>
120
- <label>"Check logincredentials"</label>
121
- <method>:post</method>
122
- <arguments>
123
- <timeout>2</timeout>
124
- </arguments>
125
- </parameters>
126
- </call>
127
- <choose mode="exclusive">
128
- <alternative condition="data.credentials!=&quot;HarryPotter&quot; &amp;&amp; data.password!=&quot;HarryPotter&quot;">
129
- <call id="a1" endpoint="timeout">
130
- <parameters>
131
- <label>"Abort shopping process"</label>
132
- <method>:post</method>
133
- <arguments>
134
- <timeout>2</timeout>
135
- </arguments>
136
- </parameters>
137
- </call>
138
- </alternative>
139
- <otherwise>
140
- <call id="a6" endpoint="timeout">
141
- <parameters>
142
- <label>"Select products"</label>
143
- <method>:post</method>
144
- <arguments>
145
- <timeout>2</timeout>
146
- </arguments>
147
- </parameters>
148
- <finalize output="result">data.product="Axe"</finalize>
149
- <update output="result"/>
150
- </call>
151
- <call id="a32" endpoint="timeout">
152
- <parameters>
153
- <label>"Add product to shopping cart"</label>
154
- <method>:get</method>
155
- <arguments>
156
- <timeout>2</timeout>
157
- </arguments>
158
- </parameters>
159
- <finalize output="result">data.getproduct="Axe";data.prodcount=5</finalize>
160
- <update output="result"/>
161
- </call>
162
- <call id="a15" endpoint="timeout">
163
- <parameters>
164
- <label>"Check availability of product"</label>
165
- <method>:post</method>
166
- <arguments>
167
- <timeout>2</timeout>
168
- </arguments>
169
- </parameters>
170
- </call>
171
- <choose mode="exclusive">
172
- <alternative condition="">
173
- <call id="a9" endpoint="timeout">
174
- <parameters>
175
- <label>"Product could not be added to shopping cart"</label>
176
- <method>:post</method>
177
- <arguments>
178
- <timeout>2</timeout>
179
- </arguments>
180
- </parameters>
181
- </call>
182
- </alternative>
183
- <otherwise>
184
- <call id="a18" endpoint="timeout">
185
- <parameters>
186
- <label>"Add product to shopping cart"</label>
187
- <method>:post</method>
188
- <arguments>
189
- <timeout>2</timeout>
190
- </arguments>
191
- </parameters>
192
- <finalize output="result">data.displaySC=[data.product];data.prodcount=data.prodcount-1</finalize>
193
- <update output="result"/>
194
- </call>
195
- </otherwise>
196
- </choose>
197
- <call id="a10" endpoint="timeout">
198
- <parameters>
199
- <label>"Check already selected products"</label>
200
- <method>:post</method>
201
- <arguments>
202
- <timeout>2</timeout>
203
- </arguments>
204
- </parameters>
205
- </call>
206
- <loop mode="pre_test" condition="data.prodcount&gt;0">
207
- <call id="a6" endpoint="timeout">
208
- <parameters>
209
- <label>"Select products"</label>
210
- <method>:post</method>
211
- <arguments>
212
- <timeout>2</timeout>
213
- </arguments>
214
- </parameters>
215
- <finalize output="result">data.product="Axe"</finalize>
216
- <update output="result"/>
217
- </call>
218
- <call id="a5" endpoint="timeout">
219
- <parameters>
220
- <label>"Add product to shopping cart"</label>
221
- <method>:get</method>
222
- <arguments>
223
- <timeout>2</timeout>
224
- </arguments>
225
- </parameters>
226
- <finalize output="result">data.getproduct="Axe";</finalize>
227
- <update output="result"/>
228
- </call>
229
- <call id="a31" endpoint="timeout">
230
- <parameters>
231
- <label>"Check availability of product"</label>
232
- <method>:post</method>
233
- <arguments>
234
- <timeout>2</timeout>
235
- </arguments>
236
- </parameters>
237
- </call>
238
- <choose mode="exclusive">
239
- <alternative condition="">
240
- <call id="a7" endpoint="timeout">
241
- <parameters>
242
- <label>"Product couldn't be add to shopping cart"</label>
243
- <method>:post</method>
244
- <arguments>
245
- <timeout>2</timeout>
246
- </arguments>
247
- </parameters>
248
- </call>
249
- </alternative>
250
- <otherwise>
251
- <call id="a30" endpoint="timeout">
252
- <parameters>
253
- <label>"Add product to shopping cart"</label>
254
- <method>:post</method>
255
- <arguments>
256
- <timeout>2</timeout>
257
- </arguments>
258
- </parameters>
259
- <finalize output="result">data.displaySC=data.displaySC.push(data.product);data.prodcount= data.prodcount-1</finalize>
260
- <update output="result"/>
261
- </call>
262
- </otherwise>
263
- </choose>
264
- <call id="a10" endpoint="timeout">
265
- <parameters>
266
- <label>"Check already selected products"</label>
267
- <method>:post</method>
268
- <arguments>
269
- <timeout>2</timeout>
270
- </arguments>
271
- </parameters>
272
- </call>
273
- </loop>
274
- <parallel wait="-1">
275
- <parallel_branch>
276
- <call id="a13" endpoint="timeout">
277
- <parameters>
278
- <label>"Enter shipping address"</label>
279
- <method>:post</method>
280
- <arguments>
281
- <timeout>2</timeout>
282
- </arguments>
283
- </parameters>
284
- <finalize output="result">data.shippingaddress="SAddress"</finalize>
285
- <update output="result"/>
286
- </call>
287
- <choose mode="exclusive">
288
- <alternative condition=""/>
289
- <otherwise>
290
- <call id="a12" endpoint="timeout">
291
- <parameters>
292
- <label>"Enter billing address"</label>
293
- <method>:post</method>
294
- <arguments/>
295
- </parameters>
296
- <finalize output="result">data.billingaddress="BAddress"</finalize>
297
- <update output="result"/>
298
- </call>
299
- </otherwise>
300
- </choose>
301
- </parallel_branch>
302
- <parallel_branch>
303
- <call id="a8" endpoint="timeout">
304
- <parameters>
305
- <label>"Enter and confirm payment data"</label>
306
- <method>:post</method>
307
- <arguments>
308
- <timeout>2</timeout>
309
- </arguments>
310
- </parameters>
311
- <finalize output="result">data.iban="AT1234";data.bic="1343";bankAcc="MyBankAcc"</finalize>
312
- <update output="result"/>
313
- </call>
314
- <call id="a17" endpoint="timeout">
315
- <parameters>
316
- <label>"Send payment data"</label>
317
- <method>:post</method>
318
- <arguments>
319
- <timeout>2</timeout>
320
- </arguments>
321
- </parameters>
322
- </call>
323
- <call id="a25" endpoint="timeout">
324
- <parameters>
325
- <label>"Wait for confirmation"</label>
326
- <method>:post</method>
327
- <arguments>
328
- <timeout>2</timeout>
329
- </arguments>
330
- </parameters>
331
- </call>
332
- </parallel_branch>
333
- </parallel>
334
- <choose mode="exclusive">
335
- <alternative condition="">
336
- <call id="a4" endpoint="timeout">
337
- <parameters>
338
- <label>"Abort shoppingprocess"</label>
339
- <method>:post</method>
340
- <arguments>
341
- <timeout>2</timeout>
342
- </arguments>
343
- </parameters>
344
- </call>
345
- </alternative>
346
- <otherwise>
347
- <call id="a23" endpoint="timeout">
348
- <parameters>
349
- <label>"Send confirmation of order to customer"</label>
350
- <method>:post</method>
351
- <arguments>
352
- <timeout>2</timeout>
353
- </arguments>
354
- </parameters>
355
- </call>
356
- </otherwise>
357
- </choose>
358
- </otherwise>
359
- </choose>
360
- </description>
361
- </dslx>
362
- <status>
363
- <id>0</id>
364
- <message>undefined</message>
365
- </status>
366
- <description>
367
- <description xmlns="http://cpee.org/ns/description/1.0">
368
- <call id="a2" endpoint="timeout">
369
- <parameters>
370
- <label>"Provide Login credentials"</label>
371
- <method>:post</method>
372
- <arguments>
373
- <timeout>2</timeout>
374
- </arguments>
375
- </parameters>
376
- <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
377
- <update output="result"/>
378
- </call>
379
- <call id="a3" endpoint="timeout">
380
- <parameters>
381
- <label>"Check logincredentials"</label>
382
- <method>:post</method>
383
- <arguments>
384
- <timeout>2</timeout>
385
- </arguments>
386
- </parameters>
387
- </call>
388
- <choose mode="exclusive">
389
- <alternative condition="data.credentials!=&quot;HarryPotter&quot; &amp;&amp; data.password!=&quot;HarryPotter&quot;">
390
- <call id="a1" endpoint="timeout">
391
- <parameters>
392
- <label>"Abort shopping process"</label>
393
- <method>:post</method>
394
- <arguments>
395
- <timeout>2</timeout>
396
- </arguments>
397
- </parameters>
398
- </call>
399
- </alternative>
400
- <otherwise>
401
- <call id="a6" endpoint="timeout">
402
- <parameters>
403
- <label>"Select products"</label>
404
- <method>:post</method>
405
- <arguments>
406
- <timeout>2</timeout>
407
- </arguments>
408
- </parameters>
409
- <finalize output="result">data.product="Axe"</finalize>
410
- <update output="result"/>
411
- </call>
412
- <call id="a32" endpoint="timeout">
413
- <parameters>
414
- <label>"Add product to shopping cart"</label>
415
- <method>:get</method>
416
- <arguments>
417
- <timeout>2</timeout>
418
- </arguments>
419
- </parameters>
420
- <finalize output="result">data.getproduct="Axe";data.prodcount=5</finalize>
421
- <update output="result"/>
422
- </call>
423
- <call id="a15" endpoint="timeout">
424
- <parameters>
425
- <label>"Check availability of product"</label>
426
- <method>:post</method>
427
- <arguments>
428
- <timeout>2</timeout>
429
- </arguments>
430
- </parameters>
431
- </call>
432
- <choose mode="exclusive">
433
- <alternative condition="">
434
- <call id="a9" endpoint="timeout">
435
- <parameters>
436
- <label>"Product could not be added to shopping cart"</label>
437
- <method>:post</method>
438
- <arguments>
439
- <timeout>2</timeout>
440
- </arguments>
441
- </parameters>
442
- </call>
443
- </alternative>
444
- <otherwise>
445
- <call id="a18" endpoint="timeout">
446
- <parameters>
447
- <label>"Add product to shopping cart"</label>
448
- <method>:post</method>
449
- <arguments>
450
- <timeout>2</timeout>
451
- </arguments>
452
- </parameters>
453
- <finalize output="result">data.displaySC=[data.product];data.prodcount=data.prodcount-1</finalize>
454
- <update output="result"/>
455
- </call>
456
- </otherwise>
457
- </choose>
458
- <call id="a10" endpoint="timeout">
459
- <parameters>
460
- <label>"Check already selected products"</label>
461
- <method>:post</method>
462
- <arguments>
463
- <timeout>2</timeout>
464
- </arguments>
465
- </parameters>
466
- </call>
467
- <loop mode="pre_test" condition="data.prodcount&gt;0">
468
- <call id="a6" endpoint="timeout">
469
- <parameters>
470
- <label>"Select products"</label>
471
- <method>:post</method>
472
- <arguments>
473
- <timeout>2</timeout>
474
- </arguments>
475
- </parameters>
476
- <finalize output="result">data.product="Axe"</finalize>
477
- <update output="result"/>
478
- </call>
479
- <call id="a5" endpoint="timeout">
480
- <parameters>
481
- <label>"Add product to shopping cart"</label>
482
- <method>:get</method>
483
- <arguments>
484
- <timeout>2</timeout>
485
- </arguments>
486
- </parameters>
487
- <finalize output="result">data.getproduct="Axe";</finalize>
488
- <update output="result"/>
489
- </call>
490
- <call id="a31" endpoint="timeout">
491
- <parameters>
492
- <label>"Check availability of product"</label>
493
- <method>:post</method>
494
- <arguments>
495
- <timeout>2</timeout>
496
- </arguments>
497
- </parameters>
498
- </call>
499
- <choose mode="exclusive">
500
- <alternative condition="">
501
- <call id="a7" endpoint="timeout">
502
- <parameters>
503
- <label>"Product couldn't be add to shopping cart"</label>
504
- <method>:post</method>
505
- <arguments>
506
- <timeout>2</timeout>
507
- </arguments>
508
- </parameters>
509
- </call>
510
- </alternative>
511
- <otherwise>
512
- <call id="a30" endpoint="timeout">
513
- <parameters>
514
- <label>"Add product to shopping cart"</label>
515
- <method>:post</method>
516
- <arguments>
517
- <timeout>2</timeout>
518
- </arguments>
519
- </parameters>
520
- <finalize output="result">data.displaySC=data.displaySC.push(data.product);data.prodcount= data.prodcount-1</finalize>
521
- <update output="result"/>
522
- </call>
523
- </otherwise>
524
- </choose>
525
- <call id="a10" endpoint="timeout">
526
- <parameters>
527
- <label>"Check already selected products"</label>
528
- <method>:post</method>
529
- <arguments>
530
- <timeout>2</timeout>
531
- </arguments>
532
- </parameters>
533
- </call>
534
- </loop>
535
- <parallel wait="-1">
536
- <parallel_branch>
537
- <call id="a13" endpoint="timeout">
538
- <parameters>
539
- <label>"Enter shipping address"</label>
540
- <method>:post</method>
541
- <arguments>
542
- <timeout>2</timeout>
543
- </arguments>
544
- </parameters>
545
- <finalize output="result">data.shippingaddress="SAddress"</finalize>
546
- <update output="result"/>
547
- </call>
548
- <choose mode="exclusive">
549
- <alternative condition=""/>
550
- <otherwise>
551
- <call id="a12" endpoint="timeout">
552
- <parameters>
553
- <label>"Enter billing address"</label>
554
- <method>:post</method>
555
- <arguments/>
556
- </parameters>
557
- <finalize output="result">data.billingaddress="BAddress"</finalize>
558
- <update output="result"/>
559
- </call>
560
- </otherwise>
561
- </choose>
562
- </parallel_branch>
563
- <parallel_branch>
564
- <call id="a8" endpoint="timeout">
565
- <parameters>
566
- <label>"Enter and confirm payment data"</label>
567
- <method>:post</method>
568
- <arguments>
569
- <timeout>2</timeout>
570
- </arguments>
571
- </parameters>
572
- <finalize output="result">data.iban="AT1234";data.bic="1343";bankAcc="MyBankAcc"</finalize>
573
- <update output="result"/>
574
- </call>
575
- <call id="a17" endpoint="timeout">
576
- <parameters>
577
- <label>"Send payment data"</label>
578
- <method>:post</method>
579
- <arguments>
580
- <timeout>2</timeout>
581
- </arguments>
582
- </parameters>
583
- </call>
584
- <call id="a25" endpoint="timeout">
585
- <parameters>
586
- <label>"Wait for confirmation"</label>
587
- <method>:post</method>
588
- <arguments>
589
- <timeout>2</timeout>
590
- </arguments>
591
- </parameters>
592
- </call>
593
- </parallel_branch>
594
- </parallel>
595
- <choose mode="exclusive">
596
- <alternative condition="">
597
- <call id="a4" endpoint="timeout">
598
- <parameters>
599
- <label>"Abort shoppingprocess"</label>
600
- <method>:post</method>
601
- <arguments>
602
- <timeout>2</timeout>
603
- </arguments>
604
- </parameters>
605
- </call>
606
- </alternative>
607
- <otherwise>
608
- <call id="a23" endpoint="timeout">
609
- <parameters>
610
- <label>"Send confirmation of order to customer"</label>
611
- <method>:post</method>
612
- <arguments>
613
- <timeout>2</timeout>
614
- </arguments>
615
- </parameters>
616
- </call>
617
- </otherwise>
618
- </choose>
619
- </otherwise>
620
- </choose>
621
- </description>
622
- </description>
623
- <transformation>
624
- <description type="copy"/>
625
- <dataelements type="none"/>
626
- <endpoints type="none"/>
627
- </transformation>
628
- </properties>