cpee 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +41 -7
  4. data/lib/cpee/handler_properties.rb +9 -9
  5. data/lib/cpee/instantiation.rb +12 -6
  6. data/lib/instantiation.xml +1 -0
  7. data/log/elasticsearch.rb +120 -0
  8. data/log/logs/1/test +1 -0
  9. data/log/xes_yaml.rb +3 -20
  10. data/server/handlerwrappers/default.rb +10 -10
  11. data/server/instances/1/properties.xml +34 -122
  12. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +1 -0
  13. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +1 -0
  14. data/server/instances/{76/notifications/a59df784fab648f5327915fc6cf012ab → 10/notifications/182434032285ca1d06a8b6554b8889c8}/subscription.xml +6 -21
  15. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +1 -0
  16. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +1 -0
  17. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +6 -0
  18. data/server/instances/10/properties.xml +141 -127
  19. data/server/instances/11/properties.xml +162 -179
  20. data/server/instances/12/properties.xml +163 -87
  21. data/server/instances/13/properties.xml +131 -2002
  22. data/server/instances/14/properties.xml +9 -2044
  23. data/server/instances/15/properties.xml +8 -2039
  24. data/server/instances/16/properties.xml +8 -2069
  25. data/server/instances/17/properties.xml +11 -2065
  26. data/server/instances/18/properties.xml +10 -2109
  27. data/server/instances/19/properties.xml +5 -90
  28. data/server/instances/2/properties.xml +10 -135
  29. data/server/instances/20/properties.xml +169 -9
  30. data/server/instances/21/properties.xml +122 -82
  31. data/server/instances/22/properties.xml +53 -2042
  32. data/server/instances/23/properties.xml +75 -68
  33. data/server/instances/24/properties.xml +82 -2033
  34. data/server/instances/25/properties.xml +121 -37
  35. data/server/instances/26/properties.xml +9 -9
  36. data/server/instances/27/properties.xml +48 -2044
  37. data/server/instances/28/properties.xml +83 -2058
  38. data/server/instances/29/properties.xml +83 -2072
  39. data/server/instances/3/properties.xml +76 -211
  40. data/server/instances/30/properties.xml +293 -112
  41. data/server/instances/31/properties.xml +332 -9
  42. data/server/instances/313/notifications/crisp/consumer-secret +1 -0
  43. data/server/instances/313/notifications/crisp/producer-secret +1 -0
  44. data/server/instances/313/notifications/crisp/subscription.xml +7 -0
  45. data/server/instances/313/notifications/logging/consumer-secret +1 -0
  46. data/server/instances/313/notifications/logging/producer-secret +1 -0
  47. data/server/instances/313/notifications/logging/subscription.xml +7 -0
  48. data/server/instances/313/notifications/logging_yaml/consumer-secret +1 -0
  49. data/server/instances/313/notifications/logging_yaml/producer-secret +1 -0
  50. data/server/instances/313/notifications/logging_yaml/subscription.xml +7 -0
  51. data/server/instances/313/properties.xml +524 -0
  52. data/server/instances/32/properties.xml +582 -65
  53. data/server/instances/33/properties.xml +113 -99
  54. data/server/instances/4/properties.xml +92 -9
  55. data/server/instances/5/properties.xml +49 -1505
  56. data/server/instances/6/properties.xml +186 -11
  57. data/server/instances/662/notifications/crisp/consumer-secret +1 -0
  58. data/server/instances/662/notifications/crisp/producer-secret +1 -0
  59. data/server/instances/662/notifications/crisp/subscription.xml +7 -0
  60. data/server/instances/662/notifications/logging/consumer-secret +1 -0
  61. data/server/instances/662/notifications/logging/producer-secret +1 -0
  62. data/server/instances/662/notifications/logging/subscription.xml +7 -0
  63. data/server/instances/662/notifications/logging_yaml/consumer-secret +1 -0
  64. data/server/instances/662/notifications/logging_yaml/producer-secret +1 -0
  65. data/server/instances/662/notifications/logging_yaml/subscription.xml +7 -0
  66. data/server/instances/662/properties.xml +427 -0
  67. data/server/instances/{46 → 663}/properties.xml +1 -1
  68. data/server/instances/664/properties.xml +425 -0
  69. data/server/instances/665/properties.xml +425 -0
  70. data/server/instances/666/properties.xml +427 -0
  71. data/server/instances/667/properties.xml +427 -0
  72. data/server/instances/668/properties.xml +425 -0
  73. data/server/instances/669/properties.xml +425 -0
  74. data/server/instances/670/properties.xml +31 -0
  75. data/server/instances/{75 → 671}/properties.xml +12 -12
  76. data/server/instances/672/properties.xml +199 -0
  77. data/server/instances/673/properties.xml +52 -0
  78. data/server/instances/7/properties.xml +82 -1691
  79. data/server/instances/8/properties.xml +53 -1738
  80. data/server/instances/9/properties.xml +95 -680
  81. metadata +42 -52
  82. data/server/instances/34/properties.xml +0 -183
  83. data/server/instances/35/properties.xml +0 -183
  84. data/server/instances/36/properties.xml +0 -185
  85. data/server/instances/37/properties.xml +0 -183
  86. data/server/instances/38/properties.xml +0 -183
  87. data/server/instances/39/properties.xml +0 -183
  88. data/server/instances/40/properties.xml +0 -183
  89. data/server/instances/41/properties.xml +0 -183
  90. data/server/instances/42/properties.xml +0 -183
  91. data/server/instances/43/properties.xml +0 -183
  92. data/server/instances/44/properties.xml +0 -183
  93. data/server/instances/45/properties.xml +0 -185
  94. data/server/instances/47/properties.xml +0 -185
  95. data/server/instances/48/properties.xml +0 -185
  96. data/server/instances/49/properties.xml +0 -185
  97. data/server/instances/50/properties.xml +0 -183
  98. data/server/instances/51/properties.xml +0 -183
  99. data/server/instances/52/properties.xml +0 -2129
  100. data/server/instances/53/properties.xml +0 -2129
  101. data/server/instances/54/properties.xml +0 -319
  102. data/server/instances/55/properties.xml +0 -2114
  103. data/server/instances/56/properties.xml +0 -2114
  104. data/server/instances/57/properties.xml +0 -2119
  105. data/server/instances/58/properties.xml +0 -2119
  106. data/server/instances/59/properties.xml +0 -2119
  107. data/server/instances/60/properties.xml +0 -2119
  108. data/server/instances/61/properties.xml +0 -2114
  109. data/server/instances/62/properties.xml +0 -2116
  110. data/server/instances/63/properties.xml +0 -2116
  111. data/server/instances/64/properties.xml +0 -2116
  112. data/server/instances/65/properties.xml +0 -76
  113. data/server/instances/66/properties.xml +0 -97
  114. data/server/instances/67/properties.xml +0 -184
  115. data/server/instances/68/properties.xml +0 -158
  116. data/server/instances/69/properties.xml +0 -156
  117. data/server/instances/70/properties.xml +0 -156
  118. data/server/instances/71/properties.xml +0 -156
  119. data/server/instances/72/properties.xml +0 -156
  120. data/server/instances/73/properties.xml +0 -156
  121. data/server/instances/74/properties.xml +0 -156
  122. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/consumer-secret +0 -1
  123. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/producer-secret +0 -1
  124. data/server/instances/76/properties.xml +0 -156
  125. data/server/resources/base.xml +0 -78
  126. data/server/resources/test.rb +0 -19
  127. data/server/resources/test.xml +0 -33
@@ -1,60 +1,362 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <uuid>7b7fb303-ac44-4ed7-a200-a2b84397042f</uuid>
4
- <info>Plain Instance</info>
3
+ <uuid>fda5e05d-6739-4062-a298-667b7b8a1508</uuid>
4
+ <info>a01449849</info>
5
5
  <modeltype>CPEE</modeltype>
6
6
  <theme>default</theme>
7
7
  </attributes>
8
- <state>ready</state>
8
+ <state>stopped</state>
9
9
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements/>
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>
12
21
  <endpoints>
13
22
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
14
23
  </endpoints>
15
- <dsl>call :a1, nil, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; nil }
16
- call :a2, nil, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; nil }
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
17
104
  </dsl>
18
105
  <dslx>
19
106
  <description xmlns="http://cpee.org/ns/description/1.0">
20
- <call id="a1" endpoint="">
107
+ <call id="a2" endpoint="timeout">
21
108
  <parameters>
22
- <label/>
109
+ <label>"Provide Login credentials"</label>
23
110
  <method>:post</method>
24
- <arguments/>
111
+ <arguments>
112
+ <timeout>2</timeout>
113
+ </arguments>
25
114
  </parameters>
26
- <finalize output="result"/>
115
+ <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
27
116
  <update output="result"/>
28
- <_timing>
29
- <_timing_min/>
30
- <_timing_max/>
31
- <_timing_avg/>
32
- </_timing>
33
- <_notes>
34
- <_notes_general/>
35
- <_notes_output/>
36
- <_attachments/>
37
- </_notes>
38
117
  </call>
39
- <call id="a2" endpoint="">
118
+ <call id="a3" endpoint="timeout">
40
119
  <parameters>
41
- <label/>
120
+ <label>"Check logincredentials"</label>
42
121
  <method>:post</method>
43
- <arguments/>
122
+ <arguments>
123
+ <timeout>2</timeout>
124
+ </arguments>
44
125
  </parameters>
45
- <finalize output="result"/>
46
- <update output="result"/>
47
- <_timing>
48
- <_timing_min/>
49
- <_timing_max/>
50
- <_timing_avg/>
51
- </_timing>
52
- <_notes>
53
- <_notes_general/>
54
- <_notes_output/>
55
- <_attachments/>
56
- </_notes>
57
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>
58
360
  </description>
59
361
  </dslx>
60
362
  <status>
@@ -63,44 +365,259 @@ call :a2, nil, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&
63
365
  </status>
64
366
  <description>
65
367
  <description xmlns="http://cpee.org/ns/description/1.0">
66
- <call id="a1" endpoint="">
368
+ <call id="a2" endpoint="timeout">
67
369
  <parameters>
68
- <label/>
370
+ <label>"Provide Login credentials"</label>
69
371
  <method>:post</method>
70
- <arguments/>
372
+ <arguments>
373
+ <timeout>2</timeout>
374
+ </arguments>
71
375
  </parameters>
72
- <finalize output="result"/>
376
+ <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
73
377
  <update output="result"/>
74
- <_timing>
75
- <_timing_min/>
76
- <_timing_max/>
77
- <_timing_avg/>
78
- </_timing>
79
- <_notes>
80
- <_notes_general/>
81
- <_notes_output/>
82
- <_attachments/>
83
- </_notes>
84
378
  </call>
85
- <call id="a2" endpoint="">
379
+ <call id="a3" endpoint="timeout">
86
380
  <parameters>
87
- <label/>
381
+ <label>"Check logincredentials"</label>
88
382
  <method>:post</method>
89
- <arguments/>
383
+ <arguments>
384
+ <timeout>2</timeout>
385
+ </arguments>
90
386
  </parameters>
91
- <finalize output="result"/>
92
- <update output="result"/>
93
- <_timing>
94
- <_timing_min/>
95
- <_timing_max/>
96
- <_timing_avg/>
97
- </_timing>
98
- <_notes>
99
- <_notes_general/>
100
- <_notes_output/>
101
- <_attachments/>
102
- </_notes>
103
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>
104
621
  </description>
105
622
  </description>
106
623
  <transformation>