cpee 1.4.1 → 1.4.2

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 (114) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +7 -16
  4. data/lib/cpee/implementation.rb +1 -1
  5. data/server/handlerwrappers/default.rb +12 -1
  6. data/server/instances/1/properties.xml +122 -34
  7. data/server/instances/10/properties.xml +127 -141
  8. data/server/instances/11/properties.xml +179 -162
  9. data/server/instances/12/properties.xml +87 -163
  10. data/server/instances/13/properties.xml +2002 -131
  11. data/server/instances/14/properties.xml +2044 -9
  12. data/server/instances/15/properties.xml +2039 -8
  13. data/server/instances/16/properties.xml +2069 -8
  14. data/server/instances/17/properties.xml +2065 -11
  15. data/server/instances/18/properties.xml +2109 -10
  16. data/server/instances/19/properties.xml +90 -5
  17. data/server/instances/2/properties.xml +135 -10
  18. data/server/instances/20/properties.xml +9 -169
  19. data/server/instances/21/properties.xml +82 -122
  20. data/server/instances/22/properties.xml +2042 -53
  21. data/server/instances/23/properties.xml +68 -75
  22. data/server/instances/24/properties.xml +2033 -82
  23. data/server/instances/25/properties.xml +37 -121
  24. data/server/instances/26/properties.xml +9 -9
  25. data/server/instances/27/properties.xml +2044 -48
  26. data/server/instances/28/properties.xml +2058 -83
  27. data/server/instances/29/properties.xml +2072 -83
  28. data/server/instances/3/properties.xml +211 -76
  29. data/server/instances/30/properties.xml +112 -293
  30. data/server/instances/31/properties.xml +9 -332
  31. data/server/instances/32/properties.xml +65 -582
  32. data/server/instances/33/properties.xml +99 -113
  33. data/server/instances/34/properties.xml +183 -0
  34. data/server/instances/35/properties.xml +183 -0
  35. data/server/instances/36/properties.xml +185 -0
  36. data/server/instances/37/properties.xml +183 -0
  37. data/server/instances/38/properties.xml +183 -0
  38. data/server/instances/39/properties.xml +183 -0
  39. data/server/instances/4/properties.xml +9 -92
  40. data/server/instances/40/properties.xml +183 -0
  41. data/server/instances/41/properties.xml +183 -0
  42. data/server/instances/42/properties.xml +183 -0
  43. data/server/instances/43/properties.xml +183 -0
  44. data/server/instances/44/properties.xml +183 -0
  45. data/server/instances/45/properties.xml +185 -0
  46. data/server/instances/{670 → 46}/properties.xml +1 -1
  47. data/server/instances/47/properties.xml +185 -0
  48. data/server/instances/48/properties.xml +185 -0
  49. data/server/instances/49/properties.xml +185 -0
  50. data/server/instances/5/properties.xml +1505 -49
  51. data/server/instances/50/properties.xml +183 -0
  52. data/server/instances/51/properties.xml +183 -0
  53. data/server/instances/52/properties.xml +2129 -0
  54. data/server/instances/53/properties.xml +2129 -0
  55. data/server/instances/54/properties.xml +319 -0
  56. data/server/instances/55/properties.xml +2114 -0
  57. data/server/instances/56/properties.xml +2114 -0
  58. data/server/instances/57/properties.xml +2119 -0
  59. data/server/instances/58/properties.xml +2119 -0
  60. data/server/instances/59/properties.xml +2119 -0
  61. data/server/instances/6/properties.xml +11 -186
  62. data/server/instances/60/properties.xml +2119 -0
  63. data/server/instances/61/properties.xml +2114 -0
  64. data/server/instances/62/properties.xml +2116 -0
  65. data/server/instances/63/properties.xml +2116 -0
  66. data/server/instances/64/properties.xml +2116 -0
  67. data/server/instances/65/properties.xml +76 -0
  68. data/server/instances/66/properties.xml +97 -0
  69. data/server/instances/7/properties.xml +1691 -82
  70. data/server/instances/8/properties.xml +1738 -53
  71. data/server/instances/9/properties.xml +680 -95
  72. data/server/resources/base.xml +78 -0
  73. data/server/resources/test.rb +19 -0
  74. data/server/resources/test.xml +33 -0
  75. data/server/server.pid +1 -0
  76. data/server/test.rb +3 -0
  77. metadata +41 -41
  78. data/log/logs/1/test +0 -1
  79. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +0 -1
  80. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +0 -1
  81. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +0 -23
  82. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +0 -1
  83. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +0 -1
  84. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +0 -6
  85. data/server/instances/313/notifications/crisp/consumer-secret +0 -1
  86. data/server/instances/313/notifications/crisp/producer-secret +0 -1
  87. data/server/instances/313/notifications/crisp/subscription.xml +0 -7
  88. data/server/instances/313/notifications/logging/consumer-secret +0 -1
  89. data/server/instances/313/notifications/logging/producer-secret +0 -1
  90. data/server/instances/313/notifications/logging/subscription.xml +0 -7
  91. data/server/instances/313/notifications/logging_yaml/consumer-secret +0 -1
  92. data/server/instances/313/notifications/logging_yaml/producer-secret +0 -1
  93. data/server/instances/313/notifications/logging_yaml/subscription.xml +0 -7
  94. data/server/instances/313/properties.xml +0 -524
  95. data/server/instances/662/notifications/crisp/consumer-secret +0 -1
  96. data/server/instances/662/notifications/crisp/producer-secret +0 -1
  97. data/server/instances/662/notifications/crisp/subscription.xml +0 -7
  98. data/server/instances/662/notifications/logging/consumer-secret +0 -1
  99. data/server/instances/662/notifications/logging/producer-secret +0 -1
  100. data/server/instances/662/notifications/logging/subscription.xml +0 -7
  101. data/server/instances/662/notifications/logging_yaml/consumer-secret +0 -1
  102. data/server/instances/662/notifications/logging_yaml/producer-secret +0 -1
  103. data/server/instances/662/notifications/logging_yaml/subscription.xml +0 -7
  104. data/server/instances/662/properties.xml +0 -427
  105. data/server/instances/663/properties.xml +0 -31
  106. data/server/instances/664/properties.xml +0 -425
  107. data/server/instances/665/properties.xml +0 -425
  108. data/server/instances/666/properties.xml +0 -427
  109. data/server/instances/667/properties.xml +0 -427
  110. data/server/instances/668/properties.xml +0 -425
  111. data/server/instances/669/properties.xml +0 -425
  112. data/server/instances/671/properties.xml +0 -158
  113. data/server/instances/672/properties.xml +0 -199
  114. data/server/instances/673/properties.xml +0 -52
@@ -1,350 +1,27 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <uuid>c25bd9e6-a5b5-44b3-a375-87e40d87f985</uuid>
4
- <info>a1200993</info>
5
- <modeltype>Signavio</modeltype>
6
- <theme>labels</theme>
3
+ <uuid>fb147237-0639-4a54-a15c-40404431373c</uuid>
4
+ <info/>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
7
  </attributes>
8
- <state>finished</state>
8
+ <state>ready</state>
9
9
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
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>
11
+ <dataelements/>
18
12
  <endpoints>
19
13
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
20
14
  </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>
15
+ <dsl/>
71
16
  <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>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
207
18
  </dslx>
208
19
  <status>
209
20
  <id>0</id>
210
21
  <message>undefined</message>
211
22
  </status>
212
23
  <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>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
348
25
  </description>
349
26
  <transformation>
350
27
  <description type="copy"/>
@@ -1,362 +1,60 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <uuid>fda5e05d-6739-4062-a298-667b7b8a1508</uuid>
4
- <info>a01449849</info>
3
+ <uuid>7b7fb303-ac44-4ed7-a200-a2b84397042f</uuid>
4
+ <info>Plain Instance</info>
5
5
  <modeltype>CPEE</modeltype>
6
6
  <theme>default</theme>
7
7
  </attributes>
8
- <state>stopped</state>
8
+ <state>ready</state>
9
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>
10
+ <positions/>
11
+ <dataelements/>
21
12
  <endpoints>
22
13
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
23
14
  </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
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 }
104
17
  </dsl>
105
18
  <dslx>
106
19
  <description xmlns="http://cpee.org/ns/description/1.0">
107
- <call id="a2" endpoint="timeout">
20
+ <call id="a1" endpoint="">
108
21
  <parameters>
109
- <label>"Provide Login credentials"</label>
22
+ <label/>
110
23
  <method>:post</method>
111
- <arguments>
112
- <timeout>2</timeout>
113
- </arguments>
24
+ <arguments/>
114
25
  </parameters>
115
- <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
26
+ <finalize output="result"/>
116
27
  <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>
117
38
  </call>
118
- <call id="a3" endpoint="timeout">
39
+ <call id="a2" endpoint="">
119
40
  <parameters>
120
- <label>"Check logincredentials"</label>
41
+ <label/>
121
42
  <method>:post</method>
122
- <arguments>
123
- <timeout>2</timeout>
124
- </arguments>
43
+ <arguments/>
125
44
  </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>
126
57
  </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
58
  </description>
361
59
  </dslx>
362
60
  <status>
@@ -365,259 +63,44 @@ end
365
63
  </status>
366
64
  <description>
367
65
  <description xmlns="http://cpee.org/ns/description/1.0">
368
- <call id="a2" endpoint="timeout">
66
+ <call id="a1" endpoint="">
369
67
  <parameters>
370
- <label>"Provide Login credentials"</label>
68
+ <label/>
371
69
  <method>:post</method>
372
- <arguments>
373
- <timeout>2</timeout>
374
- </arguments>
70
+ <arguments/>
375
71
  </parameters>
376
- <finalize output="result">data.credentials="HarryPotter";data.password="HarryPotter"</finalize>
72
+ <finalize output="result"/>
377
73
  <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>
378
84
  </call>
379
- <call id="a3" endpoint="timeout">
85
+ <call id="a2" endpoint="">
380
86
  <parameters>
381
- <label>"Check logincredentials"</label>
87
+ <label/>
382
88
  <method>:post</method>
383
- <arguments>
384
- <timeout>2</timeout>
385
- </arguments>
89
+ <arguments/>
386
90
  </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>
387
103
  </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
104
  </description>
622
105
  </description>
623
106
  <transformation>