cpee 1.3.126 → 1.3.127

Sign up to get free protection for your applications and to get access to all the features.
@@ -200,8 +200,8 @@ function CPEE(adaptor) {
200
200
  } // }}}
201
201
  this.events.dragstart = function (svgid, e) { //{{{
202
202
  } //}}}
203
-
204
- // Primitive Elements
203
+
204
+ // Abstract Elements (they only have an illustrator)
205
205
  this.elements.callinjection = { /*{{{*/
206
206
  'illustrator': {//{{{
207
207
  'type' : 'abstract',
@@ -214,29 +214,6 @@ function CPEE(adaptor) {
214
214
  '</svg>');
215
215
  }
216
216
  },//}}}
217
- 'description' : {//{{{
218
- 'create': function(target) {
219
- var node = null;
220
- node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
221
- return node;
222
- },
223
- 'permissible_children': function(node) {
224
- if(node.children('manipulate').lenght < 1)
225
- return [
226
- {'label': 'Script Block',
227
- 'function_call': adaptor.description.insert_last_into,
228
- 'menu_icon': elements.callmanipulate.illustrator.svg,
229
- 'params': [adaptor.description.elements.manipulate.create, node]}
230
- ];
231
- return [];
232
- }
233
- },//}}}
234
- 'adaptor' : {//{{{
235
- 'mousedown': function (node, e) {
236
- events.mousedown(node,e,true, true);
237
- },
238
- 'click': events.click,
239
- }//}}}
240
217
  }; /*}}}*/
241
218
  this.elements.callcorrelation = { /*{{{*/
242
219
  'illustrator': {//{{{
@@ -250,29 +227,6 @@ function CPEE(adaptor) {
250
227
  '</svg>');
251
228
  }
252
229
  },//}}}
253
- 'description' : {//{{{
254
- 'create': function(target) {
255
- var node = null;
256
- node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="correlation" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
257
- return node;
258
- },
259
- 'permissible_children': function(node) {
260
- if(node.children('manipulate').lenght < 1)
261
- return [
262
- {'label': 'Script Block',
263
- 'function_call': adaptor.description.insert_last_into,
264
- 'menu_icon': elements.callmanipulate.illustrator.svg,
265
- 'params': [adaptor.description.elements.manipulate.create, node]}
266
- ];
267
- return [];
268
- }
269
- },//}}}
270
- 'adaptor' : {//{{{
271
- 'mousedown': function (node, e) {
272
- events.mousedown(node,e,true, true);
273
- },
274
- 'click': events.click,
275
- }//}}}
276
230
  }; /*}}}*/
277
231
  this.elements.callinstantiation = { /*{{{*/
278
232
  'illustrator': {//{{{
@@ -286,29 +240,6 @@ function CPEE(adaptor) {
286
240
  '</svg>');
287
241
  }
288
242
  },//}}}
289
- 'description' : {//{{{
290
- 'create': function(target) {
291
- var node = null;
292
- node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="instantiate" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
293
- return node;
294
- },
295
- 'permissible_children': function(node) {
296
- if(node.children('manipulate').lenght < 1)
297
- return [
298
- {'label': 'Script Block',
299
- 'function_call': adaptor.description.insert_last_into,
300
- 'menu_icon': elements.callmanipulate.illustrator.svg,
301
- 'params': [adaptor.description.elements.manipulate.create, node]}
302
- ];
303
- return [];
304
- }
305
- },//}}}
306
- 'adaptor' : {//{{{
307
- 'mousedown': function (node, e) {
308
- events.mousedown(node,e,true, true);
309
- },
310
- 'click': events.click,
311
- }//}}}
312
243
  }; /*}}}*/
313
244
  this.elements.callmanipulate = { /*{{{*/
314
245
  'illustrator': {//{{{
@@ -322,30 +253,32 @@ function CPEE(adaptor) {
322
253
  '</svg>');
323
254
  }
324
255
  },//}}}
325
- 'description' : {//{{{
326
- 'create': function(target) {
327
- var node = null;
328
- node = $X('<call id="' + adaptor.description.get_free_id() + '" endpoint="" xmlns="http://this.org/ns/description/1.0"><parameters><label></label><method>post</method><parameters/></parameters><manipulate output="result"/></call>');
329
- return node;
330
- },
331
- 'permissible_children': function(node) {
332
- if(node.children('manipulate').lenght < 1)
333
- return [
334
- {'label': 'Script Block',
335
- 'function_call': adaptor.description.insert_last_into,
336
- 'menu_icon': elements.callmanipulate.illustrator.svg,
337
- 'params': [adaptor.description.elements.manipulate.create, node]}
338
- ];
339
- return [];
340
- }
341
- },//}}}
342
- 'adaptor' : {//{{{
343
- 'mousedown': function (node, e) {
344
- events.mousedown(node,e,true, true);
345
- },
346
- 'click': events.click,
347
- }//}}}
348
256
  }; /*}}}*/
257
+ this.elements.choose_inclusive = { /*{{{*/
258
+ 'illustrator': {//{{{
259
+ 'type' : 'abstract',
260
+ 'svg': function() {
261
+ return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
262
+ '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
263
+ '<circle cx="15.5" cy="15.5" r="7" class="stand"/>' +
264
+ '</svg>');
265
+ }
266
+ },//}}}
267
+ }; /*}}}*/
268
+ this.elements.choose_exclusive = { /*{{{*/
269
+ 'illustrator': {//{{{
270
+ 'type' : 'abstract',
271
+ 'svg': function() {
272
+ return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
273
+ '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
274
+ '<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>' +
275
+ '<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>' +
276
+ '</svg>');
277
+ }
278
+ },//}}}
279
+ }; /*}}}*/
280
+
281
+ // Primitive Elements
349
282
  this.elements.call = { /*{{{*/
350
283
  'illustrator': {//{{{
351
284
  'type' : 'primitive',
@@ -450,154 +383,8 @@ function CPEE(adaptor) {
450
383
  'click': events.click,
451
384
  }//}}}
452
385
  }; /*}}}*/
453
- this.elements.constraints = { /*{{{*/
454
- 'illustrator': {//{{{
455
- 'type' : 'primitive',
456
- 'endnodes' : 'this',
457
- 'svg': function() {
458
- return false;
459
- }
460
- },//}}}
461
- 'description' : {//{{{
462
- 'create': function(target) {
463
- var node = $X('<manipulate id="' + adaptor.description.get_free_id() + '" xmlns="http://cpee.org/ns/description/1.0"/>');
464
- return node;
465
- },
466
- 'permissible_children': function(node) {
467
- return [];
468
- }
469
- },//}}}
470
- 'adaptor' : {//{{{
471
- 'mousedown': function (node, e) {
472
- events.mousedown(node,e,false, true);
473
- },
474
- 'click': events.click,
475
- }//}}}
476
- }; /*}}}*/
477
386
 
478
387
  // Complex Elements
479
- this.elements.choose_inclusive = { /*{{{*/
480
- 'illustrator': {//{{{
481
- 'type' : 'abstract',
482
- 'endnodes' : 'aggregate',
483
- 'closeblock': false,
484
- 'expansion' : function(node) {
485
- return 'horizontal';
486
- },
487
- 'col_shift' : function(node) {
488
- return false;
489
- },
490
- 'svg': function() {
491
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
492
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
493
- '<circle cx="15.5" cy="15.5" r="7" class="stand"/>' +
494
- '</svg>');
495
- }
496
- },//}}}
497
- 'description' : {//{{{
498
- 'create': function(target) {
499
- var node = $X('<choose mode="exclusive" xmlns="http://cpee.org/ns/description/1.0"><otherwise/></choose>');
500
- return node;
501
- },
502
- 'permissible_children': function(node) {
503
- var func = null;
504
- if(node.get(0).tagName == 'choose') { func = adaptor.description.insert_first_into }
505
- else { func = adaptor.description.insert_after }
506
- if(node.children('parallel_branch').length > 0) {
507
- return [{'label': 'Parallel Branch',
508
- 'function_call': func,
509
- 'menu_icon': elements.parallel_branch.illustrator.svg,
510
- 'params': [adaptor.description.elements.parallel_branch.create, node]}];
511
- }
512
- var childs = [{'label': 'Alternative',
513
- 'function_call': func,
514
- 'menu_icon': elements.alternative.illustrator.svg,
515
- 'params': [adaptor.description.elements.alternative.create, node]}];
516
- if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
517
- childs.push({'label': 'Otherwise',
518
- 'function_call': func,
519
- 'menu_icon': elements.otherwise.illustrator.svg,
520
- 'params': [adaptor.description.elements.otherwise.create, node]});
521
- if(node.parents('parallel').length > node.parents('parallel_branch').length)
522
- childs.push({'label': 'Parallel Branch',
523
- 'function_call': func,
524
- 'menu_icon': elements.parallel_branch.illustrator.svg,
525
- 'params': [adaptor.description.elements.parallel_branch.create, node]});
526
- return childs;
527
- }
528
- },//}}}
529
- 'adaptor' : {//{{{
530
- 'mousedown': function (node, e) {
531
- events.mousedown(node,e,true, true);
532
- },
533
- 'click': events.click,
534
- 'dblclick': events.dblclick,
535
- 'mouseover': events.mouseover,
536
- 'mouseout': events.mouseout,
537
- }//}}}
538
- }; /*}}}*/
539
- this.elements.choose_exclusive = { /*{{{*/
540
- 'illustrator': {//{{{
541
- 'type' : 'abstract',
542
- 'endnodes' : 'aggregate',
543
- 'closeblock': false,
544
- 'expansion' : function(node) {
545
- return 'horizontal';
546
- },
547
- 'col_shift' : function(node) {
548
- return false;
549
- },
550
- 'svg': function() {
551
- return $X('<svg class="clickable" xmlns="http://www.w3.org/2000/svg">' +
552
- '<rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="stand"/>' +
553
- '<line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>' +
554
- '<line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>' +
555
- '</svg>');
556
- }
557
- },//}}}
558
- 'description' : {//{{{
559
- 'create': function(target) {
560
- var node = $X('<choose mode="exclusive" xmlns="http://cpee.org/ns/description/1.0"><otherwise/></choose>');
561
- return node;
562
- },
563
- 'permissible_children': function(node) {
564
- var func = null;
565
- if(node.get(0).tagName == 'choose') { func = adaptor.description.insert_first_into }
566
- else { func = adaptor.description.insert_after }
567
- if(node.children('parallel_branch').length > 0) {
568
- return [{'label': 'Parallel Branch',
569
- 'function_call': func,
570
- 'menu_icon': elements.parallel_branch.illustrator.svg,
571
- 'params': [adaptor.description.elements.parallel_branch.create, node]}];
572
- }
573
- var childs = [{'label': 'Alternative',
574
- 'function_call': func,
575
- 'menu_icon': elements.alternative.illustrator.svg,
576
- 'params': [adaptor.description.elements.alternative.create, node]}];
577
- if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
578
- childs.push({'label': 'Otherwise',
579
- 'function_call': func,
580
- 'menu_icon': elements.otherwise.illustrator.svg,
581
- 'params': [adaptor.description.elements.otherwise.create, node]});
582
- if(node.parents('parallel').length > node.parents('parallel_branch').length)
583
- childs.push({'label': 'Parallel Branch',
584
- 'function_call': func,
585
- 'menu_icon': elements.parallel_branch.illustrator.svg,
586
- 'params': [adaptor.description.elements.parallel_branch.create, node]});
587
- return childs;
588
- }
589
- },//}}}
590
- 'adaptor' : {//{{{
591
- 'mousedown': function (node, e) {
592
- events.mousedown(node,e,true, true);
593
- },
594
- 'click': events.click,
595
- 'dblclick': events.dblclick,
596
- 'mouseover': events.mouseover,
597
- 'mouseout': events.mouseout,
598
- }//}}}
599
- }; /*}}}*/
600
-
601
388
  this.elements.choose = { /*{{{*/
602
389
  'illustrator': {//{{{
603
390
  'type' : 'complex',
@@ -1132,7 +919,7 @@ function CPEE(adaptor) {
1132
919
  },//}}}
1133
920
  'description' : {//{{{
1134
921
  'create': function(target) {
1135
- var node = $X('<critical sid="section" xmlns="http://cpee.org/ns/description/1.0"/>');
922
+ var node = $X('<group xmlns="http://cpee.org/ns/description/1.0"/>');
1136
923
  return node;
1137
924
  },
1138
925
  'permissible_children': function(node) {
@@ -106,7 +106,7 @@ function WfIllustrator(wf_adaptor) { // View {{{
106
106
  } // }}}
107
107
  // }}}
108
108
  // Helper Functions {{{
109
- var draw_symbol = this.draw.draw_symbol = function (sym_name, id, title, row, col, group) { // {{{
109
+ var draw_symbol = this.draw.draw_symbol = function (tname, sym_name, id, title, row, col, group) { // {{{
110
110
  if(elements[sym_name] == undefined || elements[sym_name].svg == undefined) sym_name = 'unknown';
111
111
  var g = $X('<g class="element" element-id="' + id + '" transform="translate(' + String((col*width)-((width*0.39))) + ',' + String(row*height-((height*0.74))) + ')" xmlns="http://www.w3.org/2000/svg">' +
112
112
  '<text class="super" transform="translate(30,8.4)">' +
@@ -121,8 +121,8 @@ function WfIllustrator(wf_adaptor) { // View {{{
121
121
  g.append(sym);
122
122
 
123
123
  // Binding events for symbol
124
- for(event_name in adaptor.elements[sym_name]) {
125
- sym.bind(event_name, {'function_call':adaptor.elements[sym_name][event_name]}, function(e) { e.data.function_call($(this).parents(':first').attr('element-id'),e)});
124
+ for(event_name in adaptor.elements[tname]) {
125
+ sym.bind(event_name, {'function_call':adaptor.elements[tname][event_name]}, function(e) { e.data.function_call($(this).parents(':first').attr('element-id'),e)});
126
126
  if(event_name == 'mousedown') sym.bind('contextmenu', false);
127
127
  }
128
128
  if(group) {group.append(g);}
@@ -319,7 +319,7 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
319
319
  max.row++;
320
320
  $(root).attr('svg-id','description');
321
321
  group.attr('element-id','group-description');
322
- illustrator.draw.draw_symbol('start', 'description', 'START', pos.row, pos.col, group);
322
+ illustrator.draw.draw_symbol('start', 'start', 'description', 'START', pos.row, pos.col, group);
323
323
  } // }}}
324
324
 
325
325
  $(root).children().each(function() {
@@ -364,9 +364,9 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
364
364
  if(!illustrator.elements[tname]) {sym_name = 'unknown';}
365
365
  else if(typeof illustrator.elements[tname].resolve_symbol == 'function') {sym_name = illustrator.elements[tname].resolve_symbol(this);}
366
366
  else if(typeof illustrator.elements[tname].resolve_symbol == 'string') {sym_name = illustrator.elements[tname].resolve_symbol;}
367
- else {sym_name = tname;}
367
+ else {sym_name = tname;}
368
368
  if((illustrator.elements[tname] && illustrator.elements[tname].svg()) || sym_name == 'unknown') {
369
- illustrator.draw.draw_symbol(sym_name, $(this).attr('svg-id'), $(this).attr('svg-label'), pos.row, pos.col, block.svg).addClass(illustrator.elements[tname] ? illustrator.elements[tname].type : 'primitive unknown');
369
+ illustrator.draw.draw_symbol(tname, sym_name, $(this).attr('svg-id'), $(this).attr('svg-label'), pos.row, pos.col, block.svg).addClass(illustrator.elements[tname] ? illustrator.elements[tname].type : 'primitive unknown');
370
370
  } else { console.log("no icon "+ tname);}
371
371
  if(illustrator.elements[tname] && illustrator.elements[tname].border) illustrator.draw.draw_border($(this).attr('svg-id'), pos, block.max, block.svg);
372
372
  if(illustrator.elements[tname] && illustrator.elements[tname].type == 'complex') illustrator.draw.draw_tile($(this).attr('svg-id'), pos, block.max, block.svg);
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.126"
3
+ s.version = "1.3.127"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -0,0 +1 @@
1
+ a6020d5dd289ae782c866f128f70f25d
@@ -0,0 +1 @@
1
+ afa11f78ee8fba13df2b78935c9cf014
@@ -7,63 +7,121 @@
7
7
  <endpoints>
8
8
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
9
9
  </endpoints>
10
- <dsl>choose :exclusive do
11
- alternative "data.a &lt; 3" do
12
- call :a42, :timeout, { :label =&gt; "B", :method =&gt; "post", :type =&gt; "serviceTask", :mid =&gt; "sid-C4915A51-F57C-44E7-8BA7-AC5247998430", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
13
- data.a = 'path 1'
10
+ <dsl>call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
11
+ data.a += 1
12
+ end
13
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
14
+ loop pre_test{true} do
15
+ choose :exclusive do
16
+ alternative "data.a &gt;= 3 &amp;&amp; data.a &lt; 6" do
17
+ call :a62, :timeout, { :label =&gt; "D", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters =&gt; { :timeout =&gt; 1 } }
18
+ call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
19
+ data.a += 1
20
+ end
21
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
14
22
  end
15
- end
16
- otherwise do
17
- call :a44, :timeout, { :label =&gt; "C", :method =&gt; "post", :type =&gt; "serviceTask", :mid =&gt; "sid-4F7DC368-C233-43DF-862A-28FC41919D18", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
18
- data.a = 'path 2'
23
+ alternative "data.a &lt; 3" do
24
+ call :a60, :timeout, { :label =&gt; "C", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters =&gt; { :timeout =&gt; 1 } }
25
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
26
+ end
27
+ otherwise do
28
+ break
19
29
  end
20
30
  end
21
31
  end
22
- call :a46, :timeout, { :label =&gt; "A", :method =&gt; "post", :type =&gt; "serviceTask", :mid =&gt; "sid-DCA5CEE9-2935-4876-AF02-8322B5DB31EE", :parameters =&gt; { :timeout =&gt; 1 } }
23
32
  </dsl>
24
33
  <dslx>
25
34
  <description xmlns="http://cpee.org/ns/description/1.0">
26
- <choose mode="exclusive">
27
- <alternative condition="data.a &lt; 3" language="text/javascript">
28
- <call id="a42" endpoint="timeout">
29
- <parameters>
30
- <label>B</label>
31
- <method>post</method>
32
- <type>serviceTask</type>
33
- <mid>sid-C4915A51-F57C-44E7-8BA7-AC5247998430</mid>
34
- <parameters>
35
- <timeout>1</timeout>
36
- </parameters>
37
- </parameters>
38
- <manipulate output="result" language="application/javascript">data.a = 'path 1'</manipulate>
39
- </call>
40
- </alternative>
41
- <otherwise>
42
- <call id="a44" endpoint="timeout">
43
- <parameters>
44
- <label>C</label>
45
- <method>post</method>
46
- <type>serviceTask</type>
47
- <mid>sid-4F7DC368-C233-43DF-862A-28FC41919D18</mid>
48
- <parameters>
49
- <timeout>1</timeout>
50
- </parameters>
51
- </parameters>
52
- <manipulate output="result" language="application/javascript">data.a = 'path 2'</manipulate>
53
- </call>
54
- </otherwise>
55
- </choose>
56
- <call id="a46" endpoint="timeout">
35
+ <call id="a58" endpoint="timeout">
57
36
  <parameters>
58
37
  <label>A</label>
59
- <method>post</method>
38
+ <method/>
60
39
  <type>serviceTask</type>
61
- <mid>sid-DCA5CEE9-2935-4876-AF02-8322B5DB31EE</mid>
40
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
62
41
  <parameters>
63
42
  <timeout>1</timeout>
64
43
  </parameters>
65
44
  </parameters>
45
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
66
46
  </call>
47
+ <call id="a61" endpoint="timeout">
48
+ <parameters>
49
+ <label>B</label>
50
+ <method/>
51
+ <type>serviceTask</type>
52
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
53
+ <parameters>
54
+ <timeout>1</timeout>
55
+ </parameters>
56
+ </parameters>
57
+ </call>
58
+ <loop pre_test="true">
59
+ <choose mode="exclusive">
60
+ <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
61
+ <call id="a62" endpoint="timeout">
62
+ <parameters>
63
+ <label>D</label>
64
+ <method/>
65
+ <type>serviceTask</type>
66
+ <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
67
+ <parameters>
68
+ <timeout>1</timeout>
69
+ </parameters>
70
+ </parameters>
71
+ </call>
72
+ <call id="a58" endpoint="timeout">
73
+ <parameters>
74
+ <label>A</label>
75
+ <method/>
76
+ <type>serviceTask</type>
77
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
78
+ <parameters>
79
+ <timeout>1</timeout>
80
+ </parameters>
81
+ </parameters>
82
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
83
+ </call>
84
+ <call id="a61" endpoint="timeout">
85
+ <parameters>
86
+ <label>B</label>
87
+ <method/>
88
+ <type>serviceTask</type>
89
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
90
+ <parameters>
91
+ <timeout>1</timeout>
92
+ </parameters>
93
+ </parameters>
94
+ </call>
95
+ </alternative>
96
+ <alternative condition="data.a &lt; 3" language="text/javascript">
97
+ <call id="a60" endpoint="timeout">
98
+ <parameters>
99
+ <label>C</label>
100
+ <method/>
101
+ <type>serviceTask</type>
102
+ <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
103
+ <parameters>
104
+ <timeout>1</timeout>
105
+ </parameters>
106
+ </parameters>
107
+ </call>
108
+ <call id="a61" endpoint="timeout">
109
+ <parameters>
110
+ <label>B</label>
111
+ <method/>
112
+ <type>serviceTask</type>
113
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
114
+ <parameters>
115
+ <timeout>1</timeout>
116
+ </parameters>
117
+ </parameters>
118
+ </call>
119
+ </alternative>
120
+ <otherwise>
121
+ <break/>
122
+ </otherwise>
123
+ </choose>
124
+ </loop>
67
125
  </description>
68
126
  </dslx>
69
127
  <status>
@@ -72,47 +130,96 @@ call :a46, :timeout, { :label =&gt; "A", :method =&gt; "post", :type =&gt; "serv
72
130
  </status>
73
131
  <description>
74
132
  <description xmlns="http://cpee.org/ns/description/1.0">
75
- <choose mode="exclusive">
76
- <alternative condition="data.a &lt; 3" language="text/javascript">
77
- <call id="a42" endpoint="timeout">
78
- <parameters>
79
- <label>B</label>
80
- <method>post</method>
81
- <type>serviceTask</type>
82
- <mid>sid-C4915A51-F57C-44E7-8BA7-AC5247998430</mid>
83
- <parameters>
84
- <timeout>1</timeout>
85
- </parameters>
86
- </parameters>
87
- <manipulate output="result" language="application/javascript">data.a = 'path 1'</manipulate>
88
- </call>
89
- </alternative>
90
- <otherwise>
91
- <call id="a44" endpoint="timeout">
92
- <parameters>
93
- <label>C</label>
94
- <method>post</method>
95
- <type>serviceTask</type>
96
- <mid>sid-4F7DC368-C233-43DF-862A-28FC41919D18</mid>
97
- <parameters>
98
- <timeout>1</timeout>
99
- </parameters>
100
- </parameters>
101
- <manipulate output="result" language="application/javascript">data.a = 'path 2'</manipulate>
102
- </call>
103
- </otherwise>
104
- </choose>
105
- <call id="a46" endpoint="timeout">
133
+ <call id="a58" endpoint="timeout">
106
134
  <parameters>
107
135
  <label>A</label>
108
- <method>post</method>
136
+ <method/>
137
+ <type>serviceTask</type>
138
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
139
+ <parameters>
140
+ <timeout>1</timeout>
141
+ </parameters>
142
+ </parameters>
143
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
144
+ </call>
145
+ <call id="a61" endpoint="timeout">
146
+ <parameters>
147
+ <label>B</label>
148
+ <method/>
109
149
  <type>serviceTask</type>
110
- <mid>sid-DCA5CEE9-2935-4876-AF02-8322B5DB31EE</mid>
150
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
111
151
  <parameters>
112
152
  <timeout>1</timeout>
113
153
  </parameters>
114
154
  </parameters>
115
155
  </call>
156
+ <loop pre_test="true">
157
+ <choose mode="exclusive">
158
+ <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
159
+ <call id="a62" endpoint="timeout">
160
+ <parameters>
161
+ <label>D</label>
162
+ <method/>
163
+ <type>serviceTask</type>
164
+ <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
165
+ <parameters>
166
+ <timeout>1</timeout>
167
+ </parameters>
168
+ </parameters>
169
+ </call>
170
+ <call id="a58" endpoint="timeout">
171
+ <parameters>
172
+ <label>A</label>
173
+ <method/>
174
+ <type>serviceTask</type>
175
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
176
+ <parameters>
177
+ <timeout>1</timeout>
178
+ </parameters>
179
+ </parameters>
180
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
181
+ </call>
182
+ <call id="a61" endpoint="timeout">
183
+ <parameters>
184
+ <label>B</label>
185
+ <method/>
186
+ <type>serviceTask</type>
187
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
188
+ <parameters>
189
+ <timeout>1</timeout>
190
+ </parameters>
191
+ </parameters>
192
+ </call>
193
+ </alternative>
194
+ <alternative condition="data.a &lt; 3" language="text/javascript">
195
+ <call id="a60" endpoint="timeout">
196
+ <parameters>
197
+ <label>C</label>
198
+ <method/>
199
+ <type>serviceTask</type>
200
+ <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
201
+ <parameters>
202
+ <timeout>1</timeout>
203
+ </parameters>
204
+ </parameters>
205
+ </call>
206
+ <call id="a61" endpoint="timeout">
207
+ <parameters>
208
+ <label>B</label>
209
+ <method/>
210
+ <type>serviceTask</type>
211
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
212
+ <parameters>
213
+ <timeout>1</timeout>
214
+ </parameters>
215
+ </parameters>
216
+ </call>
217
+ </alternative>
218
+ <otherwise>
219
+ <break/>
220
+ </otherwise>
221
+ </choose>
222
+ </loop>
116
223
  </description>
117
224
  </description>
118
225
  <transformation>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.126
4
+ version: 1.3.127
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -80,9 +80,9 @@ files:
80
80
  - server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret
81
81
  - server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml
82
82
  - server/instances/1/properties.xml
83
- - server/instances/2/notifications/cfe340bd438e36fa2eebbbbdb6f3a312/consumer-secret
84
- - server/instances/2/notifications/cfe340bd438e36fa2eebbbbdb6f3a312/producer-secret
85
- - server/instances/2/notifications/cfe340bd438e36fa2eebbbbdb6f3a312/subscription.xml
83
+ - server/instances/2/notifications/8f85ce7897598af370c5b350a811756b/consumer-secret
84
+ - server/instances/2/notifications/8f85ce7897598af370c5b350a811756b/producer-secret
85
+ - server/instances/2/notifications/8f85ce7897598af370c5b350a811756b/subscription.xml
86
86
  - server/instances/2/properties.xml
87
87
  - server/server.pid
88
88
  - server/handlerwrappers/soap.rb
@@ -1 +0,0 @@
1
- d3ab36954f0aabf981b64b5effe333fc
@@ -1 +0,0 @@
1
- a336cd8a4e88996166ece177e33cd2a9