cpee 1.5.19 → 1.5.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/model.css +24 -0
  3. data/cockpit/css/ui.css +25 -0
  4. data/cockpit/index.html +6 -6
  5. data/cockpit/js/details.js +70 -52
  6. data/cockpit/js/instance.js +61 -17
  7. data/cockpit/js/model.js +41 -0
  8. data/cockpit/js/ui.js +3 -0
  9. data/cockpit/model.html +191 -0
  10. data/cockpit/themes/compact/rngs/alternative.rng +1 -0
  11. data/cockpit/themes/compact/rngs/call.rng +111 -0
  12. data/cockpit/themes/compact/rngs/callmanipulate.rng +134 -0
  13. data/cockpit/themes/compact/rngs/choose.rng +1 -0
  14. data/cockpit/themes/compact/rngs/critical.rng +1 -0
  15. data/cockpit/themes/compact/rngs/escape.rng +1 -0
  16. data/cockpit/themes/compact/rngs/group.rng +1 -0
  17. data/cockpit/themes/compact/rngs/loop.rng +1 -0
  18. data/cockpit/themes/compact/rngs/manipulate.rng +1 -0
  19. data/cockpit/themes/compact/rngs/otherwise.rng +1 -0
  20. data/cockpit/themes/compact/rngs/parallel.rng +1 -0
  21. data/cockpit/themes/compact/rngs/parallel_branch.rng +1 -0
  22. data/cockpit/themes/compact/rngs/scripts.rng +24 -0
  23. data/cockpit/themes/compact/rngs/stop.rng +1 -0
  24. data/cockpit/themes/compact/rngs/terminate.rng +1 -0
  25. data/cockpit/themes/compact/symbols/alternative.svg +5 -0
  26. data/cockpit/themes/compact/symbols/arrow.svg +3 -0
  27. data/cockpit/themes/compact/symbols/call.svg +6 -0
  28. data/cockpit/themes/compact/symbols/callmanipulate.svg +8 -0
  29. data/cockpit/themes/compact/symbols/choose.svg +5 -0
  30. data/cockpit/themes/compact/symbols/choose_exclusive.svg +5 -0
  31. data/cockpit/themes/compact/symbols/choose_inclusive.svg +4 -0
  32. data/cockpit/themes/compact/symbols/complex.svg +8 -0
  33. data/cockpit/themes/compact/symbols/critical.svg +4 -0
  34. data/cockpit/themes/compact/symbols/end.svg +3 -0
  35. data/cockpit/themes/compact/symbols/escape.svg +5 -0
  36. data/cockpit/themes/compact/symbols/event_end.svg +3 -0
  37. data/cockpit/themes/compact/symbols/loop.svg +5 -0
  38. data/cockpit/themes/compact/symbols/manipulate.svg +4 -0
  39. data/cockpit/themes/compact/symbols/otherwise.svg +5 -0
  40. data/cockpit/themes/compact/symbols/parallel.svg +5 -0
  41. data/cockpit/themes/compact/symbols/parallel_branch.svg +5 -0
  42. data/cockpit/themes/compact/symbols/parallel_branch_compact.svg +4 -0
  43. data/cockpit/themes/compact/symbols/parallel_branch_event.svg +14 -0
  44. data/cockpit/themes/compact/symbols/parallel_branch_normal.svg +5 -0
  45. data/cockpit/themes/compact/symbols/scripts.svg +4 -0
  46. data/cockpit/themes/compact/symbols/start.svg +3 -0
  47. data/cockpit/themes/compact/symbols/stop.svg +5 -0
  48. data/cockpit/themes/compact/symbols/terminate.svg +4 -0
  49. data/cockpit/themes/compact/theme.js +30 -18
  50. data/cockpit/themes/default/rngs/callmanipulate.rng +5 -0
  51. data/cockpit/themes/default/theme.js +97 -57
  52. data/cockpit/themes/extended/rngs/alternative.rng +1 -0
  53. data/cockpit/themes/extended/rngs/call.rng +111 -0
  54. data/cockpit/themes/extended/rngs/callmanipulate.rng +134 -0
  55. data/cockpit/themes/extended/rngs/choose.rng +1 -0
  56. data/cockpit/themes/extended/rngs/critical.rng +1 -0
  57. data/cockpit/themes/extended/rngs/escape.rng +1 -0
  58. data/cockpit/themes/extended/rngs/group.rng +1 -0
  59. data/cockpit/themes/extended/rngs/loop.rng +1 -0
  60. data/cockpit/themes/extended/rngs/manipulate.rng +1 -0
  61. data/cockpit/themes/extended/rngs/otherwise.rng +1 -0
  62. data/cockpit/themes/extended/rngs/parallel.rng +1 -0
  63. data/cockpit/themes/extended/rngs/parallel_branch.rng +1 -0
  64. data/cockpit/themes/extended/rngs/scripts.rng +24 -0
  65. data/cockpit/themes/extended/rngs/stop.rng +1 -0
  66. data/cockpit/themes/extended/rngs/terminate.rng +1 -0
  67. data/cockpit/themes/extended/symbols/alternative.svg +5 -0
  68. data/cockpit/themes/extended/symbols/arrow.svg +3 -0
  69. data/cockpit/themes/extended/symbols/call.svg +6 -0
  70. data/cockpit/themes/extended/symbols/callmanipulate.svg +8 -0
  71. data/cockpit/themes/extended/symbols/choose.svg +5 -0
  72. data/cockpit/themes/extended/symbols/choose_exclusive.svg +5 -0
  73. data/cockpit/themes/extended/symbols/choose_inclusive.svg +4 -0
  74. data/cockpit/themes/extended/symbols/complex.svg +8 -0
  75. data/cockpit/themes/extended/symbols/critical.svg +4 -0
  76. data/cockpit/themes/extended/symbols/end.svg +3 -0
  77. data/cockpit/themes/extended/symbols/escape.svg +5 -0
  78. data/cockpit/themes/extended/symbols/event_end.svg +3 -0
  79. data/cockpit/themes/extended/symbols/loop.svg +5 -0
  80. data/cockpit/themes/extended/symbols/manipulate.svg +4 -0
  81. data/cockpit/themes/extended/symbols/otherwise.svg +5 -0
  82. data/cockpit/themes/extended/symbols/parallel.svg +5 -0
  83. data/cockpit/themes/extended/symbols/parallel_branch.svg +5 -0
  84. data/cockpit/themes/extended/symbols/parallel_branch_compact.svg +4 -0
  85. data/cockpit/themes/extended/symbols/parallel_branch_event.svg +14 -0
  86. data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +5 -0
  87. data/cockpit/themes/extended/symbols/scripts.svg +4 -0
  88. data/cockpit/themes/extended/symbols/start.svg +3 -0
  89. data/cockpit/themes/extended/symbols/stop.svg +5 -0
  90. data/cockpit/themes/extended/symbols/terminate.svg +4 -0
  91. data/cockpit/themes/extended/theme.js +30 -18
  92. data/cockpit/themes/labels/rngs/alternative.rng +25 -0
  93. data/cockpit/themes/labels/rngs/call.rng +81 -0
  94. data/cockpit/themes/labels/rngs/callmanipulate.rng +101 -0
  95. data/cockpit/themes/labels/rngs/choose.rng +12 -0
  96. data/cockpit/themes/labels/rngs/critical.rng +5 -0
  97. data/cockpit/themes/labels/rngs/escape.rng +1 -0
  98. data/cockpit/themes/labels/rngs/finalize.rng +6 -0
  99. data/cockpit/themes/labels/rngs/group.rng +3 -0
  100. data/cockpit/themes/labels/rngs/loop.rng +22 -0
  101. data/cockpit/themes/labels/rngs/manipulate.rng +9 -0
  102. data/cockpit/themes/labels/rngs/otherwise.rng +22 -0
  103. data/cockpit/themes/labels/rngs/parallel.rng +13 -0
  104. data/cockpit/themes/labels/rngs/parallel_branch.rng +8 -0
  105. data/cockpit/themes/labels/rngs/stop.rng +5 -0
  106. data/cockpit/themes/labels/rngs/terminate.rng +1 -0
  107. data/cockpit/themes/labels/rngs/update.rng +6 -0
  108. data/cockpit/themes/labels/symbols/alternative.svg +5 -0
  109. data/cockpit/themes/labels/symbols/arrow.svg +3 -0
  110. data/cockpit/themes/labels/symbols/call.svg +6 -0
  111. data/cockpit/themes/labels/symbols/callmanipulate.svg +8 -0
  112. data/cockpit/themes/labels/symbols/choose.svg +5 -0
  113. data/cockpit/themes/labels/symbols/choose_exclusive.svg +5 -0
  114. data/cockpit/themes/labels/symbols/choose_inclusive.svg +4 -0
  115. data/cockpit/themes/labels/symbols/complex.svg +8 -0
  116. data/cockpit/themes/labels/symbols/critical.svg +4 -0
  117. data/cockpit/themes/labels/symbols/end.svg +3 -0
  118. data/cockpit/themes/labels/symbols/escape.svg +5 -0
  119. data/cockpit/themes/labels/symbols/event_end.svg +3 -0
  120. data/cockpit/themes/labels/symbols/loop.svg +5 -0
  121. data/cockpit/themes/labels/symbols/manipulate.svg +4 -0
  122. data/cockpit/themes/labels/symbols/otherwise.svg +5 -0
  123. data/cockpit/themes/labels/symbols/parallel.svg +5 -0
  124. data/cockpit/themes/labels/symbols/parallel_branch.svg +5 -0
  125. data/cockpit/themes/labels/symbols/parallel_branch_compact.svg +4 -0
  126. data/cockpit/themes/labels/symbols/parallel_branch_event.svg +14 -0
  127. data/cockpit/themes/labels/symbols/parallel_branch_normal.svg +5 -0
  128. data/cockpit/themes/labels/symbols/scripts.svg +4 -0
  129. data/cockpit/themes/labels/symbols/start.svg +3 -0
  130. data/cockpit/themes/labels/symbols/stop.svg +5 -0
  131. data/cockpit/themes/labels/symbols/terminate.svg +4 -0
  132. data/cockpit/themes/model/rngs/alternative.rng +1 -0
  133. data/cockpit/themes/model/rngs/call.rng +62 -0
  134. data/cockpit/themes/model/rngs/callmanipulate.rng +67 -0
  135. data/cockpit/themes/model/rngs/choose.rng +1 -0
  136. data/cockpit/themes/model/rngs/critical.rng +1 -0
  137. data/cockpit/themes/model/rngs/escape.rng +1 -0
  138. data/cockpit/themes/model/rngs/group.rng +1 -0
  139. data/cockpit/themes/model/rngs/loop.rng +1 -0
  140. data/cockpit/themes/model/rngs/manipulate.rng +1 -0
  141. data/cockpit/themes/model/rngs/otherwise.rng +1 -0
  142. data/cockpit/themes/model/rngs/parallel.rng +1 -0
  143. data/cockpit/themes/model/rngs/parallel_branch.rng +1 -0
  144. data/cockpit/themes/model/rngs/scripts.rng +8 -0
  145. data/cockpit/themes/model/rngs/stop.rng +1 -0
  146. data/cockpit/themes/model/rngs/terminate.rng +1 -0
  147. data/cockpit/themes/model/symbols/alternative.svg +5 -0
  148. data/cockpit/themes/model/symbols/arrow.svg +3 -0
  149. data/cockpit/themes/model/symbols/call.svg +6 -0
  150. data/cockpit/themes/model/symbols/callmanipulate.svg +8 -0
  151. data/cockpit/themes/model/symbols/choose.svg +5 -0
  152. data/cockpit/themes/model/symbols/choose_exclusive.svg +5 -0
  153. data/cockpit/themes/model/symbols/choose_inclusive.svg +4 -0
  154. data/cockpit/themes/model/symbols/complex.svg +8 -0
  155. data/cockpit/themes/model/symbols/critical.svg +4 -0
  156. data/cockpit/themes/model/symbols/end.svg +3 -0
  157. data/cockpit/themes/model/symbols/escape.svg +5 -0
  158. data/cockpit/themes/model/symbols/event_end.svg +3 -0
  159. data/cockpit/themes/model/symbols/loop.svg +5 -0
  160. data/cockpit/themes/model/symbols/manipulate.svg +4 -0
  161. data/cockpit/themes/model/symbols/otherwise.svg +5 -0
  162. data/cockpit/themes/model/symbols/parallel.svg +5 -0
  163. data/cockpit/themes/model/symbols/parallel_branch.svg +5 -0
  164. data/cockpit/themes/model/symbols/parallel_branch_compact.svg +4 -0
  165. data/cockpit/themes/model/symbols/parallel_branch_event.svg +14 -0
  166. data/cockpit/themes/model/symbols/parallel_branch_normal.svg +5 -0
  167. data/cockpit/themes/model/symbols/scripts.svg +4 -0
  168. data/cockpit/themes/model/symbols/start.svg +3 -0
  169. data/cockpit/themes/model/symbols/stop.svg +5 -0
  170. data/cockpit/themes/model/symbols/terminate.svg +4 -0
  171. data/cockpit/themes/model/theme.js +1267 -0
  172. data/cockpit/themes/packed/rngs/alternative.rng +1 -0
  173. data/cockpit/themes/packed/rngs/call.rng +111 -0
  174. data/cockpit/themes/packed/rngs/callmanipulate.rng +134 -0
  175. data/cockpit/themes/packed/rngs/choose.rng +1 -0
  176. data/cockpit/themes/packed/rngs/critical.rng +1 -0
  177. data/cockpit/themes/packed/rngs/escape.rng +1 -0
  178. data/cockpit/themes/packed/rngs/group.rng +1 -0
  179. data/cockpit/themes/packed/rngs/loop.rng +1 -0
  180. data/cockpit/themes/packed/rngs/manipulate.rng +1 -0
  181. data/cockpit/themes/packed/rngs/otherwise.rng +1 -0
  182. data/cockpit/themes/packed/rngs/parallel.rng +1 -0
  183. data/cockpit/themes/packed/rngs/parallel_branch.rng +1 -0
  184. data/cockpit/themes/packed/rngs/scripts.rng +24 -0
  185. data/cockpit/themes/packed/rngs/stop.rng +1 -0
  186. data/cockpit/themes/packed/rngs/terminate.rng +1 -0
  187. data/cockpit/themes/packed/symbols/alternative.svg +5 -0
  188. data/cockpit/themes/packed/symbols/arrow.svg +3 -0
  189. data/cockpit/themes/packed/symbols/call.svg +6 -0
  190. data/cockpit/themes/packed/symbols/callmanipulate.svg +8 -0
  191. data/cockpit/themes/packed/symbols/choose.svg +5 -0
  192. data/cockpit/themes/packed/symbols/choose_exclusive.svg +5 -0
  193. data/cockpit/themes/packed/symbols/choose_inclusive.svg +4 -0
  194. data/cockpit/themes/packed/symbols/complex.svg +8 -0
  195. data/cockpit/themes/packed/symbols/critical.svg +4 -0
  196. data/cockpit/themes/packed/symbols/end.svg +3 -0
  197. data/cockpit/themes/packed/symbols/escape.svg +5 -0
  198. data/cockpit/themes/packed/symbols/event_end.svg +3 -0
  199. data/cockpit/themes/packed/symbols/loop.svg +5 -0
  200. data/cockpit/themes/packed/symbols/manipulate.svg +4 -0
  201. data/cockpit/themes/packed/symbols/otherwise.svg +5 -0
  202. data/cockpit/themes/packed/symbols/parallel.svg +5 -0
  203. data/cockpit/themes/packed/symbols/parallel_branch.svg +5 -0
  204. data/cockpit/themes/packed/symbols/parallel_branch_compact.svg +4 -0
  205. data/cockpit/themes/packed/symbols/parallel_branch_event.svg +14 -0
  206. data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +5 -0
  207. data/cockpit/themes/packed/symbols/scripts.svg +4 -0
  208. data/cockpit/themes/packed/symbols/start.svg +3 -0
  209. data/cockpit/themes/packed/symbols/stop.svg +5 -0
  210. data/cockpit/themes/packed/symbols/terminate.svg +4 -0
  211. data/cockpit/themes/packed/theme.js +30 -18
  212. data/cockpit/themes/preset/rngs/call.rng +0 -10
  213. data/cockpit/themes/preset/rngs/callmanipulate.rng +0 -13
  214. data/cockpit/themes/preset/symbols/alternative.svg +5 -0
  215. data/cockpit/themes/preset/symbols/arrow.svg +3 -0
  216. data/cockpit/themes/preset/symbols/call.svg +6 -0
  217. data/cockpit/themes/preset/symbols/callmanipulate.svg +8 -0
  218. data/cockpit/themes/preset/symbols/choose.svg +5 -0
  219. data/cockpit/themes/preset/symbols/choose_exclusive.svg +5 -0
  220. data/cockpit/themes/preset/symbols/choose_inclusive.svg +4 -0
  221. data/cockpit/themes/preset/symbols/complex.svg +8 -0
  222. data/cockpit/themes/preset/symbols/critical.svg +4 -0
  223. data/cockpit/themes/preset/symbols/end.svg +3 -0
  224. data/cockpit/themes/preset/symbols/escape.svg +5 -0
  225. data/cockpit/themes/preset/symbols/event_end.svg +3 -0
  226. data/cockpit/themes/preset/symbols/loop.svg +5 -0
  227. data/cockpit/themes/preset/symbols/manipulate.svg +4 -0
  228. data/cockpit/themes/preset/symbols/otherwise.svg +5 -0
  229. data/cockpit/themes/preset/symbols/parallel.svg +5 -0
  230. data/cockpit/themes/preset/symbols/parallel_branch.svg +5 -0
  231. data/cockpit/themes/preset/symbols/parallel_branch_compact.svg +4 -0
  232. data/cockpit/themes/preset/symbols/parallel_branch_event.svg +14 -0
  233. data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +5 -0
  234. data/cockpit/themes/preset/symbols/scripts.svg +4 -0
  235. data/cockpit/themes/preset/symbols/start.svg +3 -0
  236. data/cockpit/themes/preset/symbols/stop.svg +5 -0
  237. data/cockpit/themes/preset/symbols/terminate.svg +4 -0
  238. data/cockpit/themes/preset/theme.js +30 -18
  239. data/cpee.gemspec +2 -2
  240. data/lib/cpee/implementation.rb +28 -0
  241. data/lib/engine.xml +4 -0
  242. data/log/azure.rb +1 -1
  243. metadata +227 -3
@@ -0,0 +1,4 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1" y="1" width="28" height="28" rx="4" class="hfill rfill cline stand"/>
3
+ <text transform="translate(15,21)" class="normal">s</text>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="15" cy="15" r="14" class="stand"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="15" cy="15" r="14" class="hfill rfill cline stand"/>
3
+ <line x1="12.5" y1="22.5" x2="12.5" y2="8.5" class="stand"/>
4
+ <line x1="17.5" y1="22.5" x2="17.5" y2="8.5" class="stand"/>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="15" cy="15" r="14" class="standfat"/>
3
+ <circle cx="15" cy="15" r="9" class="black"/>
4
+ </svg>
@@ -132,6 +132,13 @@ function WFAdaptorManifestation(adaptor) {
132
132
  menu['Insert into'] = group;
133
133
  copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
134
134
  }
135
+ if (self.elements[xml_node.get(0).tagName].permissible_children_expert) {
136
+ group = self.elements[xml_node.get(0).tagName].permissible_children_expert(xml_node,'into');
137
+ if(group.length > 0) {
138
+ menu['Insert into (Experts Only!)'] = group;
139
+ copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
140
+ }
141
+ }
135
142
  }
136
143
  if (sibling) {
137
144
  group = self.elements[xml_node.parent().get(0).tagName].permissible_children(xml_node,'after');
@@ -139,6 +146,13 @@ function WFAdaptorManifestation(adaptor) {
139
146
  menu['Insert after'] = group;
140
147
  copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
141
148
  }
149
+ if (self.elements[xml_node.parent().get(0).tagName].permissible_children_expert) {
150
+ group = self.elements[xml_node.parent().get(0).tagName].permissible_children_expert(xml_node,'after');
151
+ if(group.length > 0) {
152
+ menu['Insert after (Experts Only!)'] = group;
153
+ copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
154
+ }
155
+ }
142
156
  }
143
157
 
144
158
  if(xml_node.get(0).tagName != 'description' && !self.elements[xml_node.get(0).tagName].neverdelete) {
@@ -146,10 +160,10 @@ function WFAdaptorManifestation(adaptor) {
146
160
  icon.children('.rfill').addClass('menu');
147
161
  menu['Delete'] = [{
148
162
  'label': 'Remove Element',
149
- 'function_call': self.adaptor.description.remove,
163
+ 'function_call': function(selector,target,selected){ self.adaptor.description.remove(selector,target); self.adaptor.illustrator.get_label_by_svg_id(selected).addClass('selected'); },
150
164
  'menu_icon': icon,
151
165
  'type': undefined,
152
- 'params': [null, xml_node]
166
+ 'params': [null, xml_node, self.selected()]
153
167
  }];
154
168
  }
155
169
  if($('> code', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
@@ -854,6 +868,19 @@ function WFAdaptorManifestation(adaptor) {
854
868
  var func = null;
855
869
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
856
870
  else { func = self.adaptor.description.insert_after }
871
+ var childs = [
872
+ {'label': 'Parallel Branch',
873
+ 'function_call': func,
874
+ 'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
875
+ 'type': 'parallel_branch',
876
+ 'params': [self.adaptor.description.elements.parallel_branch, node]},
877
+ ];
878
+ return childs;
879
+ }, //}}}
880
+ 'permissible_children_expert': function(node,mode) { //{{{
881
+ var func = null;
882
+ if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
883
+ else { func = self.adaptor.description.insert_after }
857
884
  var childs = [
858
885
  {'label': 'Service Call with Scripts',
859
886
  'function_call': func,
@@ -880,11 +907,6 @@ function WFAdaptorManifestation(adaptor) {
880
907
  'menu_icon': self.elements.loop.illustrator.svg.clone(),
881
908
  'type': 'loop',
882
909
  'params': [self.adaptor.description.elements.loop, node]},
883
- {'label': 'Parallel Branch',
884
- 'function_call': func,
885
- 'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
886
- 'type': 'parallel_branch',
887
- 'params': [self.adaptor.description.elements.parallel_branch, node]},
888
910
  {'label': 'Stop',
889
911
  'function_call': func,
890
912
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
@@ -995,12 +1017,7 @@ function WFAdaptorManifestation(adaptor) {
995
1017
  }, //}}}
996
1018
  'adaptor': {//{{{
997
1019
  'mousedown': function (node,e) {
998
- var xml_node = self.adaptor.description.get_node_by_svg_id(node);
999
- if(xml_node.get(0).parentNode.tagName == 'parallel') {
1000
- self.events.mousedown(node,e,true,false);
1001
- } else {
1002
- self.events.mousedown(node,e,true,true);
1003
- }
1020
+ self.events.mousedown(node,e,true,true);
1004
1021
  },
1005
1022
  'click': self.events.click,
1006
1023
  'dblclick': self.events.dblclick,
@@ -1174,11 +1191,6 @@ function WFAdaptorManifestation(adaptor) {
1174
1191
  'menu_icon': self.elements.loop.illustrator.svg.clone(),
1175
1192
  'type': 'loop',
1176
1193
  'params': [self.adaptor.description.elements.loop, node]},
1177
- {'label': 'Terminate',
1178
- 'function_call': func,
1179
- 'menu_icon': self.elements.terminate.illustrator.svg.clone(),
1180
- 'type': 'terminate',
1181
- 'params': [self.adaptor.description.elements.terminate, node]},
1182
1194
  {'label': 'Stop',
1183
1195
  'function_call': func,
1184
1196
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
@@ -0,0 +1,25 @@
1
+ <element rngui:version="1.2" name="alternative" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="condition" rngui:label="Condition">
3
+ <data type="string" rngui:label="Condition"/>
4
+ </attribute>
5
+ <element name="_probability" rngui:mark="true" rngui:header="Execution Probability">
6
+ <element name="_probability_min" rngui:label='Min in %'>
7
+ <data type='integer' rngui:label='Percent 0-100'>
8
+ <param name="minInclusive">1</param>
9
+ <param name="maxInclusive">100</param>
10
+ </data>
11
+ </element>
12
+ <element name="_probability_max" rngui:label='Max in %'>
13
+ <data type='integer' rngui:label='Percent 0-100'>
14
+ <param name="minInclusive">1</param>
15
+ <param name="maxInclusive">100</param>
16
+ </data>
17
+ </element>
18
+ <element name="_probability_avg" rngui:label='Avg in %'>
19
+ <data type='integer' rngui:label='Percent 0-100'>
20
+ <param name="minInclusive">1</param>
21
+ <param name="maxInclusive">100</param>
22
+ </data>
23
+ </element>
24
+ </element>
25
+ </element>
@@ -0,0 +1,81 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
3
+ <data type="string" rngui:readonly="true"/>
4
+ </attribute>
5
+ <attribute name="endpoint" rngui:label="Endpoint">
6
+ <data type="string"/>
7
+ </attribute>
8
+ <element name='parameters' rngui:header="Parameters">
9
+ <element name="label" rngui:label="Label">
10
+ <data type="string" rngui:label="Short description of the task"/>
11
+ </element>
12
+ <element name="method" rngui:label="Method">
13
+ <choice>
14
+ <value>:post</value>
15
+ <value>:get</value>
16
+ <value>:put</value>
17
+ <value>:delete</value>
18
+ </choice>
19
+ </element>
20
+ <element name="arguments" rngui:header="Arguments">
21
+ <zeroOrMore rngui:label="Create Argument Pair">
22
+ <element rngui:label='Name' rngui:labeltype='xml'>
23
+ <anyName/>
24
+ <data type="string" rngui:label="Value"/>
25
+ </element>
26
+ </zeroOrMore>
27
+ </element>
28
+ <element name="sensors" rngui:header="Sensors">
29
+ <zeroOrMore rngui:label="Add Sensor">
30
+ <element name="sensor">
31
+ <element name="name" rngui:label="Label">
32
+ <data type="string" rngui:label="Label"/>
33
+ </element>
34
+ <element name="extractor_url" rngui:label="Extractor Url">
35
+ <data type="string" rngui:label="Url"/>
36
+ </element>
37
+ <element name="extractor_arg" rngui:label="Extractor Argument">
38
+ <data type="string" rngui:label="Path"/>
39
+ </element>
40
+ <element name="visualizer_url" rngui:label="Visualizer Url">
41
+ <data type="string" rngui:label="Url"/>
42
+ </element>
43
+ <element name="visualizer_params" rngui:header="Visualizer Arguments">
44
+ <zeroOrMore rngui:label="Create Argument Pair">
45
+ <element rngui:label='Name'>
46
+ <anyName/>
47
+ <data type="string" rngui:label="Value"/>
48
+ </element>
49
+ </zeroOrMore>
50
+ </element>
51
+ </element>
52
+ </zeroOrMore>
53
+ </element>
54
+ </element>
55
+ <element name="_timing" rngui:header="Timing">
56
+ <element name="_timing_min" rngui:label='Min in min'>
57
+ <data type='float' rngui:label='Minutes'/>
58
+ </element>
59
+ <element name="_timing_max" rngui:label='Max in min'>
60
+ <data type='float' rngui:label='Minutes'/>
61
+ </element>
62
+ <element name="_timing_avg" rngui:label='Avg in min'>
63
+ <data type='float' rngui:label='Minutes'/>
64
+ </element>
65
+ </element>
66
+ <element name="_notes" rngui:header="Notes">
67
+ <element name="_notes_general" rngui:label='General'>
68
+ <text rngui:wrap='true' rngui:label='Notes'/>
69
+ </element>
70
+ <element name="_attachments">
71
+ <zeroOrMore rngui:label="Create Attachment">
72
+ <element name='_attachment' rngui:label='Attachment'>
73
+ <attribute name="label" rngui:label="Note">
74
+ <data type="string"/>
75
+ </attribute>
76
+ <data type="string" rngui:label="Url"/>
77
+ </element>
78
+ </zeroOrMore>
79
+ </element>
80
+ </element>
81
+ </element>
@@ -0,0 +1,101 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
3
+ <data type="string" rngui:readonly="true"/>
4
+ </attribute>
5
+ <attribute name="endpoint" rngui:label="Endpoint">
6
+ <data type="string"/>
7
+ </attribute>
8
+ <element name='parameters' rngui:header="Parameters">
9
+ <element name="label" rngui:label="Label">
10
+ <data type="string" rngui:label="Short description of the task"/>
11
+ </element>
12
+ <element name="method" rngui:label="Method">
13
+ <choice>
14
+ <value>:post</value>
15
+ <value>:get</value>
16
+ <value>:put</value>
17
+ <value>:delete</value>
18
+ </choice>
19
+ </element>
20
+ <element name="arguments" rngui:header="Arguments">
21
+ <zeroOrMore rngui:label="Create Argument Pair">
22
+ <element rngui:label='Name' rngui:labeltype='xml'>
23
+ <anyName/>
24
+ <data type="string" rngui:label="Value"/>
25
+ </element>
26
+ </zeroOrMore>
27
+ </element>
28
+ <element name="sensors" rngui:header="Sensors">
29
+ <zeroOrMore rngui:label="Add Sensor">
30
+ <element name="sensor">
31
+ <element name="name" rngui:label="Label">
32
+ <data type="string" rngui:label="Label"/>
33
+ </element>
34
+ <element name="extractor_url" rngui:label="Extractor Url">
35
+ <data type="string" rngui:label="Url"/>
36
+ </element>
37
+ <element name="extractor_arg" rngui:label="Extractor Argument">
38
+ <data type="string" rngui:label="Path"/>
39
+ </element>
40
+ <element name="visualizer_url" rngui:label="Visualizer Url">
41
+ <data type="string" rngui:label="Url"/>
42
+ </element>
43
+ <element name="visualizer_params" rngui:header="Visualizer Arguments">
44
+ <zeroOrMore rngui:label="Create Argument Pair">
45
+ <element rngui:label='Name'>
46
+ <anyName/>
47
+ <data type="string" rngui:label="Value"/>
48
+ </element>
49
+ </zeroOrMore>
50
+ </element>
51
+ </element>
52
+ </zeroOrMore>
53
+ </element>
54
+ </element>
55
+ <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
56
+ <element name="url" rngui:label='HTML Snippet'>
57
+ <data type="string" rngui:label="url to report snippet"/>
58
+ </element>
59
+ </element>
60
+ <element name="finalize" rngui:header="Finalize" rngui:label="Code">
61
+ <attribute name="output" rngui:label="Access Variable" rngui:default="result">
62
+ <data type="string" rngui:readonly="true"/>
63
+ </attribute>
64
+ <text rngui:label='Script that is executed, when a service returns data'/>
65
+ </element>
66
+ <element name="update" rngui:header="Update" rngui:label="Code">
67
+ <attribute name="output" rngui:label="Access Variable" rngui:default="result">
68
+ <data type="string" rngui:readonly="true"/>
69
+ </attribute>
70
+ <text rngui:label='Script that is executed, when a service sends intermediate data'/>
71
+ </element>
72
+ <element name="_timing" rngui:header="Timing">
73
+ <element name="_timing_min" rngui:label='Min in min'>
74
+ <data type='float' rngui:label='Minutes'/>
75
+ </element>
76
+ <element name="_timing_max" rngui:label='Max in min'>
77
+ <data type='float' rngui:label='Minutes'/>
78
+ </element>
79
+ <element name="_timing_avg" rngui:label='Avg in min'>
80
+ <data type='float' rngui:label='Minutes'/>
81
+ </element>
82
+ </element>
83
+ <element name="_notes" rngui:header="Notes">
84
+ <element name="_notes_general" rngui:label='General'>
85
+ <text rngui:wrap='true' rngui:label='Notes'/>
86
+ </element>
87
+ <element name="_notes_output" rngui:label='Output'>
88
+ <text rngui:wrap='true' rngui:label='Notes'/>
89
+ </element>
90
+ <element name="_attachments">
91
+ <zeroOrMore rngui:label="Create Attachment">
92
+ <element name='_attachment' rngui:label='Attachment'>
93
+ <attribute name="label" rngui:label="Note">
94
+ <data type="string"/>
95
+ </attribute>
96
+ <data type="string" rngui:label="Url"/>
97
+ </element>
98
+ </zeroOrMore>
99
+ </element>
100
+ </element>
101
+ </element>
@@ -0,0 +1,12 @@
1
+ <element rngui:version="1.2" name="choose" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="mode" rngui:label="Mode" rngui:default="exclusive">
3
+ <choice>
4
+ <value>exclusive</value>
5
+ <value>inclusive</value>
6
+ </choice>
7
+ </attribute>
8
+ <element rngui:ignore="true" name="alternative">
9
+ <attribute name="condition"><data type="string"/></attribute>
10
+ </element>
11
+ <element rngui:ignore="true" name="otherwise"/>
12
+ </element>
@@ -0,0 +1,5 @@
1
+ <element rngui:version="1.2" name="critical" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="sid" rngui:label="SID" rngui:default="section" rngui:hint="Identical SID's shared by between differnt 'critical' elements define mutual exclusive areas.">
3
+ <data type="string"/>
4
+ </attribute>
5
+ </element>
@@ -0,0 +1 @@
1
+ <element rngui:version="1.2" name="escape" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org"/>
@@ -0,0 +1,6 @@
1
+ <element name="finalize" rngui:version="1.2" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="output" rngui:label="Access Variable" rngui:default="result">
3
+ <data type="string" rngui:readonly="true"/>
4
+ </attribute>
5
+ <text rngui:label='Script that is executed, when a service returns data'/>
6
+ </element>
@@ -0,0 +1,3 @@
1
+ <element name="group" rngui:version="1.2" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <text rngui:label='A group of tasks, that belongs together'/>
3
+ </element>
@@ -0,0 +1,22 @@
1
+ <element rngui:version="1.2" name="loop" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="mode" rngui:label="Mode" rngui:default="pre_test">
3
+ <choice>
4
+ <value>pre_test</value>
5
+ <value>post_test</value>
6
+ </choice>
7
+ </attribute>
8
+ <attribute name="condition" rngui:label="Condition">
9
+ <data type="string" rngui:label="Condition"/>
10
+ </attribute>
11
+ <element name="_probability" rngui:mark="true" rngui:header="Execution Probability">
12
+ <element name="_probability_min" rngui:label='Min times'>
13
+ <data type='nonNegativeInteger' rngui:label='Times'/>
14
+ </element>
15
+ <element name="_probability_max" rngui:label='Max times'>
16
+ <data type='nonNegativeInteger' rngui:label='Times'/>
17
+ </element>
18
+ <element name="_probability_avg" rngui:label='Avg times'>
19
+ <data type='nonNegativeInteger' rngui:label='Times'/>
20
+ </element>
21
+ </element>
22
+ </element>
@@ -0,0 +1,9 @@
1
+ <element rngui:version="1.2" name="manipulate" rngui:label="Script" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="id" rngui:label="ID" rngui:default="javascript:get_free_id()">
3
+ <data type="string" rngui:readonly="true"/>
4
+ </attribute>
5
+ <attribute name="label" rngui:label="Label">
6
+ <data type="string" rngui:label="Short description of the task"/>
7
+ </attribute>
8
+ <text rngui:label='Script that is executed'/>
9
+ </element>
@@ -0,0 +1,22 @@
1
+ <element rngui:version="1.2" name="otherwise" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name="_probability" rngui:mark="true" rngui:header="Execution Probability">
3
+ <element name="_probability_min" rngui:label='Min in %'>
4
+ <data type='integer' rngui:label='Percent 0-100'>
5
+ <param name="minInclusive">1</param>
6
+ <param name="maxInclusive">100</param>
7
+ </data>
8
+ </element>
9
+ <element name="_probability_max" rngui:label='Max in %'>
10
+ <data type='integer' rngui:label='Percent 0-100'>
11
+ <param name="minInclusive">1</param>
12
+ <param name="maxInclusive">100</param>
13
+ </data>
14
+ </element>
15
+ <element name="_probability_avg" rngui:label='Avg in %'>
16
+ <data type='integer' rngui:label='Percent 0-100'>
17
+ <param name="minInclusive">1</param>
18
+ <param name="maxInclusive">100</param>
19
+ </data>
20
+ </element>
21
+ </element>
22
+ </element>
@@ -0,0 +1,13 @@
1
+ <element rngui:version="1.2" name="parallel" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="wait" rngui:label="Wait" rngui:default="-1" rngui:hint="-1 to wait for all branches.">
3
+ <data type="integer"/>
4
+ </attribute>
5
+ <element rngui:ignore="true" name="parallel_branch">
6
+ <attribute name="pass"><data type="string"/></attribute>
7
+ <attribute name="local"><data type="string"/></attribute>
8
+ </element>
9
+ <element rngui:ignore="true" name="parallel_branch">
10
+ <attribute name="pass"><data type="string"/></attribute>
11
+ <attribute name="local"><data type="string"/></attribute>
12
+ </element>
13
+ </element>
@@ -0,0 +1,8 @@
1
+ <element rngui:version="1.2" name="parallel_branch" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="pass" rngui:label="Pass to branch">
3
+ <data type="string" rngui:label="Data element passed to the local scope, thus not affected by global changes ..."/>
4
+ </attribute>
5
+ <attribute name="local" rngui:label="Local scope">
6
+ <data type="string" rngui:label="Name of the passed data element in the local scope ..."/>
7
+ </attribute>
8
+ </element>