cpee 1.5.16 → 1.5.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) 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 +62 -18
  7. data/cockpit/js/model.js +41 -0
  8. data/cockpit/js/ui.js +3 -0
  9. data/cockpit/js/wfadaptor.js +1 -1
  10. data/cockpit/model.html +191 -0
  11. data/cockpit/testsets/BCO.xml +2 -2
  12. data/cockpit/testsets/BCS.xml +2 -2
  13. data/cockpit/testsets/Lego Full.xml +142 -0
  14. data/cockpit/testsets/Lego Liddy.xml +40 -0
  15. data/cockpit/testsets/Lego_Part_1.xml +85 -0
  16. data/cockpit/testsets/Linear.xml +2 -2
  17. data/cockpit/testsets/Syncing P34 1.xml +2 -2
  18. data/cockpit/testsets/Syncing P34 2.xml +2 -2
  19. data/cockpit/testsets/Syncing P34 3.xml +2 -2
  20. data/cockpit/testsets/Syncing P34.xml +2 -2
  21. data/cockpit/testsets/testsets.xml +3 -1
  22. data/cockpit/themes/compact/rngs/alternative.rng +1 -0
  23. data/cockpit/themes/compact/rngs/call.rng +111 -0
  24. data/cockpit/themes/compact/rngs/callmanipulate.rng +134 -0
  25. data/cockpit/themes/compact/rngs/choose.rng +1 -0
  26. data/cockpit/themes/compact/rngs/critical.rng +1 -0
  27. data/cockpit/themes/compact/rngs/escape.rng +1 -0
  28. data/cockpit/themes/compact/rngs/group.rng +1 -0
  29. data/cockpit/themes/compact/rngs/loop.rng +1 -0
  30. data/cockpit/themes/compact/rngs/manipulate.rng +1 -0
  31. data/cockpit/themes/compact/rngs/otherwise.rng +1 -0
  32. data/cockpit/themes/compact/rngs/parallel.rng +1 -0
  33. data/cockpit/themes/compact/rngs/parallel_branch.rng +1 -0
  34. data/cockpit/themes/compact/rngs/scripts.rng +24 -0
  35. data/cockpit/themes/compact/rngs/stop.rng +1 -0
  36. data/cockpit/themes/compact/rngs/terminate.rng +1 -0
  37. data/cockpit/themes/compact/symbols/alternative.svg +5 -0
  38. data/cockpit/themes/compact/symbols/arrow.svg +3 -0
  39. data/cockpit/themes/compact/symbols/call.svg +6 -0
  40. data/cockpit/themes/compact/symbols/callmanipulate.svg +8 -0
  41. data/cockpit/themes/compact/symbols/choose.svg +5 -0
  42. data/cockpit/themes/compact/symbols/choose_exclusive.svg +5 -0
  43. data/cockpit/themes/compact/symbols/choose_inclusive.svg +4 -0
  44. data/cockpit/themes/compact/symbols/complex.svg +8 -0
  45. data/cockpit/themes/compact/symbols/critical.svg +4 -0
  46. data/cockpit/themes/compact/symbols/end.svg +3 -0
  47. data/cockpit/themes/compact/symbols/escape.svg +5 -0
  48. data/cockpit/themes/compact/symbols/event_end.svg +3 -0
  49. data/cockpit/themes/compact/symbols/loop.svg +5 -0
  50. data/cockpit/themes/compact/symbols/manipulate.svg +4 -0
  51. data/cockpit/themes/compact/symbols/otherwise.svg +5 -0
  52. data/cockpit/themes/compact/symbols/parallel.svg +5 -0
  53. data/cockpit/themes/compact/symbols/parallel_branch.svg +5 -0
  54. data/cockpit/themes/compact/symbols/parallel_branch_compact.svg +4 -0
  55. data/cockpit/themes/compact/symbols/parallel_branch_event.svg +14 -0
  56. data/cockpit/themes/compact/symbols/parallel_branch_normal.svg +5 -0
  57. data/cockpit/themes/compact/symbols/scripts.svg +4 -0
  58. data/cockpit/themes/compact/symbols/start.svg +3 -0
  59. data/cockpit/themes/compact/symbols/stop.svg +5 -0
  60. data/cockpit/themes/compact/symbols/terminate.svg +4 -0
  61. data/cockpit/themes/compact/theme.js +101 -61
  62. data/cockpit/themes/default/rngs/callmanipulate.rng +5 -0
  63. data/cockpit/themes/default/theme.js +97 -57
  64. data/cockpit/themes/extended/rngs/alternative.rng +1 -0
  65. data/cockpit/themes/extended/rngs/call.rng +111 -0
  66. data/cockpit/themes/extended/rngs/callmanipulate.rng +134 -0
  67. data/cockpit/themes/extended/rngs/choose.rng +1 -0
  68. data/cockpit/themes/extended/rngs/critical.rng +1 -0
  69. data/cockpit/themes/extended/rngs/escape.rng +1 -0
  70. data/cockpit/themes/extended/rngs/group.rng +1 -0
  71. data/cockpit/themes/extended/rngs/loop.rng +1 -0
  72. data/cockpit/themes/extended/rngs/manipulate.rng +1 -0
  73. data/cockpit/themes/extended/rngs/otherwise.rng +1 -0
  74. data/cockpit/themes/extended/rngs/parallel.rng +1 -0
  75. data/cockpit/themes/extended/rngs/parallel_branch.rng +1 -0
  76. data/cockpit/themes/extended/rngs/scripts.rng +24 -0
  77. data/cockpit/themes/extended/rngs/stop.rng +1 -0
  78. data/cockpit/themes/extended/rngs/terminate.rng +1 -0
  79. data/cockpit/themes/extended/symbols/alternative.svg +5 -0
  80. data/cockpit/themes/extended/symbols/arrow.svg +3 -0
  81. data/cockpit/themes/extended/symbols/call.svg +6 -0
  82. data/cockpit/themes/extended/symbols/callmanipulate.svg +8 -0
  83. data/cockpit/themes/extended/symbols/choose.svg +5 -0
  84. data/cockpit/themes/extended/symbols/choose_exclusive.svg +5 -0
  85. data/cockpit/themes/extended/symbols/choose_inclusive.svg +4 -0
  86. data/cockpit/themes/extended/symbols/complex.svg +8 -0
  87. data/cockpit/themes/extended/symbols/critical.svg +4 -0
  88. data/cockpit/themes/extended/symbols/end.svg +3 -0
  89. data/cockpit/themes/extended/symbols/escape.svg +5 -0
  90. data/cockpit/themes/extended/symbols/event_end.svg +3 -0
  91. data/cockpit/themes/extended/symbols/loop.svg +5 -0
  92. data/cockpit/themes/extended/symbols/manipulate.svg +4 -0
  93. data/cockpit/themes/extended/symbols/otherwise.svg +5 -0
  94. data/cockpit/themes/extended/symbols/parallel.svg +5 -0
  95. data/cockpit/themes/extended/symbols/parallel_branch.svg +5 -0
  96. data/cockpit/themes/extended/symbols/parallel_branch_compact.svg +4 -0
  97. data/cockpit/themes/extended/symbols/parallel_branch_event.svg +14 -0
  98. data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +5 -0
  99. data/cockpit/themes/extended/symbols/scripts.svg +4 -0
  100. data/cockpit/themes/extended/symbols/start.svg +3 -0
  101. data/cockpit/themes/extended/symbols/stop.svg +5 -0
  102. data/cockpit/themes/extended/symbols/terminate.svg +4 -0
  103. data/cockpit/themes/extended/theme.js +101 -61
  104. data/cockpit/themes/labels/rngs/alternative.rng +25 -0
  105. data/cockpit/themes/labels/rngs/call.rng +81 -0
  106. data/cockpit/themes/labels/rngs/callmanipulate.rng +101 -0
  107. data/cockpit/themes/labels/rngs/choose.rng +12 -0
  108. data/cockpit/themes/labels/rngs/critical.rng +5 -0
  109. data/cockpit/themes/labels/rngs/escape.rng +1 -0
  110. data/cockpit/themes/labels/rngs/finalize.rng +6 -0
  111. data/cockpit/themes/labels/rngs/group.rng +3 -0
  112. data/cockpit/themes/labels/rngs/loop.rng +22 -0
  113. data/cockpit/themes/labels/rngs/manipulate.rng +9 -0
  114. data/cockpit/themes/labels/rngs/otherwise.rng +22 -0
  115. data/cockpit/themes/labels/rngs/parallel.rng +13 -0
  116. data/cockpit/themes/labels/rngs/parallel_branch.rng +8 -0
  117. data/cockpit/themes/labels/rngs/stop.rng +5 -0
  118. data/cockpit/themes/labels/rngs/terminate.rng +1 -0
  119. data/cockpit/themes/labels/rngs/update.rng +6 -0
  120. data/cockpit/themes/labels/symbols/alternative.svg +5 -0
  121. data/cockpit/themes/labels/symbols/arrow.svg +3 -0
  122. data/cockpit/themes/labels/symbols/call.svg +6 -0
  123. data/cockpit/themes/labels/symbols/callmanipulate.svg +8 -0
  124. data/cockpit/themes/labels/symbols/choose.svg +5 -0
  125. data/cockpit/themes/labels/symbols/choose_exclusive.svg +5 -0
  126. data/cockpit/themes/labels/symbols/choose_inclusive.svg +4 -0
  127. data/cockpit/themes/labels/symbols/complex.svg +8 -0
  128. data/cockpit/themes/labels/symbols/critical.svg +4 -0
  129. data/cockpit/themes/labels/symbols/end.svg +3 -0
  130. data/cockpit/themes/labels/symbols/escape.svg +5 -0
  131. data/cockpit/themes/labels/symbols/event_end.svg +3 -0
  132. data/cockpit/themes/labels/symbols/loop.svg +5 -0
  133. data/cockpit/themes/labels/symbols/manipulate.svg +4 -0
  134. data/cockpit/themes/labels/symbols/otherwise.svg +5 -0
  135. data/cockpit/themes/labels/symbols/parallel.svg +5 -0
  136. data/cockpit/themes/labels/symbols/parallel_branch.svg +5 -0
  137. data/cockpit/themes/labels/symbols/parallel_branch_compact.svg +4 -0
  138. data/cockpit/themes/labels/symbols/parallel_branch_event.svg +14 -0
  139. data/cockpit/themes/labels/symbols/parallel_branch_normal.svg +5 -0
  140. data/cockpit/themes/labels/symbols/scripts.svg +4 -0
  141. data/cockpit/themes/labels/symbols/start.svg +3 -0
  142. data/cockpit/themes/labels/symbols/stop.svg +5 -0
  143. data/cockpit/themes/labels/symbols/terminate.svg +4 -0
  144. data/cockpit/themes/model/rngs/alternative.rng +1 -0
  145. data/cockpit/themes/model/rngs/call.rng +62 -0
  146. data/cockpit/themes/model/rngs/callmanipulate.rng +67 -0
  147. data/cockpit/themes/model/rngs/choose.rng +1 -0
  148. data/cockpit/themes/model/rngs/critical.rng +1 -0
  149. data/cockpit/themes/model/rngs/escape.rng +1 -0
  150. data/cockpit/themes/model/rngs/group.rng +1 -0
  151. data/cockpit/themes/model/rngs/loop.rng +1 -0
  152. data/cockpit/themes/model/rngs/manipulate.rng +1 -0
  153. data/cockpit/themes/model/rngs/otherwise.rng +1 -0
  154. data/cockpit/themes/model/rngs/parallel.rng +1 -0
  155. data/cockpit/themes/model/rngs/parallel_branch.rng +1 -0
  156. data/cockpit/themes/model/rngs/scripts.rng +8 -0
  157. data/cockpit/themes/model/rngs/stop.rng +1 -0
  158. data/cockpit/themes/model/rngs/terminate.rng +1 -0
  159. data/cockpit/themes/model/symbols/alternative.svg +5 -0
  160. data/cockpit/themes/model/symbols/arrow.svg +3 -0
  161. data/cockpit/themes/model/symbols/call.svg +6 -0
  162. data/cockpit/themes/model/symbols/callmanipulate.svg +8 -0
  163. data/cockpit/themes/model/symbols/choose.svg +5 -0
  164. data/cockpit/themes/model/symbols/choose_exclusive.svg +5 -0
  165. data/cockpit/themes/model/symbols/choose_inclusive.svg +4 -0
  166. data/cockpit/themes/model/symbols/complex.svg +8 -0
  167. data/cockpit/themes/model/symbols/critical.svg +4 -0
  168. data/cockpit/themes/model/symbols/end.svg +3 -0
  169. data/cockpit/themes/model/symbols/escape.svg +5 -0
  170. data/cockpit/themes/model/symbols/event_end.svg +3 -0
  171. data/cockpit/themes/model/symbols/loop.svg +5 -0
  172. data/cockpit/themes/model/symbols/manipulate.svg +4 -0
  173. data/cockpit/themes/model/symbols/otherwise.svg +5 -0
  174. data/cockpit/themes/model/symbols/parallel.svg +5 -0
  175. data/cockpit/themes/model/symbols/parallel_branch.svg +5 -0
  176. data/cockpit/themes/model/symbols/parallel_branch_compact.svg +4 -0
  177. data/cockpit/themes/model/symbols/parallel_branch_event.svg +14 -0
  178. data/cockpit/themes/model/symbols/parallel_branch_normal.svg +5 -0
  179. data/cockpit/themes/model/symbols/scripts.svg +4 -0
  180. data/cockpit/themes/model/symbols/start.svg +3 -0
  181. data/cockpit/themes/model/symbols/stop.svg +5 -0
  182. data/cockpit/themes/model/symbols/terminate.svg +4 -0
  183. data/cockpit/themes/model/theme.js +1267 -0
  184. data/cockpit/themes/packed/rngs/alternative.rng +1 -0
  185. data/cockpit/themes/packed/rngs/call.rng +111 -0
  186. data/cockpit/themes/packed/rngs/callmanipulate.rng +134 -0
  187. data/cockpit/themes/packed/rngs/choose.rng +1 -0
  188. data/cockpit/themes/packed/rngs/critical.rng +1 -0
  189. data/cockpit/themes/packed/rngs/escape.rng +1 -0
  190. data/cockpit/themes/packed/rngs/group.rng +1 -0
  191. data/cockpit/themes/packed/rngs/loop.rng +1 -0
  192. data/cockpit/themes/packed/rngs/manipulate.rng +1 -0
  193. data/cockpit/themes/packed/rngs/otherwise.rng +1 -0
  194. data/cockpit/themes/packed/rngs/parallel.rng +1 -0
  195. data/cockpit/themes/packed/rngs/parallel_branch.rng +1 -0
  196. data/cockpit/themes/packed/rngs/scripts.rng +24 -0
  197. data/cockpit/themes/packed/rngs/stop.rng +1 -0
  198. data/cockpit/themes/packed/rngs/terminate.rng +1 -0
  199. data/cockpit/themes/packed/symbols/alternative.svg +5 -0
  200. data/cockpit/themes/packed/symbols/arrow.svg +3 -0
  201. data/cockpit/themes/packed/symbols/call.svg +6 -0
  202. data/cockpit/themes/packed/symbols/callmanipulate.svg +8 -0
  203. data/cockpit/themes/packed/symbols/choose.svg +5 -0
  204. data/cockpit/themes/packed/symbols/choose_exclusive.svg +5 -0
  205. data/cockpit/themes/packed/symbols/choose_inclusive.svg +4 -0
  206. data/cockpit/themes/packed/symbols/complex.svg +8 -0
  207. data/cockpit/themes/packed/symbols/critical.svg +4 -0
  208. data/cockpit/themes/packed/symbols/end.svg +3 -0
  209. data/cockpit/themes/packed/symbols/escape.svg +5 -0
  210. data/cockpit/themes/packed/symbols/event_end.svg +3 -0
  211. data/cockpit/themes/packed/symbols/loop.svg +5 -0
  212. data/cockpit/themes/packed/symbols/manipulate.svg +4 -0
  213. data/cockpit/themes/packed/symbols/otherwise.svg +5 -0
  214. data/cockpit/themes/packed/symbols/parallel.svg +5 -0
  215. data/cockpit/themes/packed/symbols/parallel_branch.svg +5 -0
  216. data/cockpit/themes/packed/symbols/parallel_branch_compact.svg +4 -0
  217. data/cockpit/themes/packed/symbols/parallel_branch_event.svg +14 -0
  218. data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +5 -0
  219. data/cockpit/themes/packed/symbols/scripts.svg +4 -0
  220. data/cockpit/themes/packed/symbols/start.svg +3 -0
  221. data/cockpit/themes/packed/symbols/stop.svg +5 -0
  222. data/cockpit/themes/packed/symbols/terminate.svg +4 -0
  223. data/cockpit/themes/packed/theme.js +101 -61
  224. data/cockpit/themes/preset/rngs/call.rng +0 -10
  225. data/cockpit/themes/preset/rngs/callmanipulate.rng +0 -13
  226. data/cockpit/themes/preset/symbols/alternative.svg +5 -0
  227. data/cockpit/themes/preset/symbols/arrow.svg +3 -0
  228. data/cockpit/themes/preset/symbols/call.svg +6 -0
  229. data/cockpit/themes/preset/symbols/callmanipulate.svg +8 -0
  230. data/cockpit/themes/preset/symbols/choose.svg +5 -0
  231. data/cockpit/themes/preset/symbols/choose_exclusive.svg +5 -0
  232. data/cockpit/themes/preset/symbols/choose_inclusive.svg +4 -0
  233. data/cockpit/themes/preset/symbols/complex.svg +8 -0
  234. data/cockpit/themes/preset/symbols/critical.svg +4 -0
  235. data/cockpit/themes/preset/symbols/end.svg +3 -0
  236. data/cockpit/themes/preset/symbols/escape.svg +5 -0
  237. data/cockpit/themes/preset/symbols/event_end.svg +3 -0
  238. data/cockpit/themes/preset/symbols/loop.svg +5 -0
  239. data/cockpit/themes/preset/symbols/manipulate.svg +4 -0
  240. data/cockpit/themes/preset/symbols/otherwise.svg +5 -0
  241. data/cockpit/themes/preset/symbols/parallel.svg +5 -0
  242. data/cockpit/themes/preset/symbols/parallel_branch.svg +5 -0
  243. data/cockpit/themes/preset/symbols/parallel_branch_compact.svg +4 -0
  244. data/cockpit/themes/preset/symbols/parallel_branch_event.svg +14 -0
  245. data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +5 -0
  246. data/cockpit/themes/preset/symbols/scripts.svg +4 -0
  247. data/cockpit/themes/preset/symbols/start.svg +3 -0
  248. data/cockpit/themes/preset/symbols/stop.svg +5 -0
  249. data/cockpit/themes/preset/symbols/terminate.svg +4 -0
  250. data/cockpit/themes/preset/theme.js +101 -61
  251. data/cpee.gemspec +3 -2
  252. data/lib/cpee/implementation.rb +28 -0
  253. data/lib/cpee/instantiation.rb +22 -5
  254. data/lib/engine.xml +4 -0
  255. data/lib/instantiation.xml +9 -0
  256. data/log/azure.rb +10 -0
  257. data/log/azure_logger.rb +136 -0
  258. data/server/handlerwrappers/default.rb +12 -12
  259. data/server/resources/transformation_dslx.xsl +29 -5
  260. data/server/server.pid +1 -0
  261. metadata +253 -3
@@ -0,0 +1,4 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <path class="cline hfill rfill stand" d="m 3 27 l 12 -24 l 12 24 z"/>
3
+ <text transform="translate(15,23)" class="small">!</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="standfat"/>
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="stand cline"/>
3
+ <circle cx="15" cy="15" r="11" class="stand cline hfill"/>
4
+ <polygon points="10.5,20.5 15,8.5 20.5,20.5 15,15.5 10.5,20.5" class="black"/>
5
+ </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="rfill hfill cline standfat"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="cline hfill stand"/>
3
+ <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
4
+ <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
5
+ </svg>
@@ -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="rfill hfill cline stand"/>
3
+ <text transform="translate(15,21)" class="normal">s</text>
4
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="15" cy="15" r="11" class="hfill standtrans"/>
3
+ <line x1="9" y1="21" x2="21" y2="9" class="stand cline hline"/>
4
+ <line x1="15.6" y1="4" x2="15.6" y2="27" class="ourline"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="cline hfill stand"/>
3
+ <text transform="translate(15,25)" class="normallarge">+</text>
4
+ </svg>
5
+
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="11" y="6" width="9" height="18" rx="0" class="hline white"/>
3
+ <path class="cline hfill stand" d="M 11,5 C 2,9 2,21 11,25 M 20,5 C 29,9 29,21 20,25" style="stroke-dasharray:1,4;"/>
4
+ <line x1="15.6" y1="4" x2="15.6" y2="27" class="ourline"/>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="cline hfill stand"/>
3
+ <text transform="translate(15,20)" class="small">|||</text>
4
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1" y="3" width="24" height="24" rx="4" class="hfill rfill cline stand"/>
3
+
4
+ <circle cx="24" cy="15" r="10" class="cline rfill stand" style="stroke-dasharray: 1,3"/>
5
+ <circle cx="24" cy="15" r="7" class="cline rfill stand" style="stroke-dasharray: 1,3"/>
6
+ <line x1="24" y1="11" x2="20" y2="18" class="stand"/>
7
+ <line x1="20" y1="18" x2="28" y2="18" class="stand"/>
8
+ <line x1="28" y1="18" x2="24" y2="11" class="stand"/>
9
+
10
+ <circle cx="55.5" cy="15" r="14" class="cline hfill rfill stand"/>
11
+ <line x1="55.5" y1="11" x2="51.5" y2="18" class="stand"/>
12
+ <line x1="51.5" y1="18" x2="59.5" y2="18" class="stand"/>
13
+ <line x1="59.5" y1="18" x2="55.5" y2="11" class="stand"/>
14
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="11" y="6" width="9" height="18" rx="0" class="hline white"/>
3
+ <path class="cline hfill stand" d="M 11,5 C 2,9 2,21 11,25 M 20,5 C 29,9 29,21 20,25" style="stroke-dasharray:1,4;"/>
4
+ <line x1="15.6" y1="4" x2="15.6" y2="27" class="ourline"/>
5
+ </svg>
@@ -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,13 +160,13 @@ 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
- if($('> finalize, > update', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
169
+ if($('> code', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
156
170
  var icon = self.elements.callmanipulate.illustrator.svg.clone();
157
171
  icon.children('.rfill:last').addClass('menu');
158
172
  menu['Delete'].push({
@@ -160,7 +174,7 @@ function WFAdaptorManifestation(adaptor) {
160
174
  'function_call': self.adaptor.description.remove,
161
175
  'menu_icon': icon,
162
176
  'type': undefined,
163
- 'params': ['> finalize, > update', xml_node]
177
+ 'params': ['> code', xml_node]
164
178
  });
165
179
  }
166
180
  if (xml_node.get(0).tagName == "call" || xml_node.get(0).tagName == "manipulate" || xml_node.get(0).tagName == "stop") {
@@ -253,7 +267,7 @@ function WFAdaptorManifestation(adaptor) {
253
267
  },
254
268
  'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
255
269
  'resolve_symbol': function(node) {
256
- if($('finalize,update', node).length > 0) {
270
+ if($('code', node).length > 0) {
257
271
  return 'callmanipulate';
258
272
  } else {
259
273
  return 'call';
@@ -263,7 +277,7 @@ function WFAdaptorManifestation(adaptor) {
263
277
  },//}}}
264
278
  'description': self.adaptor.theme_dir + 'rngs/call.rng',
265
279
  'permissible_children': function(node,mode) { //{{{
266
- if(node.children('finalize,update').length < 1)
280
+ if(node.children('code').length < 1)
267
281
  return [
268
282
  {'label': 'Scripts',
269
283
  'function_call': self.adaptor.description.insert_last_into,
@@ -537,7 +551,7 @@ function WFAdaptorManifestation(adaptor) {
537
551
  var childs = null;
538
552
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
539
553
  else { func = self.adaptor.description.insert_after }
540
- return [
554
+ var childs = [
541
555
  {'label': 'Service Call with Scripts',
542
556
  'function_call': func,
543
557
  'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
@@ -577,13 +591,18 @@ function WFAdaptorManifestation(adaptor) {
577
591
  'function_call': func,
578
592
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
579
593
  'type': 'stop',
580
- 'params': [self.adaptor.description.elements.stop, node]},
581
- {'label': 'Critical',
582
- 'function_call': func,
583
- 'menu_icon': self.elements.critical.illustrator.svg.clone(),
584
- 'type': 'critical',
585
- 'params': [self.adaptor.description.elements.critical, node]}
594
+ 'params': [self.adaptor.description.elements.stop, node]}
586
595
  ];
596
+ if(node.parent('parallel_branch').length > 0) {
597
+ childs.push({
598
+ 'label': 'Critical',
599
+ 'function_call': func,
600
+ 'menu_icon': self.elements.critical.illustrator.svg.clone(),
601
+ 'type': 'critical',
602
+ 'params': [self.adaptor.description.elements.critical, node]
603
+ });
604
+ }
605
+ return childs;
587
606
  }, //}}}
588
607
  'adaptor': {//{{{
589
608
  'mousedown': function (node,e) {
@@ -624,7 +643,7 @@ function WFAdaptorManifestation(adaptor) {
624
643
  'type': 'parallel_branch',
625
644
  'params': [self.adaptor.description.elements.parallel_branch, node]}];
626
645
  }
627
- return [
646
+ var childs = [
628
647
  {'label': 'Service Call with Scripts',
629
648
  'function_call': func,
630
649
  'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
@@ -664,13 +683,18 @@ function WFAdaptorManifestation(adaptor) {
664
683
  'function_call': func,
665
684
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
666
685
  'type': 'stop',
667
- 'params': [self.adaptor.description.elements.stop, node]},
668
- {'label': 'Critical',
669
- 'function_call': func,
670
- 'menu_icon': self.elements.critical.illustrator.svg.clone(),
671
- 'type': 'critical',
672
- 'params': [self.adaptor.description.elements.critical, node]}
686
+ 'params': [self.adaptor.description.elements.stop, node]}
673
687
  ];
688
+ if(node.parent('parallel_branch').length > 0) {
689
+ childs.push({
690
+ 'label': 'Critical',
691
+ 'function_call': func,
692
+ 'menu_icon': self.elements.critical.illustrator.svg.clone(),
693
+ 'type': 'critical',
694
+ 'params': [self.adaptor.description.elements.critical, node]
695
+ });
696
+ }
697
+ return childs;
674
698
  }, //}}}
675
699
  'adaptor': {//{{{
676
700
  'mousedown': function (node,e) {
@@ -716,7 +740,7 @@ function WFAdaptorManifestation(adaptor) {
716
740
  'menu_icon': self.elements.call.illustrator.svg.clone(),
717
741
  'type': 'call',
718
742
  'params': [self.adaptor.description.elements.call, node]},
719
- {'label': 'Manipulate',
743
+ {'label': 'Script',
720
744
  'function_call': func,
721
745
  'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
722
746
  'type': 'manipulate',
@@ -740,13 +764,17 @@ function WFAdaptorManifestation(adaptor) {
740
764
  'function_call': func,
741
765
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
742
766
  'type': 'stop',
743
- 'params': [self.adaptor.description.elements.stop, node]},
744
- {'label': 'Critical',
745
- 'function_call': func,
746
- 'menu_icon': self.elements.critical.illustrator.svg.clone(),
747
- 'type': 'critical',
748
- 'params': [self.adaptor.description.elements.critical, node]}
767
+ 'params': [self.adaptor.description.elements.stop, node]}
749
768
  ];
769
+ if(node.parent('parallel_branch').length > 0) {
770
+ childs.push({
771
+ 'label': 'Critical',
772
+ 'function_call': func,
773
+ 'menu_icon': self.elements.critical.illustrator.svg.clone(),
774
+ 'type': 'critical',
775
+ 'params': [self.adaptor.description.elements.critical, node]
776
+ });
777
+ }
750
778
  if(node.parent('parallel').length > node.parent('parallel_branch').length) {
751
779
  childs.push({'label': 'Parallel Branch',
752
780
  'function_call': func,
@@ -795,6 +823,19 @@ function WFAdaptorManifestation(adaptor) {
795
823
  var func = null;
796
824
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
797
825
  else { func = self.adaptor.description.insert_after }
826
+ var childs = [
827
+ {'label': 'Parallel Branch',
828
+ 'function_call': func,
829
+ 'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
830
+ 'type': 'parallel_branch',
831
+ 'params': [self.adaptor.description.elements.parallel_branch, node]},
832
+ ];
833
+ return childs;
834
+ }, //}}}
835
+ 'permissible_children_expert': function(node,mode) { //{{{
836
+ var func = null;
837
+ if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
838
+ else { func = self.adaptor.description.insert_after }
798
839
  var childs = [
799
840
  {'label': 'Service Call with Scripts',
800
841
  'function_call': func,
@@ -806,7 +847,7 @@ function WFAdaptorManifestation(adaptor) {
806
847
  'menu_icon': self.elements.call.illustrator.svg.clone(),
807
848
  'type': 'call',
808
849
  'params': [self.adaptor.description.elements.call, node]},
809
- {'label': 'Manipulate',
850
+ {'label': 'Script',
810
851
  'function_call': func,
811
852
  'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
812
853
  'type': 'manipulate',
@@ -821,11 +862,11 @@ function WFAdaptorManifestation(adaptor) {
821
862
  'menu_icon': self.elements.loop.illustrator.svg.clone(),
822
863
  'type': 'loop',
823
864
  'params': [self.adaptor.description.elements.loop, node]},
824
- {'label': 'Parallel Branch',
865
+ {'label': 'Stop',
825
866
  'function_call': func,
826
- 'menu_icon': self.elements.parallel_branch.illustrator.svg.clone(),
827
- 'type': 'parallel_branch',
828
- 'params': [self.adaptor.description.elements.parallel_branch, node]}
867
+ 'menu_icon': self.elements.stop.illustrator.svg.clone(),
868
+ 'type': 'stop',
869
+ 'params': [self.adaptor.description.elements.stop, node]}
829
870
  ];
830
871
  if(node.get(0).tagName != 'parallel')
831
872
  childs.push({'label': 'Parallel',
@@ -871,10 +912,9 @@ function WFAdaptorManifestation(adaptor) {
871
912
  'description': self.adaptor.theme_dir + 'rngs/parallel_branch.rng',
872
913
  'permissible_children': function(node,mode) { //{{{
873
914
  var func = null;
874
- var childs = null;
875
915
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
876
916
  else { func = self.adaptor.description.insert_after }
877
- childs = [
917
+ var childs = [
878
918
  {'label': 'Service Call with Scripts',
879
919
  'function_call': func,
880
920
  'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
@@ -919,7 +959,7 @@ function WFAdaptorManifestation(adaptor) {
919
959
  'function_call': func,
920
960
  'menu_icon': self.elements.critical.illustrator.svg.clone(),
921
961
  'type': 'critical',
922
- 'params': [self.adaptor.description.elements.critical, node]},
962
+ 'params': [self.adaptor.description.elements.critical, node]}
923
963
  ];
924
964
  if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
925
965
  return [{'label': 'Alternative',
@@ -932,12 +972,7 @@ function WFAdaptorManifestation(adaptor) {
932
972
  }, //}}}
933
973
  'adaptor': {//{{{
934
974
  'mousedown': function (node,e) {
935
- var xml_node = self.adaptor.description.get_node_by_svg_id(node);
936
- if(xml_node.get(0).parentNode.tagName == 'parallel') {
937
- self.events.mousedown(node,e,true,false);
938
- } else {
939
- self.events.mousedown(node,e,true,true);
940
- }
975
+ self.events.mousedown(node,e,true,true);
941
976
  },
942
977
  'click': self.events.click,
943
978
  'dblclick': self.events.dblclick,
@@ -964,7 +999,7 @@ function WFAdaptorManifestation(adaptor) {
964
999
  var func = null;
965
1000
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
966
1001
  else { func = self.adaptor.description.insert_after }
967
- return [
1002
+ var childs = [
968
1003
  {'label': 'Service Call with Scripts',
969
1004
  'function_call': func,
970
1005
  'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
@@ -1004,13 +1039,18 @@ function WFAdaptorManifestation(adaptor) {
1004
1039
  'function_call': func,
1005
1040
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
1006
1041
  'type': 'stop',
1007
- 'params': [self.adaptor.description.elements.stop, node]},
1008
- {'label': 'Critical',
1009
- 'function_call': func,
1010
- 'menu_icon': self.elements.critical.illustrator.svg.clone(),
1011
- 'type': 'critical',
1012
- 'params': [self.adaptor.description.elements.critical, node]},
1042
+ 'params': [self.adaptor.description.elements.stop, node]}
1013
1043
  ];
1044
+ if(node.parent('parallel_branch').length > 0) {
1045
+ childs.push({
1046
+ 'label': 'Critical',
1047
+ 'function_call': func,
1048
+ 'menu_icon': self.elements.critical.illustrator.svg.clone(),
1049
+ 'type': 'critical',
1050
+ 'params': [self.adaptor.description.elements.critical, node]
1051
+ });
1052
+ }
1053
+ return childs;
1014
1054
  }, //}}}
1015
1055
  'adaptor': {//{{{
1016
1056
  'mousedown': function (node,e) {
@@ -1074,7 +1114,7 @@ function WFAdaptorManifestation(adaptor) {
1074
1114
  var func = null;
1075
1115
  if (mode == 'into') { func = self.adaptor.description.insert_first_into }
1076
1116
  else { func = self.adaptor.description.insert_after }
1077
- return [
1117
+ var childs = [
1078
1118
  {'label': 'Service Call with Scripts',
1079
1119
  'function_call': func,
1080
1120
  'menu_icon': self.elements.callmanipulate.illustrator.svg.clone(),
@@ -1085,7 +1125,7 @@ function WFAdaptorManifestation(adaptor) {
1085
1125
  'menu_icon': self.elements.call.illustrator.svg.clone(),
1086
1126
  'type': 'call',
1087
1127
  'params': [self.adaptor.description.elements.call, node]},
1088
- {'label': 'Script Task',
1128
+ {'label': 'Script',
1089
1129
  'function_call': func,
1090
1130
  'menu_icon': self.elements.manipulate.illustrator.svg.clone(),
1091
1131
  'type': 'manipulate',
@@ -1105,22 +1145,22 @@ function WFAdaptorManifestation(adaptor) {
1105
1145
  'menu_icon': self.elements.loop.illustrator.svg.clone(),
1106
1146
  'type': 'loop',
1107
1147
  'params': [self.adaptor.description.elements.loop, node]},
1108
- {'label': 'Terminate',
1109
- 'function_call': func,
1110
- 'menu_icon': self.elements.terminate.illustrator.svg.clone(),
1111
- 'type': 'terminate',
1112
- 'params': [self.adaptor.description.elements.terminate, node]},
1113
1148
  {'label': 'Stop',
1114
1149
  'function_call': func,
1115
1150
  'menu_icon': self.elements.stop.illustrator.svg.clone(),
1116
1151
  'type': 'stop',
1117
- 'params': [self.adaptor.description.elements.stop, node]},
1118
- {'label': 'Critical',
1119
- 'function_call': func,
1120
- 'menu_icon': self.elements.critical.illustrator.svg.clone(),
1121
- 'type': 'critical',
1122
- 'params': [self.adaptor.description.elements.critical, node]}
1152
+ 'params': [self.adaptor.description.elements.stop, node]}
1123
1153
  ];
1154
+ if(node.parent('parallel_branch').length > 0) {
1155
+ childs.push({
1156
+ 'label': 'Critical',
1157
+ 'function_call': func,
1158
+ 'menu_icon': self.elements.critical.illustrator.svg.clone(),
1159
+ 'type': 'critical',
1160
+ 'params': [self.adaptor.description.elements.critical, node]
1161
+ });
1162
+ }
1163
+ return childs;
1124
1164
  }, //}}}
1125
1165
  'adaptor': {//{{{
1126
1166
  'mousedown': function (node,e) {
@@ -51,6 +51,11 @@
51
51
  </element>
52
52
  </zeroOrMore>
53
53
  </element>
54
+ <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
55
+ <element name="url" rngui:label='HTML Snippet'>
56
+ <data type="string" rngui:label="url to report snippet"/>
57
+ </element>
58
+ </element>
54
59
  </element>
55
60
  <element name="finalize" rngui:header="Finalize" rngui:label="Code">
56
61
  <attribute name="output" rngui:label="Access Variable" rngui:default="result">