cpee 1.5.9 → 1.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '049a6bd1e8e2156d652d5cb56365329878a3821d38a95df6ba97d641207ff7f4'
4
- data.tar.gz: df295a2647654302459bf5cd91aa543fa7cb3878d506b80defedfef9f83528b8
3
+ metadata.gz: 60c62160d5a81af31291d43be2b7a15d7ec82280fbaf8100b2e7f6d1c9444acb
4
+ data.tar.gz: 5c2ec7a78293aaeabd1d6b0a450ad8205c4e31e9dac2799a36020b1b4a04525d
5
5
  SHA512:
6
- metadata.gz: c8cfcebb9bda6504bc52c9d26a706116ce8da13900ca04e82c7f51d6ec3fe8077fad22d55a9a2e1b8bb11a17e837bb9c475e44890f93649a6c58d1a4fa1554f2
7
- data.tar.gz: b4b0bcd58beaaafe5747103948514d9df0bb321d5e635714324cb4d3daab5c82c09ba1b2583a67ca7828c6bc91511f21f3d08a2954640b777f0b48d9e79ca012
6
+ metadata.gz: 6795bea238d2fb417ce780ce8335eee886019b1e712fed7a2bdded535822a9b9648bb941a6a44a0d5ee188da10fc0aed1ec01661b23b83cbc9846537686f2855
7
+ data.tar.gz: f983dddac9dfbd8a3150e594958202a67910f7532a70ee5b27a67ec5c565e5dd3d9ef8a56320d7fe91216f8158c1ee5491582a7d64130798eb90eaaef19c7261
@@ -603,7 +603,9 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
603
603
 
604
604
  var g;
605
605
  set_details(tname,sname,pos,context);
606
- [g, endnodes] = draw_position(tname,pos,prev,block,group,endnodes,context);
606
+
607
+ var origpos = jQuery.extend(true, {}, pos);
608
+ [g, endnodes] = draw_position(tname,origpos,prev,block,group,endnodes,context);
607
609
 
608
610
  // Prepare next iteration {{{
609
611
  if(root_expansion == 'vertical') { prev = jQuery.extend(true, {}, endnodes); pos.row = block.max.row;} // covers e.g. input's for alternative, parallel_branch, ... everything with horizontal expansion
@@ -613,6 +615,8 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
613
615
  // }}}
614
616
 
615
617
  if (illustrator.elements[sname].closing_symbol) {
618
+ var ctname = illustrator.elements[sname].closing_symbol;
619
+ var csname = sym_name(ctname,context);
616
620
  pos.row++;
617
621
  max.row++;
618
622
  block.max.row = pos.row;
@@ -622,11 +626,12 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
622
626
  max.col++;
623
627
  block.max.col = pos.col;
624
628
  }
625
- draw_position(illustrator.elements[sname].closing_symbol,pos,block.endnodes,block,group,[],context,g);
629
+ draw_position(ctname,pos,block.endnodes,block,group,[],context,{svg: g, pos: origpos});
626
630
  pos.col--;
627
631
  } else {
628
- [undefined, endnodes] = draw_position(illustrator.elements[sname].closing_symbol,pos,prev,block,group,[],context,g);
632
+ [undefined, endnodes] = draw_position(ctname,pos,prev,block,group,[],context,{svg: g, pos: origpos});
629
633
  }
634
+ set_details(ctname,csname,pos,context,true);
630
635
  prev = jQuery.extend(true, {}, endnodes);
631
636
  }
632
637
  });
@@ -637,12 +642,10 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
637
642
  max.col = parent_pos.col;
638
643
  }
639
644
 
640
- if((illustrator.elements[root.tagName].endnodes == 'this' || illustrator.elements[sname].endnodes == 'this') && illustrator.elements[root.tagName].closeblock == false) {endnodes = prev;} // closeblock == false, allows loop to close himself
641
-
642
645
  if(root.tagName == 'description' && illustrator.elements[root.tagName].closing_symbol) {
643
646
  pos.row++;
644
647
  max.row = pos.row;
645
- draw_position(illustrator.elements['start'].closing_symbol,pos,prev,block,group,[],this,group);
648
+ draw_position(illustrator.elements['start'].closing_symbol,pos,prev,block,group,[],this,{svg: group, pos: pos});
646
649
  }
647
650
 
648
651
  return {'endnodes': endnodes, 'max':max, 'svg':group};
@@ -655,12 +658,14 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
655
658
  else {sname = tname;}
656
659
  return sname;
657
660
  } //}}}
658
- var set_details = function(tname,sname,pos,context) { //{{{
659
- if($(context).attr('id') == undefined) {
660
- if(id_counter[tname] == undefined) id_counter[tname] = -1;
661
- $(context).attr('svg-id', tname + '_' + (++id_counter[tname]));
662
- } else {
663
- $(context).attr('svg-id', $(context).attr('id'));
661
+ var set_details = function(tname,sname,pos,context,simple) { //{{{
662
+ if (simple == undefined || simple == false) {
663
+ if($(context).attr('id') == undefined) {
664
+ if(id_counter[tname] == undefined) id_counter[tname] = -1;
665
+ $(context).attr('svg-id', tname + '_' + (++id_counter[tname]));
666
+ } else {
667
+ $(context).attr('svg-id', $(context).attr('id'));
668
+ }
664
669
  }
665
670
  if (illustrator.elements[sname].label) {
666
671
  var lab = illustrator.elements[sname].label(context);
@@ -674,7 +679,7 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
674
679
  var sname = sym_name(tname,context);
675
680
  // Draw Symbol {{{
676
681
  if (second) {
677
- illustrator.draw.draw_symbol(sname, $(context).attr('svg-id'), $(context).attr('svg-label'), pos.row, pos.col, second, true).addClass(illustrator.elements[sname] ? illustrator.elements[sname].type : 'primitive unknown');
682
+ illustrator.draw.draw_symbol(sname, $(context).attr('svg-id'), $(context).attr('svg-label'), pos.row, pos.col, second.svg, true).addClass(illustrator.elements[sname] ? illustrator.elements[sname].type : 'primitive unknown');
678
683
  } else {
679
684
  $(context).attr('svg-type',tname);
680
685
  $(context).attr('svg-subtype',sname);
@@ -690,9 +695,9 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
690
695
  if(illustrator.elements[sname] && illustrator.elements[sname].border) {
691
696
  var wide = (illustrator.elements[sname].wide == true && block.max.col == pos.col) ? pos.col + 1 : block.max.col;
692
697
  if (illustrator.elements[sname].closing_symbol) {
693
- illustrator.draw.draw_border($(context).attr('svg-id'), pos, { col: wide, row: (illustrator.elements[sname].closing_symbol ? block.max.row+1 : block.max.row) }, block.svg);
698
+ illustrator.draw.draw_border($(context).attr('svg-id'), pos, { col: wide, row: block.max.row + 1 }, block.svg);
694
699
  } else {
695
- illustrator.draw.draw_border($(context).attr('svg-id'), pos, { col: wide, row: (illustrator.elements[sname].closing_symbol ? block.max.row+1 : block.max.row) }, block.svg);
700
+ illustrator.draw.draw_border($(context).attr('svg-id'), pos, { col: wide, row: block.max.row }, block.svg);
696
701
  }
697
702
  }
698
703
  if(illustrator.elements[sname] && illustrator.elements[sname].type == 'complex') {
@@ -706,10 +711,16 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
706
711
  }
707
712
  // }}}
708
713
  // Calculate Connection {{{
709
- if(illustrator.elements[sname] != undefined && illustrator.elements[sname].closeblock) { // Close Block if element e.g. loop
710
- for(node in block.endnodes) {
711
- if (!block.endnodes[node].final) {
712
- illustrator.draw.draw_connection(group, block.endnodes[node], pos, block.max.row+1, block.endnodes.length, true);
714
+ if(illustrator.elements[sname] != undefined && illustrator.elements[sname].closeblock == true) { // Close Block if element e.g. loop
715
+ if (second) {
716
+ if (second.pos.row+1 < pos.row) { // when no content, dont paint the up arrow
717
+ illustrator.draw.draw_connection(group, pos, second.pos, block.max.row+1, 1, true);
718
+ }
719
+ } else {
720
+ for(node in block.endnodes) {
721
+ if (!block.endnodes[node].final) {
722
+ illustrator.draw.draw_connection(group, block.endnodes[node], pos, block.max.row+1, block.endnodes.length, true);
723
+ }
713
724
  }
714
725
  }
715
726
  }
@@ -408,6 +408,27 @@ function WFAdaptorManifestation(adaptor) {
408
408
  'mouseout': self.events.mouseout
409
409
  }//}}}
410
410
  }; /*}}}*/
411
+ this.elements.loop_finish = { /*{{{*/
412
+ 'type': 'primitive',
413
+ 'illustrator': {//{{{
414
+ 'endnodes': 'this',
415
+ 'closeblock': true,
416
+ 'label': function(node){
417
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
418
+ return ret;
419
+ },
420
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg',
421
+ }, //}}}
422
+ 'adaptor': {//{{{
423
+ 'mousedown': function (node,e) {
424
+ self.events.mousedown(node,e,true,true);
425
+ },
426
+ 'click': self.events.click,
427
+ 'dblclick': self.events.dblclick,
428
+ 'mouseover': self.events.mouseover,
429
+ 'mouseout': self.events.mouseout
430
+ }//}}}
431
+ }; /*}}}*/
411
432
  this.elements.parallel_finish = { /*{{{*/
412
433
  'type': 'primitive',
413
434
  'illustrator': {//{{{
@@ -664,12 +685,13 @@ function WFAdaptorManifestation(adaptor) {
664
685
  this.elements.loop = { /*{{{*/
665
686
  'type': 'complex',
666
687
  'illustrator': {//{{{
667
- 'label': function(node){
668
- var ret = [ { column: 'Label', value: $(node).attr('condition') + ($(node).attr('mode') == 'pre_test' ? ' (⭱)' : ' (⭳)') } ];
669
- return ret;
688
+ 'resolve_symbol': function(node) {
689
+ if($(node).attr('mode') == 'pre_test') {
690
+ return 'loop_head';
691
+ } else {
692
+ return 'loop_tail';
693
+ }
670
694
  },
671
- 'endnodes': 'this',
672
- 'closeblock': true,
673
695
  'expansion': function(node) {
674
696
  return 'vertical';
675
697
  },
@@ -1122,6 +1144,25 @@ function WFAdaptorManifestation(adaptor) {
1122
1144
  'svg': self.adaptor.theme_dir + 'symbols/callmanipulate.svg'
1123
1145
  },//}}}
1124
1146
  }; /*}}}*/
1147
+ this.elements.loop_head = { /*{{{*/
1148
+ 'parent': 'loop',
1149
+ 'illustrator': {//{{{
1150
+ 'endnodes': 'this',
1151
+ 'closeblock': true,
1152
+ 'label': function(node){
1153
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
1154
+ return ret;
1155
+ },
1156
+ }//}}}
1157
+ }; /*}}}*/
1158
+ this.elements.loop_tail = { /*{{{*/
1159
+ 'parent': 'loop',
1160
+ 'illustrator': {//{{{
1161
+ 'endnodes': 'aggregate',
1162
+ 'closeblock': false,
1163
+ 'closing_symbol': 'loop_finish'
1164
+ },//}}}
1165
+ }; /*}}}*/
1125
1166
  this.elements.choose_inclusive = { /*{{{*/
1126
1167
  'parent': 'choose',
1127
1168
  'illustrator': {//{{{
@@ -1146,6 +1187,22 @@ function WFAdaptorManifestation(adaptor) {
1146
1187
  'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1147
1188
  },//}}}
1148
1189
  }; /*}}}*/
1190
+ this.elements.loop_head_finish = { /*{{{*/
1191
+ 'parent': 'loop_finish',
1192
+ 'illustrator': {//{{{
1193
+ 'endnodes': 'this',
1194
+ 'closeblock': true,
1195
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1196
+ }//}}}
1197
+ }; /*}}}*/
1198
+ this.elements.loop_tail_finish = { /*{{{*/
1199
+ 'parent': 'loop_finish',
1200
+ 'illustrator': {//{{{
1201
+ 'endnodes': 'this',
1202
+ 'closeblock': false,
1203
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1204
+ },//}}}
1205
+ }; /*}}}*/
1149
1206
  this.elements.parallel_simple = { /*{{{*/
1150
1207
  'parent': 'parallel_finish',
1151
1208
  'illustrator': {//{{{
@@ -408,6 +408,27 @@ function WFAdaptorManifestation(adaptor) {
408
408
  'mouseout': self.events.mouseout
409
409
  }//}}}
410
410
  }; /*}}}*/
411
+ this.elements.loop_finish = { /*{{{*/
412
+ 'type': 'primitive',
413
+ 'illustrator': {//{{{
414
+ 'endnodes': 'this',
415
+ 'closeblock': true,
416
+ 'label': function(node){
417
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
418
+ return ret;
419
+ },
420
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg',
421
+ }, //}}}
422
+ 'adaptor': {//{{{
423
+ 'mousedown': function (node,e) {
424
+ self.events.mousedown(node,e,true,true);
425
+ },
426
+ 'click': self.events.click,
427
+ 'dblclick': self.events.dblclick,
428
+ 'mouseover': self.events.mouseover,
429
+ 'mouseout': self.events.mouseout
430
+ }//}}}
431
+ }; /*}}}*/
411
432
  this.elements.parallel_finish = { /*{{{*/
412
433
  'type': 'primitive',
413
434
  'illustrator': {//{{{
@@ -665,12 +686,13 @@ function WFAdaptorManifestation(adaptor) {
665
686
  this.elements.loop = { /*{{{*/
666
687
  'type': 'complex',
667
688
  'illustrator': {//{{{
668
- 'label': function(node){
669
- var ret = [ { column: 'Label', value: $(node).attr('condition') + ($(node).attr('mode') == 'pre_test' ? ' (⭱)' : ' (⭳)') } ];
670
- return ret;
689
+ 'resolve_symbol': function(node) {
690
+ if($(node).attr('mode') == 'pre_test') {
691
+ return 'loop_head';
692
+ } else {
693
+ return 'loop_tail';
694
+ }
671
695
  },
672
- 'endnodes': 'this',
673
- 'closeblock': true,
674
696
  'expansion': function(node) {
675
697
  return 'vertical';
676
698
  },
@@ -1123,6 +1145,25 @@ function WFAdaptorManifestation(adaptor) {
1123
1145
  'svg': self.adaptor.theme_dir + 'symbols/callmanipulate.svg'
1124
1146
  },//}}}
1125
1147
  }; /*}}}*/
1148
+ this.elements.loop_head = { /*{{{*/
1149
+ 'parent': 'loop',
1150
+ 'illustrator': {//{{{
1151
+ 'endnodes': 'this',
1152
+ 'closeblock': true,
1153
+ 'label': function(node){
1154
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
1155
+ return ret;
1156
+ },
1157
+ }//}}}
1158
+ }; /*}}}*/
1159
+ this.elements.loop_tail = { /*{{{*/
1160
+ 'parent': 'loop',
1161
+ 'illustrator': {//{{{
1162
+ 'endnodes': 'aggregate',
1163
+ 'closeblock': false,
1164
+ 'closing_symbol': 'loop_finish'
1165
+ },//}}}
1166
+ }; /*}}}*/
1126
1167
  this.elements.choose_inclusive = { /*{{{*/
1127
1168
  'parent': 'choose',
1128
1169
  'illustrator': {//{{{
@@ -1147,6 +1188,22 @@ function WFAdaptorManifestation(adaptor) {
1147
1188
  'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1148
1189
  },//}}}
1149
1190
  }; /*}}}*/
1191
+ this.elements.loop_head_finish = { /*{{{*/
1192
+ 'parent': 'loop_finish',
1193
+ 'illustrator': {//{{{
1194
+ 'endnodes': 'this',
1195
+ 'closeblock': true,
1196
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1197
+ }//}}}
1198
+ }; /*}}}*/
1199
+ this.elements.loop_tail_finish = { /*{{{*/
1200
+ 'parent': 'loop_finish',
1201
+ 'illustrator': {//{{{
1202
+ 'endnodes': 'this',
1203
+ 'closeblock': false,
1204
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1205
+ },//}}}
1206
+ }; /*}}}*/
1150
1207
  this.elements.parallel_simple = { /*{{{*/
1151
1208
  'parent': 'parallel_finish',
1152
1209
  'illustrator': {//{{{
@@ -440,6 +440,31 @@ function WFAdaptorManifestation(adaptor) {
440
440
  'mouseout': self.events.mouseout
441
441
  }//}}}
442
442
  }; /*}}}*/
443
+ this.elements.loop_finish = { /*{{{*/
444
+ 'type': 'primitive',
445
+ 'illustrator': {//{{{
446
+ 'endnodes': 'this',
447
+ 'closeblock': true,
448
+ 'label': function(node){
449
+ var avg = $('> _probability_avg',$(node).children('_probability')).text();
450
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
451
+ if (avg != '') {
452
+ ret.push({ column: 'Average', value: avg + 'x' });
453
+ }
454
+ return ret;
455
+ },
456
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg',
457
+ }, //}}}
458
+ 'adaptor': {//{{{
459
+ 'mousedown': function (node,e) {
460
+ self.events.mousedown(node,e,true,true);
461
+ },
462
+ 'click': self.events.click,
463
+ 'dblclick': self.events.dblclick,
464
+ 'mouseover': self.events.mouseover,
465
+ 'mouseout': self.events.mouseout
466
+ }//}}}
467
+ }; /*}}}*/
443
468
  this.elements.parallel_finish = { /*{{{*/
444
469
  'type': 'primitive',
445
470
  'illustrator': {//{{{
@@ -705,16 +730,13 @@ function WFAdaptorManifestation(adaptor) {
705
730
  this.elements.loop = { /*{{{*/
706
731
  'type': 'complex',
707
732
  'illustrator': {//{{{
708
- 'label': function(node){
709
- var avg = $('> _probability_avg',$(node).children('_probability')).text();
710
- var ret = [ { column: 'Label', value: $(node).attr('condition') + ($(node).attr('mode') == 'pre_test' ? ' (⭱)' : ' (⭳)') } ];
711
- if (avg != '') {
712
- ret.push({ column: 'Average', value: avg + 'x' });
733
+ 'resolve_symbol': function(node) {
734
+ if($(node).attr('mode') == 'pre_test') {
735
+ return 'loop_head';
736
+ } else {
737
+ return 'loop_tail';
713
738
  }
714
- return ret;
715
739
  },
716
- 'endnodes': 'this',
717
- 'closeblock': true,
718
740
  'expansion': function(node) {
719
741
  return 'vertical';
720
742
  },
@@ -1168,6 +1190,29 @@ function WFAdaptorManifestation(adaptor) {
1168
1190
  'svg': self.adaptor.theme_dir + 'symbols/callmanipulate.svg'
1169
1191
  },//}}}
1170
1192
  }; /*}}}*/
1193
+ this.elements.loop_head = { /*{{{*/
1194
+ 'parent': 'loop',
1195
+ 'illustrator': {//{{{
1196
+ 'endnodes': 'this',
1197
+ 'closeblock': true,
1198
+ 'label': function(node){
1199
+ var avg = $('> _probability_avg',$(node).children('_probability')).text();
1200
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
1201
+ if (avg != '') {
1202
+ ret.push({ column: 'Average', value: avg + 'x' });
1203
+ }
1204
+ return ret;
1205
+ },
1206
+ }//}}}
1207
+ }; /*}}}*/
1208
+ this.elements.loop_tail = { /*{{{*/
1209
+ 'parent': 'loop',
1210
+ 'illustrator': {//{{{
1211
+ 'endnodes': 'aggregate',
1212
+ 'closeblock': false,
1213
+ 'closing_symbol': 'loop_finish'
1214
+ },//}}}
1215
+ }; /*}}}*/
1171
1216
  this.elements.choose_inclusive = { /*{{{*/
1172
1217
  'parent': 'choose',
1173
1218
  'illustrator': {//{{{
@@ -1192,6 +1237,22 @@ function WFAdaptorManifestation(adaptor) {
1192
1237
  'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1193
1238
  },//}}}
1194
1239
  }; /*}}}*/
1240
+ this.elements.loop_head_finish = { /*{{{*/
1241
+ 'parent': 'loop_finish',
1242
+ 'illustrator': {//{{{
1243
+ 'endnodes': 'this',
1244
+ 'closeblock': true,
1245
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1246
+ }//}}}
1247
+ }; /*}}}*/
1248
+ this.elements.loop_tail_finish = { /*{{{*/
1249
+ 'parent': 'loop_finish',
1250
+ 'illustrator': {//{{{
1251
+ 'endnodes': 'this',
1252
+ 'closeblock': false,
1253
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1254
+ },//}}}
1255
+ }; /*}}}*/
1195
1256
  this.elements.parallel_simple = { /*{{{*/
1196
1257
  'parent': 'parallel_finish',
1197
1258
  'illustrator': {//{{{
@@ -408,6 +408,27 @@ function WFAdaptorManifestation(adaptor) {
408
408
  'mouseout': self.events.mouseout
409
409
  }//}}}
410
410
  }; /*}}}*/
411
+ this.elements.loop_finish = { /*{{{*/
412
+ 'type': 'primitive',
413
+ 'illustrator': {//{{{
414
+ 'endnodes': 'this',
415
+ 'closeblock': true,
416
+ 'label': function(node){
417
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
418
+ return ret;
419
+ },
420
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg',
421
+ }, //}}}
422
+ 'adaptor': {//{{{
423
+ 'mousedown': function (node,e) {
424
+ self.events.mousedown(node,e,true,true);
425
+ },
426
+ 'click': self.events.click,
427
+ 'dblclick': self.events.dblclick,
428
+ 'mouseover': self.events.mouseover,
429
+ 'mouseout': self.events.mouseout
430
+ }//}}}
431
+ }; /*}}}*/
411
432
  this.elements.parallel_finish = { /*{{{*/
412
433
  'type': 'primitive',
413
434
  'illustrator': {//{{{
@@ -664,12 +685,13 @@ function WFAdaptorManifestation(adaptor) {
664
685
  this.elements.loop = { /*{{{*/
665
686
  'type': 'complex',
666
687
  'illustrator': {//{{{
667
- 'label': function(node){
668
- var ret = [ { column: 'Label', value: $(node).attr('condition') + ($(node).attr('mode') == 'pre_test' ? ' (⭱)' : ' (⭳)') } ];
669
- return ret;
688
+ 'resolve_symbol': function(node) {
689
+ if($(node).attr('mode') == 'pre_test') {
690
+ return 'loop_head';
691
+ } else {
692
+ return 'loop_tail';
693
+ }
670
694
  },
671
- 'endnodes': 'this',
672
- 'closeblock': true,
673
695
  'expansion': function(node) {
674
696
  return 'vertical';
675
697
  },
@@ -1122,6 +1144,25 @@ function WFAdaptorManifestation(adaptor) {
1122
1144
  'svg': self.adaptor.theme_dir + 'symbols/callmanipulate.svg'
1123
1145
  },//}}}
1124
1146
  }; /*}}}*/
1147
+ this.elements.loop_head = { /*{{{*/
1148
+ 'parent': 'loop',
1149
+ 'illustrator': {//{{{
1150
+ 'endnodes': 'this',
1151
+ 'closeblock': true,
1152
+ 'label': function(node){
1153
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
1154
+ return ret;
1155
+ },
1156
+ }//}}}
1157
+ }; /*}}}*/
1158
+ this.elements.loop_tail = { /*{{{*/
1159
+ 'parent': 'loop',
1160
+ 'illustrator': {//{{{
1161
+ 'endnodes': 'aggregate',
1162
+ 'closeblock': false,
1163
+ 'closing_symbol': 'loop_finish'
1164
+ },//}}}
1165
+ }; /*}}}*/
1125
1166
  this.elements.choose_inclusive = { /*{{{*/
1126
1167
  'parent': 'choose',
1127
1168
  'illustrator': {//{{{
@@ -1146,6 +1187,22 @@ function WFAdaptorManifestation(adaptor) {
1146
1187
  'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1147
1188
  },//}}}
1148
1189
  }; /*}}}*/
1190
+ this.elements.loop_head_finish = { /*{{{*/
1191
+ 'parent': 'loop_finish',
1192
+ 'illustrator': {//{{{
1193
+ 'endnodes': 'this',
1194
+ 'closeblock': true,
1195
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1196
+ }//}}}
1197
+ }; /*}}}*/
1198
+ this.elements.loop_tail_finish = { /*{{{*/
1199
+ 'parent': 'loop_finish',
1200
+ 'illustrator': {//{{{
1201
+ 'endnodes': 'this',
1202
+ 'closeblock': false,
1203
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1204
+ },//}}}
1205
+ }; /*}}}*/
1149
1206
  this.elements.parallel_simple = { /*{{{*/
1150
1207
  'parent': 'parallel_finish',
1151
1208
  'illustrator': {//{{{
@@ -75,7 +75,7 @@ function WFAdaptorManifestation(adaptor) {
75
75
  }; //}}}
76
76
 
77
77
  function copyOrMove(menu,group,xml_node,mode) { //{{{
78
- var markymark = self.marked();
78
+ var markymark = _.uniq(self.marked());
79
79
  var check1 = [];
80
80
  var check2 = [];
81
81
  $(markymark).each(function(key,svgid){
@@ -408,6 +408,27 @@ function WFAdaptorManifestation(adaptor) {
408
408
  'mouseout': self.events.mouseout
409
409
  }//}}}
410
410
  }; /*}}}*/
411
+ this.elements.loop_finish = { /*{{{*/
412
+ 'type': 'primitive',
413
+ 'illustrator': {//{{{
414
+ 'endnodes': 'this',
415
+ 'closeblock': true,
416
+ 'label': function(node){
417
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
418
+ return ret;
419
+ },
420
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg',
421
+ }, //}}}
422
+ 'adaptor': {//{{{
423
+ 'mousedown': function (node,e) {
424
+ self.events.mousedown(node,e,true,true);
425
+ },
426
+ 'click': self.events.click,
427
+ 'dblclick': self.events.dblclick,
428
+ 'mouseover': self.events.mouseover,
429
+ 'mouseout': self.events.mouseout
430
+ }//}}}
431
+ }; /*}}}*/
411
432
  this.elements.parallel_finish = { /*{{{*/
412
433
  'type': 'primitive',
413
434
  'illustrator': {//{{{
@@ -472,7 +493,7 @@ function WFAdaptorManifestation(adaptor) {
472
493
  'menu_icon': self.elements.alternative.illustrator.svg.clone(),
473
494
  'type': 'alternative',
474
495
  'params': [self.adaptor.description.elements.alternative, node]}];
475
- if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length)
496
+ if((node.children('otherwise').length == 0) && node.parents('parallel').length == node.parents('parallel_branch').length && node.parent('choose').length == 0)
476
497
  childs.push({'label': 'Otherwise',
477
498
  'function_call': self.adaptor.description.insert_last_into,
478
499
  'menu_icon': self.elements.otherwise.illustrator.svg.clone(),
@@ -654,7 +675,7 @@ function WFAdaptorManifestation(adaptor) {
654
675
  }, //}}}
655
676
  'adaptor': {//{{{
656
677
  'mousedown': function (node,e) {
657
- self.events.mousedown(node,e,true,false);
678
+ self.events.mousedown(node,e,true,true);
658
679
  },
659
680
  'click': self.events.click,
660
681
  'dblclick': self.events.dblclick,
@@ -665,12 +686,13 @@ function WFAdaptorManifestation(adaptor) {
665
686
  this.elements.loop = { /*{{{*/
666
687
  'type': 'complex',
667
688
  'illustrator': {//{{{
668
- 'label': function(node){
669
- var ret = [ { column: 'Label', value: $(node).attr('condition') + ($(node).attr('mode') == 'pre_test' ? ' (⭱)' : ' (⭳)') } ];
670
- return ret;
689
+ 'resolve_symbol': function(node) {
690
+ if($(node).attr('mode') == 'pre_test') {
691
+ return 'loop_head';
692
+ } else {
693
+ return 'loop_tail';
694
+ }
671
695
  },
672
- 'endnodes': 'this',
673
- 'closeblock': true,
674
696
  'expansion': function(node) {
675
697
  return 'vertical';
676
698
  },
@@ -1123,6 +1145,25 @@ function WFAdaptorManifestation(adaptor) {
1123
1145
  'svg': self.adaptor.theme_dir + 'symbols/callmanipulate.svg'
1124
1146
  },//}}}
1125
1147
  }; /*}}}*/
1148
+ this.elements.loop_head = { /*{{{*/
1149
+ 'parent': 'loop',
1150
+ 'illustrator': {//{{{
1151
+ 'endnodes': 'this',
1152
+ 'closeblock': true,
1153
+ 'label': function(node){
1154
+ var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
1155
+ return ret;
1156
+ },
1157
+ }//}}}
1158
+ }; /*}}}*/
1159
+ this.elements.loop_tail = { /*{{{*/
1160
+ 'parent': 'loop',
1161
+ 'illustrator': {//{{{
1162
+ 'endnodes': 'aggregate',
1163
+ 'closeblock': false,
1164
+ 'closing_symbol': 'loop_finish'
1165
+ },//}}}
1166
+ }; /*}}}*/
1126
1167
  this.elements.choose_inclusive = { /*{{{*/
1127
1168
  'parent': 'choose',
1128
1169
  'illustrator': {//{{{
@@ -1147,6 +1188,22 @@ function WFAdaptorManifestation(adaptor) {
1147
1188
  'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1148
1189
  },//}}}
1149
1190
  }; /*}}}*/
1191
+ this.elements.loop_head_finish = { /*{{{*/
1192
+ 'parent': 'loop_finish',
1193
+ 'illustrator': {//{{{
1194
+ 'endnodes': 'this',
1195
+ 'closeblock': true,
1196
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1197
+ }//}}}
1198
+ }; /*}}}*/
1199
+ this.elements.loop_tail_finish = { /*{{{*/
1200
+ 'parent': 'loop_finish',
1201
+ 'illustrator': {//{{{
1202
+ 'endnodes': 'this',
1203
+ 'closeblock': false,
1204
+ 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg'
1205
+ },//}}}
1206
+ }; /*}}}*/
1150
1207
  this.elements.parallel_simple = { /*{{{*/
1151
1208
  'parent': 'parallel_finish',
1152
1209
  'illustrator': {//{{{
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.5.9"
3
+ s.version = "1.5.10"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
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
+ 29054
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.5.9
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: tools
13
13
  cert_chain: []
14
- date: 2019-10-22 00:00:00.000000000 Z
14
+ date: 2019-10-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -303,6 +303,7 @@ files:
303
303
  - server/resources/topics.xml
304
304
  - server/resources/transformation.xml
305
305
  - server/resources/transformation_dslx.xsl
306
+ - server/server.pid
306
307
  - server/server.rb
307
308
  - test/callback.rb
308
309
  - tools/cpee