cpee 1.3.215 → 1.3.216

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.
@@ -0,0 +1,354 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>c25bd9e6-a5b5-44b3-a375-87e40d87f985</uuid>
4
+ <info>a1200993</info>
5
+ <modeltype>Signavio</modeltype>
6
+ <theme>labels</theme>
7
+ </attributes>
8
+ <state>finished</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <passportStatus>0</passportStatus>
13
+ <visaStatus>0</visaStatus>
14
+ <jobStatus>0</jobStatus>
15
+ <money>0</money>
16
+ <adress>null</adress>
17
+ </dataelements>
18
+ <endpoints>
19
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
20
+ </endpoints>
21
+ <dsl>call :a1, :timeout, parameters: { :label =&gt; "\"Save money for living expenses in Austria\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
22
+ data.money=10000
23
+ END
24
+ call :a2, :timeout, parameters: { :label =&gt; "\"Check if passport still valid\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
25
+ data.passportStatus=0
26
+ END
27
+ choose :exclusive do
28
+ alternative "data.passportStatus==0" do
29
+ call :a4, :timeout, parameters: { :label =&gt; "Renew passport", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
30
+ data.passportStatus=1
31
+ data.money=data.money-60
32
+ END
33
+ end
34
+ end
35
+ call :a6, :timeout, parameters: { :label =&gt; "\"Check if visa is needed\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
36
+ data.visaStatus=1
37
+ END
38
+ choose :exclusive do
39
+ alternative "data.passportStatus==1" do
40
+ call :a5, :timeout, parameters: { :label =&gt; "Apply for visa", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
41
+ data.visaStatus=0
42
+ data.money=data.money-110
43
+ END
44
+ end
45
+ end
46
+ call :a10, :timeout, parameters: { :label =&gt; "\"Apply for \\"Rot-Weiß-Rot\\" card\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
47
+ data.money=data.money-200
48
+ END
49
+ parallel :wait =&gt; -1 do
50
+ parallel_branch do
51
+ call :a12, :timeout, parameters: { :label =&gt; "\"Organise bank account\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
52
+ data.money=data.money+100
53
+ END
54
+ end
55
+ parallel_branch do
56
+ call :a13, :timeout, parameters: { :label =&gt; "\"Organise accomodation\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
57
+ data.adress="Sonnenallee 51/1/16"
58
+ END
59
+ end
60
+ end
61
+ call :a15, :timeout, parameters: { :label =&gt; "\"Enter Austria\"", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
62
+ data.money=data.money-1000
63
+ data.jobStatus=1
64
+ END
65
+ loop pre_test{data.jobStatus==0} do
66
+ call :a3, :timeout, parameters: { :label =&gt; "Search for a job", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
67
+ data.jobStatus=1
68
+ END
69
+ end
70
+ </dsl>
71
+ <dslx>
72
+ <description xmlns="http://cpee.org/ns/description/1.0">
73
+ <call id="a1" endpoint="timeout">
74
+ <parameters>
75
+ <label>"Save money for living expenses in Austria"</label>
76
+ <method>:post</method>
77
+ <arguments>
78
+ <timeout>2</timeout>
79
+ </arguments>
80
+ </parameters>
81
+ <finalize output="result">data.money=10000
82
+ </finalize>
83
+ <update output="result"/>
84
+ </call>
85
+ <call id="a2" endpoint="timeout">
86
+ <parameters>
87
+ <label>"Check if passport still valid"</label>
88
+ <method>:post</method>
89
+ <arguments>
90
+ <timeout>2</timeout>
91
+ </arguments>
92
+ </parameters>
93
+ <finalize output="result">data.passportStatus=0
94
+ </finalize>
95
+ <update output="result"/>
96
+ </call>
97
+ <choose mode="exclusive">
98
+ <alternative condition="data.passportStatus==0">
99
+ <call id="a4" endpoint="timeout">
100
+ <parameters>
101
+ <label>Renew passport</label>
102
+ <method>:post</method>
103
+ <arguments>
104
+ <timeout>2</timeout>
105
+ </arguments>
106
+ </parameters>
107
+ <finalize output="result">data.passportStatus=1
108
+ data.money=data.money-60</finalize>
109
+ <update output="result"/>
110
+ </call>
111
+ </alternative>
112
+ <otherwise/>
113
+ </choose>
114
+ <call id="a6" endpoint="timeout">
115
+ <parameters>
116
+ <label>"Check if visa is needed"</label>
117
+ <method>:post</method>
118
+ <arguments>
119
+ <timeout>2</timeout>
120
+ </arguments>
121
+ </parameters>
122
+ <finalize output="result">data.visaStatus=1</finalize>
123
+ <update output="result"/>
124
+ </call>
125
+ <choose mode="exclusive">
126
+ <alternative condition="data.passportStatus==1">
127
+ <call id="a5" endpoint="timeout">
128
+ <parameters>
129
+ <label>Apply for visa</label>
130
+ <method>:post</method>
131
+ <arguments>
132
+ <timeout>2</timeout>
133
+ </arguments>
134
+ </parameters>
135
+ <finalize output="result">data.visaStatus=0
136
+ data.money=data.money-110</finalize>
137
+ <update output="result"/>
138
+ </call>
139
+ </alternative>
140
+ <otherwise/>
141
+ </choose>
142
+ <call id="a10" endpoint="timeout">
143
+ <parameters>
144
+ <label>"Apply for \"Rot-Weiß-Rot\" card"</label>
145
+ <method>:post</method>
146
+ <arguments>
147
+ <timeout>2</timeout>
148
+ </arguments>
149
+ </parameters>
150
+ <finalize output="result">data.money=data.money-200</finalize>
151
+ <update output="result"/>
152
+ </call>
153
+ <parallel wait="-1">
154
+ <parallel_branch>
155
+ <call id="a12" endpoint="timeout">
156
+ <parameters>
157
+ <label>"Organise bank account"</label>
158
+ <method>:post</method>
159
+ <arguments>
160
+ <timeout>2</timeout>
161
+ </arguments>
162
+ </parameters>
163
+ <finalize output="result">data.money=data.money+100</finalize>
164
+ <update output="result"/>
165
+ </call>
166
+ </parallel_branch>
167
+ <parallel_branch>
168
+ <call id="a13" endpoint="timeout">
169
+ <parameters>
170
+ <label>"Organise accomodation"</label>
171
+ <method>:post</method>
172
+ <arguments>
173
+ <timeout>2</timeout>
174
+ </arguments>
175
+ </parameters>
176
+ <finalize output="result">data.adress="Sonnenallee 51/1/16"</finalize>
177
+ <update output="result"/>
178
+ </call>
179
+ </parallel_branch>
180
+ </parallel>
181
+ <call id="a15" endpoint="timeout">
182
+ <parameters>
183
+ <label>"Enter Austria"</label>
184
+ <method>:post</method>
185
+ <arguments>
186
+ <timeout>2</timeout>
187
+ </arguments>
188
+ </parameters>
189
+ <finalize output="result">data.money=data.money-1000
190
+ data.jobStatus=1</finalize>
191
+ <update output="result"/>
192
+ </call>
193
+ <loop mode="pre_test" condition="data.jobStatus==0">
194
+ <call id="a3" endpoint="timeout">
195
+ <parameters>
196
+ <label>Search for a job</label>
197
+ <method>:post</method>
198
+ <arguments>
199
+ <timeout>2</timeout>
200
+ </arguments>
201
+ </parameters>
202
+ <finalize output="result">data.jobStatus=1</finalize>
203
+ <update output="result"/>
204
+ </call>
205
+ </loop>
206
+ </description>
207
+ </dslx>
208
+ <status>
209
+ <id>0</id>
210
+ <message>undefined</message>
211
+ </status>
212
+ <description>
213
+ <description xmlns="http://cpee.org/ns/description/1.0">
214
+ <call id="a1" endpoint="timeout">
215
+ <parameters>
216
+ <label>"Save money for living expenses in Austria"</label>
217
+ <method>:post</method>
218
+ <arguments>
219
+ <timeout>2</timeout>
220
+ </arguments>
221
+ </parameters>
222
+ <finalize output="result">data.money=10000
223
+ </finalize>
224
+ <update output="result"/>
225
+ </call>
226
+ <call id="a2" endpoint="timeout">
227
+ <parameters>
228
+ <label>"Check if passport still valid"</label>
229
+ <method>:post</method>
230
+ <arguments>
231
+ <timeout>2</timeout>
232
+ </arguments>
233
+ </parameters>
234
+ <finalize output="result">data.passportStatus=0
235
+ </finalize>
236
+ <update output="result"/>
237
+ </call>
238
+ <choose mode="exclusive">
239
+ <alternative condition="data.passportStatus==0">
240
+ <call id="a4" endpoint="timeout">
241
+ <parameters>
242
+ <label>Renew passport</label>
243
+ <method>:post</method>
244
+ <arguments>
245
+ <timeout>2</timeout>
246
+ </arguments>
247
+ </parameters>
248
+ <finalize output="result">data.passportStatus=1
249
+ data.money=data.money-60</finalize>
250
+ <update output="result"/>
251
+ </call>
252
+ </alternative>
253
+ <otherwise/>
254
+ </choose>
255
+ <call id="a6" endpoint="timeout">
256
+ <parameters>
257
+ <label>"Check if visa is needed"</label>
258
+ <method>:post</method>
259
+ <arguments>
260
+ <timeout>2</timeout>
261
+ </arguments>
262
+ </parameters>
263
+ <finalize output="result">data.visaStatus=1</finalize>
264
+ <update output="result"/>
265
+ </call>
266
+ <choose mode="exclusive">
267
+ <alternative condition="data.passportStatus==1">
268
+ <call id="a5" endpoint="timeout">
269
+ <parameters>
270
+ <label>Apply for visa</label>
271
+ <method>:post</method>
272
+ <arguments>
273
+ <timeout>2</timeout>
274
+ </arguments>
275
+ </parameters>
276
+ <finalize output="result">data.visaStatus=0
277
+ data.money=data.money-110</finalize>
278
+ <update output="result"/>
279
+ </call>
280
+ </alternative>
281
+ <otherwise/>
282
+ </choose>
283
+ <call id="a10" endpoint="timeout">
284
+ <parameters>
285
+ <label>"Apply for \"Rot-Weiß-Rot\" card"</label>
286
+ <method>:post</method>
287
+ <arguments>
288
+ <timeout>2</timeout>
289
+ </arguments>
290
+ </parameters>
291
+ <finalize output="result">data.money=data.money-200</finalize>
292
+ <update output="result"/>
293
+ </call>
294
+ <parallel wait="-1">
295
+ <parallel_branch>
296
+ <call id="a12" endpoint="timeout">
297
+ <parameters>
298
+ <label>"Organise bank account"</label>
299
+ <method>:post</method>
300
+ <arguments>
301
+ <timeout>2</timeout>
302
+ </arguments>
303
+ </parameters>
304
+ <finalize output="result">data.money=data.money+100</finalize>
305
+ <update output="result"/>
306
+ </call>
307
+ </parallel_branch>
308
+ <parallel_branch>
309
+ <call id="a13" endpoint="timeout">
310
+ <parameters>
311
+ <label>"Organise accomodation"</label>
312
+ <method>:post</method>
313
+ <arguments>
314
+ <timeout>2</timeout>
315
+ </arguments>
316
+ </parameters>
317
+ <finalize output="result">data.adress="Sonnenallee 51/1/16"</finalize>
318
+ <update output="result"/>
319
+ </call>
320
+ </parallel_branch>
321
+ </parallel>
322
+ <call id="a15" endpoint="timeout">
323
+ <parameters>
324
+ <label>"Enter Austria"</label>
325
+ <method>:post</method>
326
+ <arguments>
327
+ <timeout>2</timeout>
328
+ </arguments>
329
+ </parameters>
330
+ <finalize output="result">data.money=data.money-1000
331
+ data.jobStatus=1</finalize>
332
+ <update output="result"/>
333
+ </call>
334
+ <loop mode="pre_test" condition="data.jobStatus==0">
335
+ <call id="a3" endpoint="timeout">
336
+ <parameters>
337
+ <label>Search for a job</label>
338
+ <method>:post</method>
339
+ <arguments>
340
+ <timeout>2</timeout>
341
+ </arguments>
342
+ </parameters>
343
+ <finalize output="result">data.jobStatus=1</finalize>
344
+ <update output="result"/>
345
+ </call>
346
+ </loop>
347
+ </description>
348
+ </description>
349
+ <transformation>
350
+ <description type="copy"/>
351
+ <dataelements type="none"/>
352
+ <endpoints type="none"/>
353
+ </transformation>
354
+ </properties>
@@ -7,61 +7,108 @@
7
7
  </attributes>
8
8
  <state>ready</state>
9
9
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a1>after</a1>
12
- </positions>
10
+ <positions/>
13
11
  <dataelements>
14
- <x/>
12
+ <feedback>true</feedback>
15
13
  </dataelements>
16
14
  <endpoints>
17
15
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
18
16
  </endpoints>
19
- <dsl>call :a1, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
20
- data.x += "a1,"
21
- END
22
- call :a2, :timeout, parameters: { :label =&gt; "test", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
23
- data.x += "a2,"
24
- END
25
- call :a3, :timeout, parameters: { :label =&gt; "test", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
26
- data.x += "a3,"
27
- END
17
+ <dsl>parallel do
18
+ parallel_branch do
19
+ loop pre_test{data.feedback} do
20
+ call :design, :timeout, parameters: { :label =&gt; "Design", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
21
+ call :validate, :timeout, parameters: { :label =&gt; "Validate", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
22
+ call :publish, :timeout, parameters: { :label =&gt; "Publish", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 1)] }
23
+ end
24
+ end
25
+ parallel_branch do
26
+ loop pre_test{data.feedback} do
27
+ call :prepare, :timeout, parameters: { :label =&gt; "Prepare", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
28
+ call :fab, :timeout, parameters: { :label =&gt; "Fabricate", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
29
+ call :evaluate, :timeout, parameters: { :label =&gt; "Evaluate", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
30
+ end
31
+ end
32
+ end
28
33
  </dsl>
29
34
  <dslx>
30
35
  <description xmlns="http://cpee.org/ns/description/1.0">
31
- <!--{{{-->
32
- <call id="a1" endpoint="timeout">
33
- <parameters>
34
- <!--{{{-->
35
- <method>:post</method>
36
- <arguments>
37
- <timeout>2</timeout>
38
- </arguments>
39
- </parameters>
40
- <!--}}}-->
41
- <finalize output="result">data.x += "a1,"</finalize>
42
- </call>
43
- <call id="a2" endpoint="timeout">
44
- <parameters>
45
- <label>test</label>
46
- <method>:post</method>
47
- <arguments>
48
- <timeout>4</timeout>
49
- </arguments>
50
- </parameters>
51
- <finalize output="result">data.x += "a2,"</finalize>
52
- <update output="result"/>
53
- </call>
54
- <call id="a3" endpoint="timeout">
55
- <parameters>
56
- <label>test</label>
57
- <method>:post</method>
58
- <arguments>
59
- <timeout>4</timeout>
60
- </arguments>
61
- </parameters>
62
- <finalize output="result">data.x += "a3,"</finalize>
63
- <update output="result"/>
64
- </call>
36
+ <parallel>
37
+ <parallel_branch>
38
+ <loop mode="pre_test" condition="data.feedback">
39
+ <call id="design" endpoint="timeout">
40
+ <parameters>
41
+ <!--{{{-->
42
+ <label>Design</label>
43
+ <method>:post</method>
44
+ <arguments>
45
+ <timeout>4</timeout>
46
+ </arguments>
47
+ </parameters>
48
+ <!--}}}-->
49
+ </call>
50
+ <call id="validate" endpoint="timeout">
51
+ <parameters>
52
+ <!--{{{-->
53
+ <label>Validate</label>
54
+ <method>:post</method>
55
+ <arguments>
56
+ <timeout>2</timeout>
57
+ </arguments>
58
+ </parameters>
59
+ <!--}}}-->
60
+ </call>
61
+ <call id="publish" endpoint="timeout">
62
+ <parameters>
63
+ <!--{{{-->
64
+ <label>Publish</label>
65
+ <method>:post</method>
66
+ <arguments>
67
+ <timeout>1</timeout>
68
+ </arguments>
69
+ </parameters>
70
+ <!--}}}-->
71
+ </call>
72
+ </loop>
73
+ </parallel_branch>
74
+ <parallel_branch>
75
+ <loop mode="pre_test" condition="data.feedback">
76
+ <call id="prepare" endpoint="timeout">
77
+ <parameters>
78
+ <!--{{{-->
79
+ <label>Prepare</label>
80
+ <method>:post</method>
81
+ <arguments>
82
+ <timeout>4</timeout>
83
+ </arguments>
84
+ </parameters>
85
+ <!--}}}-->
86
+ </call>
87
+ <call id="fab" endpoint="timeout">
88
+ <parameters>
89
+ <!--{{{-->
90
+ <label>Fabricate</label>
91
+ <method>:post</method>
92
+ <arguments>
93
+ <timeout>4</timeout>
94
+ </arguments>
95
+ </parameters>
96
+ <!--}}}-->
97
+ </call>
98
+ <call id="evaluate" endpoint="timeout">
99
+ <parameters>
100
+ <!--{{{-->
101
+ <label>Evaluate</label>
102
+ <method>:post</method>
103
+ <arguments>
104
+ <timeout>4</timeout>
105
+ </arguments>
106
+ </parameters>
107
+ <!--}}}-->
108
+ </call>
109
+ </loop>
110
+ </parallel_branch>
111
+ </parallel>
65
112
  </description>
66
113
  </dslx>
67
114
  <status>
@@ -70,40 +117,82 @@ END
70
117
  </status>
71
118
  <description>
72
119
  <description xmlns="http://cpee.org/ns/description/1.0">
73
- <!--{{{-->
74
- <call id="a1" endpoint="timeout">
75
- <parameters>
76
- <!--{{{-->
77
- <method>:post</method>
78
- <arguments>
79
- <timeout>2</timeout>
80
- </arguments>
81
- </parameters>
82
- <!--}}}-->
83
- <finalize output="result">data.x += "a1,"</finalize>
84
- </call>
85
- <call id="a2" endpoint="timeout">
86
- <parameters>
87
- <label>test</label>
88
- <method>:post</method>
89
- <arguments>
90
- <timeout>4</timeout>
91
- </arguments>
92
- </parameters>
93
- <finalize output="result">data.x += "a2,"</finalize>
94
- <update output="result"/>
95
- </call>
96
- <call id="a3" endpoint="timeout">
97
- <parameters>
98
- <label>test</label>
99
- <method>:post</method>
100
- <arguments>
101
- <timeout>4</timeout>
102
- </arguments>
103
- </parameters>
104
- <finalize output="result">data.x += "a3,"</finalize>
105
- <update output="result"/>
106
- </call>
120
+ <parallel>
121
+ <parallel_branch>
122
+ <loop mode="pre_test" condition="data.feedback">
123
+ <call id="design" endpoint="timeout">
124
+ <parameters>
125
+ <!--{{{-->
126
+ <label>Design</label>
127
+ <method>:post</method>
128
+ <arguments>
129
+ <timeout>4</timeout>
130
+ </arguments>
131
+ </parameters>
132
+ <!--}}}-->
133
+ </call>
134
+ <call id="validate" endpoint="timeout">
135
+ <parameters>
136
+ <!--{{{-->
137
+ <label>Validate</label>
138
+ <method>:post</method>
139
+ <arguments>
140
+ <timeout>2</timeout>
141
+ </arguments>
142
+ </parameters>
143
+ <!--}}}-->
144
+ </call>
145
+ <call id="publish" endpoint="timeout">
146
+ <parameters>
147
+ <!--{{{-->
148
+ <label>Publish</label>
149
+ <method>:post</method>
150
+ <arguments>
151
+ <timeout>1</timeout>
152
+ </arguments>
153
+ </parameters>
154
+ <!--}}}-->
155
+ </call>
156
+ </loop>
157
+ </parallel_branch>
158
+ <parallel_branch>
159
+ <loop mode="pre_test" condition="data.feedback">
160
+ <call id="prepare" endpoint="timeout">
161
+ <parameters>
162
+ <!--{{{-->
163
+ <label>Prepare</label>
164
+ <method>:post</method>
165
+ <arguments>
166
+ <timeout>4</timeout>
167
+ </arguments>
168
+ </parameters>
169
+ <!--}}}-->
170
+ </call>
171
+ <call id="fab" endpoint="timeout">
172
+ <parameters>
173
+ <!--{{{-->
174
+ <label>Fabricate</label>
175
+ <method>:post</method>
176
+ <arguments>
177
+ <timeout>4</timeout>
178
+ </arguments>
179
+ </parameters>
180
+ <!--}}}-->
181
+ </call>
182
+ <call id="evaluate" endpoint="timeout">
183
+ <parameters>
184
+ <!--{{{-->
185
+ <label>Evaluate</label>
186
+ <method>:post</method>
187
+ <arguments>
188
+ <timeout>4</timeout>
189
+ </arguments>
190
+ </parameters>
191
+ <!--}}}-->
192
+ </call>
193
+ </loop>
194
+ </parallel_branch>
195
+ </parallel>
107
196
  </description>
108
197
  </description>
109
198
  <transformation>