cpee 2.1.97 → 2.1.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/wfadaptor.css +37 -33
  3. data/cockpit/js/details.js +9 -4
  4. data/cockpit/js/instance.js +2 -2
  5. data/cockpit/js/wfadaptor.js +11 -1
  6. data/cockpit/model.html +6 -1
  7. data/cockpit/themes/base.js +20 -19
  8. data/cockpit/themes/control/rngs/call.rng +2 -4
  9. data/cockpit/themes/control/rngs/callmanipulate.rng +2 -4
  10. data/cockpit/themes/control/rngs/manipulate.rng +2 -4
  11. data/cockpit/themes/control/rngs/start.rng +2 -4
  12. data/cockpit/themes/control/symbols/alternative.svg +2 -2
  13. data/cockpit/themes/control/symbols/call.svg +5 -5
  14. data/cockpit/themes/control/symbols/call_sensor.svg +7 -7
  15. data/cockpit/themes/control/symbols/callmanipulate.svg +6 -6
  16. data/cockpit/themes/control/symbols/callmanipulate_sensor.svg +8 -8
  17. data/cockpit/themes/control/symbols/callmanipulate_sensor_signal.svg +10 -10
  18. data/cockpit/themes/control/symbols/callmanipulate_signal.svg +8 -8
  19. data/cockpit/themes/control/symbols/choose.svg +2 -2
  20. data/cockpit/themes/control/symbols/choose_exclusive.svg +2 -2
  21. data/cockpit/themes/control/symbols/choose_exclusive_finish.svg +1 -1
  22. data/cockpit/themes/control/symbols/choose_inclusive.svg +2 -2
  23. data/cockpit/themes/control/symbols/choose_inclusive_finish.svg +1 -1
  24. data/cockpit/themes/control/symbols/closed_loop.svg +1 -1
  25. data/cockpit/themes/control/symbols/closed_loop_cancel.svg +2 -2
  26. data/cockpit/themes/control/symbols/closed_loop_control.svg +2 -2
  27. data/cockpit/themes/control/symbols/closed_loop_measuring.svg +2 -2
  28. data/cockpit/themes/control/symbols/complex.svg +1 -1
  29. data/cockpit/themes/control/symbols/critical.svg +1 -1
  30. data/cockpit/themes/control/symbols/escape.svg +2 -2
  31. data/cockpit/themes/control/symbols/event_end.svg +1 -1
  32. data/cockpit/themes/control/symbols/loop.svg +2 -2
  33. data/cockpit/themes/control/symbols/loop_end.svg +2 -2
  34. data/cockpit/themes/control/symbols/manipulate.svg +5 -5
  35. data/cockpit/themes/control/symbols/otherwise.svg +1 -1
  36. data/cockpit/themes/control/symbols/parallel.svg +1 -1
  37. data/cockpit/themes/control/symbols/parallel_branch.svg +1 -1
  38. data/cockpit/themes/control/symbols/parallel_branch_event.svg +4 -4
  39. data/cockpit/themes/control/symbols/parallel_branch_normal.svg +1 -1
  40. data/cockpit/themes/control/symbols/parallel_eventbased_exclusive.svg +1 -1
  41. data/cockpit/themes/control/symbols/parallel_eventbased_parallel.svg +1 -1
  42. data/cockpit/themes/control/symbols/scripts.svg +1 -1
  43. data/cockpit/themes/control/symbols/start.svg +1 -1
  44. data/cockpit/themes/control/symbols/start_event.svg +1 -1
  45. data/cockpit/themes/control/symbols/stop.svg +1 -1
  46. data/cockpit/themes/control/symbols/wait_for_signal.svg +4 -4
  47. data/cockpit/themes/dataflow/rngs/call.rng +2 -4
  48. data/cockpit/themes/dataflow/rngs/callmanipulate.rng +2 -4
  49. data/cockpit/themes/dataflow/rngs/manipulate.rng +2 -4
  50. data/cockpit/themes/dataflow/rngs/start.rng +2 -4
  51. data/cockpit/themes/dataflow/symbols/alternative.svg +2 -2
  52. data/cockpit/themes/dataflow/symbols/call.svg +5 -5
  53. data/cockpit/themes/dataflow/symbols/call_sensor.svg +7 -7
  54. data/cockpit/themes/dataflow/symbols/callmanipulate.svg +6 -6
  55. data/cockpit/themes/dataflow/symbols/callmanipulate_sensor.svg +8 -8
  56. data/cockpit/themes/dataflow/symbols/callmanipulate_sensor_signal.svg +10 -10
  57. data/cockpit/themes/dataflow/symbols/callmanipulate_signal.svg +8 -8
  58. data/cockpit/themes/dataflow/symbols/choose.svg +2 -2
  59. data/cockpit/themes/dataflow/symbols/choose_exclusive.svg +2 -2
  60. data/cockpit/themes/dataflow/symbols/choose_exclusive_finish.svg +1 -1
  61. data/cockpit/themes/dataflow/symbols/choose_inclusive.svg +2 -2
  62. data/cockpit/themes/dataflow/symbols/choose_inclusive_finish.svg +1 -1
  63. data/cockpit/themes/dataflow/symbols/closed_loop.svg +1 -1
  64. data/cockpit/themes/dataflow/symbols/closed_loop_cancel.svg +2 -2
  65. data/cockpit/themes/dataflow/symbols/closed_loop_control.svg +2 -2
  66. data/cockpit/themes/dataflow/symbols/closed_loop_measuring.svg +2 -2
  67. data/cockpit/themes/dataflow/symbols/complex.svg +1 -1
  68. data/cockpit/themes/dataflow/symbols/critical.svg +1 -1
  69. data/cockpit/themes/dataflow/symbols/escape.svg +2 -2
  70. data/cockpit/themes/dataflow/symbols/event_end.svg +1 -1
  71. data/cockpit/themes/dataflow/symbols/loop.svg +2 -2
  72. data/cockpit/themes/dataflow/symbols/loop_end.svg +2 -2
  73. data/cockpit/themes/dataflow/symbols/manipulate.svg +5 -5
  74. data/cockpit/themes/dataflow/symbols/otherwise.svg +1 -1
  75. data/cockpit/themes/dataflow/symbols/parallel.svg +1 -1
  76. data/cockpit/themes/dataflow/symbols/parallel_branch.svg +1 -1
  77. data/cockpit/themes/dataflow/symbols/parallel_branch_event.svg +4 -4
  78. data/cockpit/themes/dataflow/symbols/parallel_branch_normal.svg +1 -1
  79. data/cockpit/themes/dataflow/symbols/parallel_eventbased_exclusive.svg +1 -1
  80. data/cockpit/themes/dataflow/symbols/parallel_eventbased_parallel.svg +1 -1
  81. data/cockpit/themes/dataflow/symbols/scripts.svg +1 -1
  82. data/cockpit/themes/dataflow/symbols/start.svg +1 -1
  83. data/cockpit/themes/dataflow/symbols/start_event.svg +1 -1
  84. data/cockpit/themes/dataflow/symbols/stop.svg +1 -1
  85. data/cockpit/themes/dataflow/symbols/wait_for_signal.svg +4 -4
  86. data/cockpit/themes/default/rngs/call.rng +2 -4
  87. data/cockpit/themes/default/rngs/callmanipulate.rng +2 -4
  88. data/cockpit/themes/default/rngs/manipulate.rng +2 -4
  89. data/cockpit/themes/default/rngs/start.rng +2 -4
  90. data/cockpit/themes/default/symbols/alternative.svg +2 -2
  91. data/cockpit/themes/default/symbols/call.svg +5 -5
  92. data/cockpit/themes/default/symbols/call_sensor.svg +7 -7
  93. data/cockpit/themes/default/symbols/callmanipulate.svg +6 -6
  94. data/cockpit/themes/default/symbols/callmanipulate_sensor.svg +8 -8
  95. data/cockpit/themes/default/symbols/callmanipulate_sensor_signal.svg +10 -10
  96. data/cockpit/themes/default/symbols/callmanipulate_signal.svg +8 -8
  97. data/cockpit/themes/default/symbols/choose.svg +2 -2
  98. data/cockpit/themes/default/symbols/choose_exclusive.svg +2 -2
  99. data/cockpit/themes/default/symbols/choose_exclusive_finish.svg +1 -1
  100. data/cockpit/themes/default/symbols/choose_inclusive.svg +2 -2
  101. data/cockpit/themes/default/symbols/choose_inclusive_finish.svg +1 -1
  102. data/cockpit/themes/default/symbols/closed_loop.svg +1 -1
  103. data/cockpit/themes/default/symbols/closed_loop_cancel.svg +2 -2
  104. data/cockpit/themes/default/symbols/closed_loop_control.svg +2 -2
  105. data/cockpit/themes/default/symbols/closed_loop_measuring.svg +2 -2
  106. data/cockpit/themes/default/symbols/complex.svg +1 -1
  107. data/cockpit/themes/default/symbols/critical.svg +1 -1
  108. data/cockpit/themes/default/symbols/escape.svg +2 -2
  109. data/cockpit/themes/default/symbols/event_end.svg +1 -1
  110. data/cockpit/themes/default/symbols/loop.svg +2 -2
  111. data/cockpit/themes/default/symbols/loop_end.svg +2 -2
  112. data/cockpit/themes/default/symbols/manipulate.svg +5 -5
  113. data/cockpit/themes/default/symbols/otherwise.svg +1 -1
  114. data/cockpit/themes/default/symbols/parallel.svg +1 -1
  115. data/cockpit/themes/default/symbols/parallel_branch.svg +1 -1
  116. data/cockpit/themes/default/symbols/parallel_branch_event.svg +4 -4
  117. data/cockpit/themes/default/symbols/parallel_branch_normal.svg +1 -1
  118. data/cockpit/themes/default/symbols/parallel_eventbased_exclusive.svg +1 -1
  119. data/cockpit/themes/default/symbols/parallel_eventbased_parallel.svg +1 -1
  120. data/cockpit/themes/default/symbols/scripts.svg +1 -1
  121. data/cockpit/themes/default/symbols/start.svg +1 -1
  122. data/cockpit/themes/default/symbols/start_event.svg +1 -1
  123. data/cockpit/themes/default/symbols/stop.svg +1 -1
  124. data/cockpit/themes/default/symbols/wait_for_signal.svg +4 -4
  125. data/cockpit/themes/extended/rngs/call.rng +2 -4
  126. data/cockpit/themes/extended/rngs/callmanipulate.rng +2 -4
  127. data/cockpit/themes/extended/rngs/manipulate.rng +2 -4
  128. data/cockpit/themes/extended/rngs/start.rng +2 -4
  129. data/cockpit/themes/extended/symbols/alternative.svg +2 -2
  130. data/cockpit/themes/extended/symbols/call.svg +5 -5
  131. data/cockpit/themes/extended/symbols/call_sensor.svg +7 -7
  132. data/cockpit/themes/extended/symbols/callmanipulate.svg +6 -6
  133. data/cockpit/themes/extended/symbols/callmanipulate_sensor.svg +8 -8
  134. data/cockpit/themes/extended/symbols/callmanipulate_sensor_signal.svg +10 -10
  135. data/cockpit/themes/extended/symbols/callmanipulate_signal.svg +8 -8
  136. data/cockpit/themes/extended/symbols/choose.svg +2 -2
  137. data/cockpit/themes/extended/symbols/choose_exclusive.svg +2 -2
  138. data/cockpit/themes/extended/symbols/choose_exclusive_finish.svg +1 -1
  139. data/cockpit/themes/extended/symbols/choose_inclusive.svg +2 -2
  140. data/cockpit/themes/extended/symbols/choose_inclusive_finish.svg +1 -1
  141. data/cockpit/themes/extended/symbols/closed_loop.svg +1 -1
  142. data/cockpit/themes/extended/symbols/closed_loop_cancel.svg +2 -2
  143. data/cockpit/themes/extended/symbols/closed_loop_control.svg +2 -2
  144. data/cockpit/themes/extended/symbols/closed_loop_measuring.svg +2 -2
  145. data/cockpit/themes/extended/symbols/complex.svg +1 -1
  146. data/cockpit/themes/extended/symbols/critical.svg +1 -1
  147. data/cockpit/themes/extended/symbols/escape.svg +2 -2
  148. data/cockpit/themes/extended/symbols/event_end.svg +1 -1
  149. data/cockpit/themes/extended/symbols/loop.svg +2 -2
  150. data/cockpit/themes/extended/symbols/loop_end.svg +2 -2
  151. data/cockpit/themes/extended/symbols/manipulate.svg +5 -5
  152. data/cockpit/themes/extended/symbols/otherwise.svg +1 -1
  153. data/cockpit/themes/extended/symbols/parallel.svg +1 -1
  154. data/cockpit/themes/extended/symbols/parallel_branch.svg +1 -1
  155. data/cockpit/themes/extended/symbols/parallel_branch_event.svg +4 -4
  156. data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +1 -1
  157. data/cockpit/themes/extended/symbols/parallel_eventbased_exclusive.svg +1 -1
  158. data/cockpit/themes/extended/symbols/parallel_eventbased_parallel.svg +1 -1
  159. data/cockpit/themes/extended/symbols/scripts.svg +1 -1
  160. data/cockpit/themes/extended/symbols/start.svg +1 -1
  161. data/cockpit/themes/extended/symbols/start_event.svg +1 -1
  162. data/cockpit/themes/extended/symbols/stop.svg +1 -1
  163. data/cockpit/themes/extended/symbols/wait_for_signal.svg +4 -4
  164. data/cockpit/themes/felix/symbols/alternative.svg +2 -2
  165. data/cockpit/themes/felix/symbols/call.svg +5 -5
  166. data/cockpit/themes/felix/symbols/call_sensor.svg +7 -7
  167. data/cockpit/themes/felix/symbols/callmanipulate.svg +6 -6
  168. data/cockpit/themes/felix/symbols/callmanipulate_sensor.svg +8 -8
  169. data/cockpit/themes/felix/symbols/callmanipulate_sensor_signal.svg +10 -10
  170. data/cockpit/themes/felix/symbols/callmanipulate_signal.svg +8 -8
  171. data/cockpit/themes/felix/symbols/choose.svg +2 -2
  172. data/cockpit/themes/felix/symbols/choose_exclusive.svg +2 -2
  173. data/cockpit/themes/felix/symbols/choose_exclusive_finish.svg +1 -1
  174. data/cockpit/themes/felix/symbols/choose_inclusive.svg +2 -2
  175. data/cockpit/themes/felix/symbols/choose_inclusive_finish.svg +1 -1
  176. data/cockpit/themes/felix/symbols/closed_loop.svg +1 -1
  177. data/cockpit/themes/felix/symbols/closed_loop_cancel.svg +2 -2
  178. data/cockpit/themes/felix/symbols/closed_loop_control.svg +2 -2
  179. data/cockpit/themes/felix/symbols/closed_loop_measuring.svg +2 -2
  180. data/cockpit/themes/felix/symbols/complex.svg +1 -1
  181. data/cockpit/themes/felix/symbols/critical.svg +1 -1
  182. data/cockpit/themes/felix/symbols/escape.svg +2 -2
  183. data/cockpit/themes/felix/symbols/event_end.svg +1 -1
  184. data/cockpit/themes/felix/symbols/loop.svg +2 -2
  185. data/cockpit/themes/felix/symbols/loop_end.svg +2 -2
  186. data/cockpit/themes/felix/symbols/manipulate.svg +5 -5
  187. data/cockpit/themes/felix/symbols/otherwise.svg +1 -1
  188. data/cockpit/themes/felix/symbols/parallel.svg +1 -1
  189. data/cockpit/themes/felix/symbols/parallel_branch.svg +1 -1
  190. data/cockpit/themes/felix/symbols/parallel_branch_event.svg +4 -4
  191. data/cockpit/themes/felix/symbols/parallel_branch_normal.svg +1 -1
  192. data/cockpit/themes/felix/symbols/parallel_eventbased_exclusive.svg +1 -1
  193. data/cockpit/themes/felix/symbols/parallel_eventbased_parallel.svg +1 -1
  194. data/cockpit/themes/felix/symbols/scripts.svg +1 -1
  195. data/cockpit/themes/felix/symbols/start.svg +1 -1
  196. data/cockpit/themes/felix/symbols/start_event.svg +1 -1
  197. data/cockpit/themes/felix/symbols/stop.svg +1 -1
  198. data/cockpit/themes/felix/symbols/wait_for_signal.svg +4 -4
  199. data/cockpit/themes/model/rngs/wait_for_signal.rng +1 -0
  200. data/cockpit/themes/model/symbols/alternative.svg +2 -2
  201. data/cockpit/themes/model/symbols/call.svg +5 -5
  202. data/cockpit/themes/model/symbols/call_sensor.svg +7 -7
  203. data/cockpit/themes/model/symbols/callmanipulate.svg +6 -6
  204. data/cockpit/themes/model/symbols/callmanipulate_sensor.svg +8 -8
  205. data/cockpit/themes/model/symbols/callmanipulate_sensor_signal.svg +10 -10
  206. data/cockpit/themes/model/symbols/callmanipulate_signal.svg +8 -8
  207. data/cockpit/themes/model/symbols/choose.svg +2 -2
  208. data/cockpit/themes/model/symbols/choose_exclusive.svg +2 -2
  209. data/cockpit/themes/model/symbols/choose_exclusive_finish.svg +1 -1
  210. data/cockpit/themes/model/symbols/choose_inclusive.svg +2 -2
  211. data/cockpit/themes/model/symbols/choose_inclusive_finish.svg +1 -1
  212. data/cockpit/themes/model/symbols/closed_loop.svg +1 -1
  213. data/cockpit/themes/model/symbols/closed_loop_cancel.svg +2 -2
  214. data/cockpit/themes/model/symbols/closed_loop_control.svg +2 -2
  215. data/cockpit/themes/model/symbols/closed_loop_measuring.svg +2 -2
  216. data/cockpit/themes/model/symbols/complex.svg +1 -1
  217. data/cockpit/themes/model/symbols/critical.svg +1 -1
  218. data/cockpit/themes/model/symbols/escape.svg +2 -2
  219. data/cockpit/themes/model/symbols/event_end.svg +1 -1
  220. data/cockpit/themes/model/symbols/loop.svg +2 -2
  221. data/cockpit/themes/model/symbols/loop_end.svg +2 -2
  222. data/cockpit/themes/model/symbols/manipulate.svg +5 -5
  223. data/cockpit/themes/model/symbols/otherwise.svg +1 -1
  224. data/cockpit/themes/model/symbols/parallel.svg +1 -1
  225. data/cockpit/themes/model/symbols/parallel_branch.svg +1 -1
  226. data/cockpit/themes/model/symbols/parallel_branch_event.svg +4 -4
  227. data/cockpit/themes/model/symbols/parallel_branch_normal.svg +1 -1
  228. data/cockpit/themes/model/symbols/parallel_eventbased_exclusive.svg +1 -1
  229. data/cockpit/themes/model/symbols/parallel_eventbased_parallel.svg +1 -1
  230. data/cockpit/themes/model/symbols/scripts.svg +1 -1
  231. data/cockpit/themes/model/symbols/start.svg +1 -1
  232. data/cockpit/themes/model/symbols/start_event.svg +1 -1
  233. data/cockpit/themes/model/symbols/stop.svg +1 -1
  234. data/cockpit/themes/model/symbols/wait_for_signal.svg +4 -4
  235. data/cockpit/themes/model/theme.js +444 -669
  236. data/cockpit/themes/packed/rngs/call.rng +2 -4
  237. data/cockpit/themes/packed/rngs/callmanipulate.rng +2 -4
  238. data/cockpit/themes/packed/rngs/manipulate.rng +2 -4
  239. data/cockpit/themes/packed/rngs/start.rng +2 -4
  240. data/cockpit/themes/packed/symbols/alternative.svg +2 -2
  241. data/cockpit/themes/packed/symbols/call.svg +5 -5
  242. data/cockpit/themes/packed/symbols/call_sensor.svg +7 -7
  243. data/cockpit/themes/packed/symbols/callmanipulate.svg +6 -6
  244. data/cockpit/themes/packed/symbols/callmanipulate_sensor.svg +8 -8
  245. data/cockpit/themes/packed/symbols/callmanipulate_sensor_signal.svg +10 -10
  246. data/cockpit/themes/packed/symbols/callmanipulate_signal.svg +8 -8
  247. data/cockpit/themes/packed/symbols/choose.svg +2 -2
  248. data/cockpit/themes/packed/symbols/choose_exclusive.svg +2 -2
  249. data/cockpit/themes/packed/symbols/choose_exclusive_finish.svg +1 -1
  250. data/cockpit/themes/packed/symbols/choose_inclusive.svg +2 -2
  251. data/cockpit/themes/packed/symbols/choose_inclusive_finish.svg +1 -1
  252. data/cockpit/themes/packed/symbols/closed_loop.svg +1 -1
  253. data/cockpit/themes/packed/symbols/closed_loop_cancel.svg +2 -2
  254. data/cockpit/themes/packed/symbols/closed_loop_control.svg +2 -2
  255. data/cockpit/themes/packed/symbols/closed_loop_measuring.svg +2 -2
  256. data/cockpit/themes/packed/symbols/complex.svg +1 -1
  257. data/cockpit/themes/packed/symbols/critical.svg +1 -1
  258. data/cockpit/themes/packed/symbols/escape.svg +2 -2
  259. data/cockpit/themes/packed/symbols/event_end.svg +1 -1
  260. data/cockpit/themes/packed/symbols/loop.svg +2 -2
  261. data/cockpit/themes/packed/symbols/loop_end.svg +2 -2
  262. data/cockpit/themes/packed/symbols/manipulate.svg +5 -5
  263. data/cockpit/themes/packed/symbols/otherwise.svg +1 -1
  264. data/cockpit/themes/packed/symbols/parallel.svg +1 -1
  265. data/cockpit/themes/packed/symbols/parallel_branch.svg +1 -1
  266. data/cockpit/themes/packed/symbols/parallel_branch_event.svg +4 -4
  267. data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +1 -1
  268. data/cockpit/themes/packed/symbols/parallel_eventbased_exclusive.svg +1 -1
  269. data/cockpit/themes/packed/symbols/parallel_eventbased_parallel.svg +1 -1
  270. data/cockpit/themes/packed/symbols/scripts.svg +1 -1
  271. data/cockpit/themes/packed/symbols/start.svg +1 -1
  272. data/cockpit/themes/packed/symbols/start_event.svg +1 -1
  273. data/cockpit/themes/packed/symbols/stop.svg +1 -1
  274. data/cockpit/themes/packed/symbols/wait_for_signal.svg +4 -4
  275. data/cockpit/themes/preset/rngs/call.rng +2 -4
  276. data/cockpit/themes/preset/rngs/callmanipulate.rng +2 -4
  277. data/cockpit/themes/preset/rngs/manipulate.rng +2 -4
  278. data/cockpit/themes/preset/rngs/start.rng +2 -4
  279. data/cockpit/themes/preset/symbols/alternative.svg +2 -2
  280. data/cockpit/themes/preset/symbols/call.svg +5 -5
  281. data/cockpit/themes/preset/symbols/call_sensor.svg +7 -7
  282. data/cockpit/themes/preset/symbols/callmanipulate.svg +6 -6
  283. data/cockpit/themes/preset/symbols/callmanipulate_sensor.svg +8 -8
  284. data/cockpit/themes/preset/symbols/callmanipulate_sensor_signal.svg +10 -10
  285. data/cockpit/themes/preset/symbols/callmanipulate_signal.svg +8 -8
  286. data/cockpit/themes/preset/symbols/choose.svg +2 -2
  287. data/cockpit/themes/preset/symbols/choose_exclusive.svg +2 -2
  288. data/cockpit/themes/preset/symbols/choose_exclusive_finish.svg +1 -1
  289. data/cockpit/themes/preset/symbols/choose_inclusive.svg +2 -2
  290. data/cockpit/themes/preset/symbols/choose_inclusive_finish.svg +1 -1
  291. data/cockpit/themes/preset/symbols/closed_loop.svg +1 -1
  292. data/cockpit/themes/preset/symbols/closed_loop_cancel.svg +2 -2
  293. data/cockpit/themes/preset/symbols/closed_loop_control.svg +2 -2
  294. data/cockpit/themes/preset/symbols/closed_loop_measuring.svg +2 -2
  295. data/cockpit/themes/preset/symbols/complex.svg +1 -1
  296. data/cockpit/themes/preset/symbols/critical.svg +1 -1
  297. data/cockpit/themes/preset/symbols/escape.svg +2 -2
  298. data/cockpit/themes/preset/symbols/event_end.svg +1 -1
  299. data/cockpit/themes/preset/symbols/loop.svg +2 -2
  300. data/cockpit/themes/preset/symbols/loop_end.svg +2 -2
  301. data/cockpit/themes/preset/symbols/manipulate.svg +5 -5
  302. data/cockpit/themes/preset/symbols/otherwise.svg +1 -1
  303. data/cockpit/themes/preset/symbols/parallel.svg +1 -1
  304. data/cockpit/themes/preset/symbols/parallel_branch.svg +1 -1
  305. data/cockpit/themes/preset/symbols/parallel_branch_event.svg +4 -4
  306. data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +1 -1
  307. data/cockpit/themes/preset/symbols/parallel_eventbased_exclusive.svg +1 -1
  308. data/cockpit/themes/preset/symbols/parallel_eventbased_parallel.svg +1 -1
  309. data/cockpit/themes/preset/symbols/scripts.svg +1 -1
  310. data/cockpit/themes/preset/symbols/start.svg +1 -1
  311. data/cockpit/themes/preset/symbols/start_event.svg +1 -1
  312. data/cockpit/themes/preset/symbols/stop.svg +1 -1
  313. data/cockpit/themes/preset/symbols/wait_for_signal.svg +4 -4
  314. data/cockpit/themes/presetaltid/rngs/call.rng +2 -4
  315. data/cockpit/themes/presetaltid/rngs/callmanipulate.rng +2 -4
  316. data/cockpit/themes/presetaltid/rngs/manipulate.rng +2 -4
  317. data/cockpit/themes/presetaltid/rngs/start.rng +2 -4
  318. data/cockpit/themes/presetaltid/symbols/alternative.svg +2 -2
  319. data/cockpit/themes/presetaltid/symbols/call.svg +5 -5
  320. data/cockpit/themes/presetaltid/symbols/call_sensor.svg +7 -7
  321. data/cockpit/themes/presetaltid/symbols/callmanipulate.svg +6 -6
  322. data/cockpit/themes/presetaltid/symbols/callmanipulate_sensor.svg +8 -8
  323. data/cockpit/themes/presetaltid/symbols/callmanipulate_sensor_signal.svg +10 -10
  324. data/cockpit/themes/presetaltid/symbols/callmanipulate_signal.svg +8 -8
  325. data/cockpit/themes/presetaltid/symbols/choose.svg +2 -2
  326. data/cockpit/themes/presetaltid/symbols/choose_exclusive.svg +2 -2
  327. data/cockpit/themes/presetaltid/symbols/choose_exclusive_finish.svg +1 -1
  328. data/cockpit/themes/presetaltid/symbols/choose_inclusive.svg +2 -2
  329. data/cockpit/themes/presetaltid/symbols/choose_inclusive_finish.svg +1 -1
  330. data/cockpit/themes/presetaltid/symbols/closed_loop.svg +1 -1
  331. data/cockpit/themes/presetaltid/symbols/closed_loop_cancel.svg +2 -2
  332. data/cockpit/themes/presetaltid/symbols/closed_loop_control.svg +2 -2
  333. data/cockpit/themes/presetaltid/symbols/closed_loop_measuring.svg +2 -2
  334. data/cockpit/themes/presetaltid/symbols/complex.svg +1 -1
  335. data/cockpit/themes/presetaltid/symbols/critical.svg +1 -1
  336. data/cockpit/themes/presetaltid/symbols/escape.svg +2 -2
  337. data/cockpit/themes/presetaltid/symbols/event_end.svg +1 -1
  338. data/cockpit/themes/presetaltid/symbols/loop.svg +2 -2
  339. data/cockpit/themes/presetaltid/symbols/loop_end.svg +2 -2
  340. data/cockpit/themes/presetaltid/symbols/manipulate.svg +5 -5
  341. data/cockpit/themes/presetaltid/symbols/otherwise.svg +1 -1
  342. data/cockpit/themes/presetaltid/symbols/parallel.svg +1 -1
  343. data/cockpit/themes/presetaltid/symbols/parallel_branch.svg +1 -1
  344. data/cockpit/themes/presetaltid/symbols/parallel_branch_event.svg +4 -4
  345. data/cockpit/themes/presetaltid/symbols/parallel_branch_normal.svg +1 -1
  346. data/cockpit/themes/presetaltid/symbols/parallel_eventbased_exclusive.svg +1 -1
  347. data/cockpit/themes/presetaltid/symbols/parallel_eventbased_parallel.svg +1 -1
  348. data/cockpit/themes/presetaltid/symbols/scripts.svg +1 -1
  349. data/cockpit/themes/presetaltid/symbols/start.svg +1 -1
  350. data/cockpit/themes/presetaltid/symbols/start_event.svg +1 -1
  351. data/cockpit/themes/presetaltid/symbols/stop.svg +1 -1
  352. data/cockpit/themes/presetaltid/symbols/wait_for_signal.svg +4 -4
  353. data/cockpit/themes/presetid/rngs/call.rng +2 -4
  354. data/cockpit/themes/presetid/rngs/callmanipulate.rng +2 -4
  355. data/cockpit/themes/presetid/rngs/manipulate.rng +2 -4
  356. data/cockpit/themes/presetid/rngs/start.rng +2 -4
  357. data/cockpit/themes/presetid/symbols/alternative.svg +2 -2
  358. data/cockpit/themes/presetid/symbols/call.svg +5 -5
  359. data/cockpit/themes/presetid/symbols/call_sensor.svg +7 -7
  360. data/cockpit/themes/presetid/symbols/callmanipulate.svg +6 -6
  361. data/cockpit/themes/presetid/symbols/callmanipulate_sensor.svg +8 -8
  362. data/cockpit/themes/presetid/symbols/callmanipulate_sensor_signal.svg +10 -10
  363. data/cockpit/themes/presetid/symbols/callmanipulate_signal.svg +8 -8
  364. data/cockpit/themes/presetid/symbols/choose.svg +2 -2
  365. data/cockpit/themes/presetid/symbols/choose_exclusive.svg +2 -2
  366. data/cockpit/themes/presetid/symbols/choose_exclusive_finish.svg +1 -1
  367. data/cockpit/themes/presetid/symbols/choose_inclusive.svg +2 -2
  368. data/cockpit/themes/presetid/symbols/choose_inclusive_finish.svg +1 -1
  369. data/cockpit/themes/presetid/symbols/closed_loop.svg +1 -1
  370. data/cockpit/themes/presetid/symbols/closed_loop_cancel.svg +2 -2
  371. data/cockpit/themes/presetid/symbols/closed_loop_control.svg +2 -2
  372. data/cockpit/themes/presetid/symbols/closed_loop_measuring.svg +2 -2
  373. data/cockpit/themes/presetid/symbols/complex.svg +1 -1
  374. data/cockpit/themes/presetid/symbols/critical.svg +1 -1
  375. data/cockpit/themes/presetid/symbols/escape.svg +2 -2
  376. data/cockpit/themes/presetid/symbols/event_end.svg +1 -1
  377. data/cockpit/themes/presetid/symbols/loop.svg +2 -2
  378. data/cockpit/themes/presetid/symbols/loop_end.svg +2 -2
  379. data/cockpit/themes/presetid/symbols/manipulate.svg +5 -5
  380. data/cockpit/themes/presetid/symbols/otherwise.svg +1 -1
  381. data/cockpit/themes/presetid/symbols/parallel.svg +1 -1
  382. data/cockpit/themes/presetid/symbols/parallel_branch.svg +1 -1
  383. data/cockpit/themes/presetid/symbols/parallel_branch_event.svg +4 -4
  384. data/cockpit/themes/presetid/symbols/parallel_branch_normal.svg +1 -1
  385. data/cockpit/themes/presetid/symbols/parallel_eventbased_exclusive.svg +1 -1
  386. data/cockpit/themes/presetid/symbols/parallel_eventbased_parallel.svg +1 -1
  387. data/cockpit/themes/presetid/symbols/scripts.svg +1 -1
  388. data/cockpit/themes/presetid/symbols/start.svg +1 -1
  389. data/cockpit/themes/presetid/symbols/start_event.svg +1 -1
  390. data/cockpit/themes/presetid/symbols/stop.svg +1 -1
  391. data/cockpit/themes/presetid/symbols/wait_for_signal.svg +4 -4
  392. data/cockpit/themes/reduced/rngs/call.rng +2 -4
  393. data/cockpit/themes/reduced/rngs/callmanipulate.rng +2 -4
  394. data/cockpit/themes/reduced/rngs/manipulate.rng +2 -4
  395. data/cockpit/themes/reduced/rngs/start.rng +2 -4
  396. data/cockpit/themes/reduced/symbols/alternative.svg +2 -2
  397. data/cockpit/themes/reduced/symbols/call.svg +5 -5
  398. data/cockpit/themes/reduced/symbols/call_sensor.svg +7 -7
  399. data/cockpit/themes/reduced/symbols/callmanipulate.svg +6 -6
  400. data/cockpit/themes/reduced/symbols/callmanipulate_sensor.svg +8 -8
  401. data/cockpit/themes/reduced/symbols/callmanipulate_sensor_signal.svg +10 -10
  402. data/cockpit/themes/reduced/symbols/callmanipulate_signal.svg +8 -8
  403. data/cockpit/themes/reduced/symbols/choose.svg +2 -2
  404. data/cockpit/themes/reduced/symbols/choose_exclusive.svg +2 -2
  405. data/cockpit/themes/reduced/symbols/choose_exclusive_finish.svg +1 -1
  406. data/cockpit/themes/reduced/symbols/choose_inclusive.svg +2 -2
  407. data/cockpit/themes/reduced/symbols/choose_inclusive_finish.svg +1 -1
  408. data/cockpit/themes/reduced/symbols/closed_loop.svg +1 -1
  409. data/cockpit/themes/reduced/symbols/closed_loop_cancel.svg +2 -2
  410. data/cockpit/themes/reduced/symbols/closed_loop_control.svg +2 -2
  411. data/cockpit/themes/reduced/symbols/closed_loop_measuring.svg +2 -2
  412. data/cockpit/themes/reduced/symbols/complex.svg +1 -1
  413. data/cockpit/themes/reduced/symbols/critical.svg +1 -1
  414. data/cockpit/themes/reduced/symbols/escape.svg +2 -2
  415. data/cockpit/themes/reduced/symbols/event_end.svg +1 -1
  416. data/cockpit/themes/reduced/symbols/loop.svg +2 -2
  417. data/cockpit/themes/reduced/symbols/loop_end.svg +2 -2
  418. data/cockpit/themes/reduced/symbols/manipulate.svg +5 -5
  419. data/cockpit/themes/reduced/symbols/otherwise.svg +1 -1
  420. data/cockpit/themes/reduced/symbols/parallel.svg +1 -1
  421. data/cockpit/themes/reduced/symbols/parallel_branch.svg +1 -1
  422. data/cockpit/themes/reduced/symbols/parallel_branch_event.svg +4 -4
  423. data/cockpit/themes/reduced/symbols/parallel_branch_normal.svg +1 -1
  424. data/cockpit/themes/reduced/symbols/parallel_eventbased_exclusive.svg +1 -1
  425. data/cockpit/themes/reduced/symbols/parallel_eventbased_parallel.svg +1 -1
  426. data/cockpit/themes/reduced/symbols/scripts.svg +1 -1
  427. data/cockpit/themes/reduced/symbols/start.svg +1 -1
  428. data/cockpit/themes/reduced/symbols/start_event.svg +1 -1
  429. data/cockpit/themes/reduced/symbols/stop.svg +1 -1
  430. data/cockpit/themes/reduced/symbols/wait_for_signal.svg +4 -4
  431. data/cpee.gemspec +1 -1
  432. data/server/executionhandlers/eval/backend/{run → run.rb} +0 -2
  433. data/server/executionhandlers/eval/connection.rb +72 -42
  434. data/server/executionhandlers/eval/controller.rb +6 -0
  435. data/server/executionhandlers/eval/dsl_to_dslx.xsl +65 -42
  436. data/server/executionhandlers/eval/execution.rb +16 -15
  437. data/server/executionhandlers/ruby/connection.rb +1 -0
  438. metadata +3 -3
  439. data/cockpit/js_libs.zip +0 -0
@@ -2,8 +2,10 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
2
2
  constructor(adaptor) {
3
3
  super(adaptor);
4
4
  var self = this;
5
+ this.compact = true;
6
+ this.rotated_labels = false;
5
7
 
6
- var contextMenuHandling = function(svgid,e,child,sibling) { //{{{
8
+ this.contextMenuHandling = function(svgid,e,child,sibling) { //{{{
7
9
  if (save['state'] != "ready" && save['state'] != "stopped") { return false; }
8
10
 
9
11
  var xml_node = self.adaptor.description.get_node_by_svg_id(svgid);
@@ -14,13 +16,13 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
14
16
  group = self.elements[xml_node.get(0).tagName].permissible_children(xml_node,'into');
15
17
  if(group.length > 0) {
16
18
  menu['Insert into'] = group;
17
- copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
19
+ self.copyOrMove(menu['Insert into'],group,xml_node,self.adaptor.description.insert_first_into);
18
20
  }
19
21
  if (self.elements[xml_node.get(0).tagName].permissible_children_expert) {
20
22
  group = self.elements[xml_node.get(0).tagName].permissible_children_expert(xml_node,'into');
21
23
  if(group.length > 0) {
22
24
  menu['Insert into (Experts Only!)'] = group;
23
- copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
25
+ self.copyOrMove(menu['Insert into (Experts Only!)'],group,xml_node,self.adaptor.description.insert_first_into);
24
26
  }
25
27
  }
26
28
  }
@@ -28,19 +30,19 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
28
30
  group = self.elements[xml_node.parent().get(0).tagName].permissible_children(xml_node,'after');
29
31
  if(group.length > 0) {
30
32
  menu['Insert after'] = group;
31
- copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
33
+ self.copyOrMove(menu['Insert after'],group,xml_node,self.adaptor.description.insert_after);
32
34
  }
33
35
  if (self.elements[xml_node.parent().get(0).tagName].permissible_children_expert) {
34
36
  group = self.elements[xml_node.parent().get(0).tagName].permissible_children_expert(xml_node,'after');
35
37
  if(group.length > 0) {
36
38
  menu['Insert after (Experts Only!)'] = group;
37
- copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
39
+ self.copyOrMove(menu['Insert after (Experts Only!)'],group,xml_node,self.adaptor.description.insert_after);
38
40
  }
39
41
  }
40
42
  }
41
43
 
42
44
  if(xml_node.get(0).tagName != 'description' && !self.elements[xml_node.get(0).tagName].neverdelete) {
43
- var icon = contextMenuHandling_clean_icon(self.elements[xml_node.get(0).tagName].illustrator.svg);
45
+ var icon = self.contextMenuHandling_clean_icon(self.elements[xml_node.get(0).tagName].illustrator.svg);
44
46
  icon.find('.rfill').addClass('menu');
45
47
  icon.find('.hfill').addClass('menu');
46
48
  menu['Delete'] = [{
@@ -58,7 +60,7 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
58
60
  var nodes = localStorage.getItem('marked');
59
61
  nodes = JSON.parse(nodes);
60
62
  if (nodes && nodes.length > 0) {
61
- var icond = contextMenuHandling_clean_icon(self.resources['delete']);
63
+ var icond = self.contextMenuHandling_clean_icon(self.resources['delete']);
62
64
  icond.children('.standfat').addClass('menu');
63
65
  menu['Delete'].push({
64
66
  'label': 'Remove Marked Elements',
@@ -90,7 +92,7 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
90
92
  }
91
93
  }
92
94
  if($('> code', xml_node).length > 0 && xml_node.get(0).tagName == 'call') {
93
- var icon = contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg);
95
+ var icon = self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg);
94
96
  icon.children('.rfill:last').addClass('menu');
95
97
  menu['Delete'].push({
96
98
  'label': 'Remove Output Transformation',
@@ -103,669 +105,442 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
103
105
  new CustomMenu(e).contextmenu(menu);
104
106
  } //}}}
105
107
 
106
- this.elements.call = { /*{{{*/
107
- 'type': 'primitive',
108
- 'illustrator': {//{{{
109
- 'endnodes': 'this',
110
- 'label': function(node){
111
- var ret;
112
- if ($('> url',$(node).children('parameters').children('arguments')).length > 0) {
113
- ret = [ { column: 'Label', value: $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'') + ' <a target="_blank" href="' + $('> url',$(node).children('parameters').children('arguments')).text() + '/open"></a>' } ];
114
- } else {
115
- ret = [ { column: 'Label', value: $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'') } ];
116
- }
117
- return ret;
118
- },
119
- 'info': function(node){ return { 'element-endpoint': $(node).attr('endpoint') }; },
120
- 'resolve_symbol': function(node) {
121
- if($('> code', node).length > 0) {
122
- return 'callmanipulate';
123
- } else {
124
- return 'call';
125
- }
126
- },
127
- 'svg': self.adaptor.theme_dir + 'symbols/call.svg'
128
- },//}}}
129
- 'description': self.adaptor.theme_dir + 'rngs/call.rng',
130
- 'permissible_children': function(node,mode) { //{{{
131
- if(node.children('code').length < 1)
132
- return [
133
- {'label': 'Output Transformation',
134
- 'function_call': self.adaptor.description.insert_last_into,
135
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
136
- 'type': undefined,
137
- 'params': [self.adaptor.description.elements.scripts, node]}
138
- ];
139
- return [];
140
- }, //}}}
141
- 'adaptor': {//{{{
142
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
143
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
144
- 'touchend': self.events.touchend,
145
- 'click': self.events.click,
146
- 'dragstart': self.events.dragstart,
147
- 'mouseover': self.events.mouseover,
148
- 'mouseout': self.events.mouseout
149
- }//}}}
150
- }; /*}}}*/
151
- this.elements.otherwise = { /*{{{*/
152
- 'type': 'complex',
153
- 'illustrator': {//{{{
154
- 'endnodes': 'passthrough',
155
- 'closeblock': false,
156
- 'noarrow': true,
157
- 'expansion': function(node) {
158
- return 'vertical';
159
- },
160
- 'col_shift': function(node) {
161
- return false;
162
- },
163
- 'svg': self.adaptor.theme_dir + 'symbols/otherwise.svg'
164
- },//}}}
165
- 'description': self.adaptor.theme_dir + 'rngs/otherwise.rng',
166
- 'neverdelete': true,
167
- 'permissible_children': function(node,mode) { //{{{
168
- var func = null;
169
- var childs = null;
170
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
171
- else { func = self.adaptor.description.insert_after }
172
- var childs = [
173
- {'label': 'Task with Output Transformation',
174
- 'function_call': func,
175
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
176
- 'type': 'callmanipulate',
177
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
178
- {'label': 'Task',
179
- 'function_call': func,
180
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
181
- 'type': 'call',
182
- 'params': [self.adaptor.description.elements.call, node]},
183
- {'label': 'Script',
184
- 'function_call': func,
185
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
186
- 'type': 'manipulate',
187
- 'params': [self.adaptor.description.elements.manipulate, node]},
188
- {'label': 'Parallel',
189
- 'function_call': func,
190
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
191
- 'type': 'parallel',
192
- 'params': [self.adaptor.description.elements.parallel, node]},
193
- {'label': 'Decision',
194
- 'function_call': func,
195
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
196
- 'type': 'choose',
197
- 'params': [self.adaptor.description.elements.choose, node]},
198
- {'label': 'Loop',
199
- 'function_call': func,
200
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
201
- 'type': 'loop',
202
- 'params': [self.adaptor.description.elements.loop, node]},
203
- {'label': 'Terminate',
204
- 'function_call': func,
205
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
206
- 'type': 'terminate',
207
- 'params': [self.adaptor.description.elements.terminate, node]},
208
- {'label': 'Stop',
209
- 'function_call': func,
210
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
211
- 'type': 'stop',
212
- 'params': [self.adaptor.description.elements.stop, node]}
213
- ];
214
- if(node.parent('parallel_branch').length > 0) {
215
- childs.push({
216
- 'label': 'Critical',
217
- 'function_call': func,
218
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
219
- 'type': 'critical',
220
- 'params': [self.adaptor.description.elements.critical, node]
221
- });
222
- }
223
- return childs;
224
- }, //}}}
225
- 'adaptor': {//{{{
226
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,false); },
227
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,false); },
228
- 'touchend': self.events.touchend,
229
- 'click': self.events.click,
230
- 'dblclick': self.events.dblclick,
231
- 'mouseover': self.events.mouseover,
232
- 'mouseout': self.events.mouseout,
233
- }//}}}
234
- }; /*}}}*/
235
- this.elements.alternative = { /*{{{*/
236
- 'type': 'complex',
237
- 'illustrator': {//{{{
238
- 'label': function(node){
239
- var ret = [ { column: 'Label', value: $(node).attr('condition') } ];
240
- return ret;
241
- },
242
- 'endnodes': 'passthrough',
243
- 'noarrow': true,
244
- 'closeblock':false,
245
- 'expansion': function(node) {
246
- return 'vertical';
247
- },
248
- 'col_shift': function(node) {
249
- return false;
250
- },
251
- 'svg': self.adaptor.theme_dir + 'symbols/alternative.svg'
252
- },//}}}
253
- 'description': self.adaptor.theme_dir + 'rngs/alternative.rng',
254
- 'permissible_children': function(node,mode) { //{{{
255
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
256
- else { func = self.adaptor.description.insert_after }
257
- if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
258
- return [{'label': 'Parallel Branch',
259
- 'function_call': func,
260
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
261
- 'type': 'parallel_branch',
262
- 'params': [self.adaptor.description.elements.parallel_branch, node]}];
263
- }
264
- var childs = [
265
- {'label': 'Task with Output Transformation',
266
- 'function_call': func,
267
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
268
- 'type': 'callmanipulate',
269
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
270
- {'label': 'Task',
271
- 'function_call': func,
272
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
273
- 'type': 'call',
274
- 'params': [self.adaptor.description.elements.call, node]},
275
- {'label': 'Script',
276
- 'function_call': func,
277
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
278
- 'type': 'manipulate',
279
- 'params': [self.adaptor.description.elements.manipulate, node]},
280
- {'label': 'Parallel',
281
- 'function_call': func,
282
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
283
- 'type': 'parallel',
284
- 'params': [self.adaptor.description.elements.parallel, node]},
285
- {'label': 'Decision',
286
- 'function_call': func,
287
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
288
- 'type': 'choose',
289
- 'params': [self.adaptor.description.elements.choose, node]},
290
- {'label': 'Loop',
291
- 'function_call': func,
292
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
293
- 'type': 'loop',
294
- 'params': [self.adaptor.description.elements.loop, node]},
295
- {'label': 'Terminate',
296
- 'function_call': func,
297
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
298
- 'type': 'terminate',
299
- 'params': [self.adaptor.description.elements.terminate, node]},
300
- {'label': 'Stop',
301
- 'function_call': func,
302
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
303
- 'type': 'stop',
304
- 'params': [self.adaptor.description.elements.stop, node]}
305
- ];
306
- if(node.parent('parallel_branch').length > 0) {
307
- childs.push({
308
- 'label': 'Critical',
309
- 'function_call': func,
310
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
311
- 'type': 'critical',
312
- 'params': [self.adaptor.description.elements.critical, node]
313
- });
314
- }
315
- return childs;
316
- }, //}}}
317
- 'adaptor': {//{{{
318
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
319
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
320
- 'touchend': self.events.touchend,
321
- 'click': self.events.click,
322
- 'dblclick': self.events.dblclick,
323
- 'mouseover': self.events.mouseover,
324
- 'mouseout': self.events.mouseout,
325
- }//}}}
326
- }; /*}}}*/
327
- this.elements.loop = { /*{{{*/
328
- 'type': 'complex',
329
- 'illustrator': {//{{{
330
- 'resolve_symbol': function(node) {
331
- if($(node).attr('mode') == 'pre_test') {
332
- return 'loop_head';
333
- } else {
334
- return 'loop_tail';
335
- }
336
- },
337
- 'expansion': function(node) {
338
- return 'vertical';
339
- },
340
- 'col_shift': function(node) {
341
- return true;
342
- },
343
- 'svg': self.adaptor.theme_dir + 'symbols/loop.svg'
344
- },// }}}
345
- 'description': self.adaptor.theme_dir + 'rngs/loop.rng',
346
- 'permissible_children': function(node,mode) { //{{{
347
- var func = null;
348
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
349
- else { func = self.adaptor.description.insert_after }
350
- var childs = [
351
- {'label': 'Task with Output Transformation',
352
- 'function_call': func,
353
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
354
- 'type': 'callmanipulate',
355
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
356
- {'label': 'Task',
357
- 'function_call': func,
358
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
359
- 'type': 'call',
360
- 'params': [self.adaptor.description.elements.call, node]},
361
- {'label': 'Script',
362
- 'function_call': func,
363
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
364
- 'type': 'manipulate',
365
- 'params': [self.adaptor.description.elements.manipulate, node]},
366
- {'label': 'Decision',
367
- 'function_call': func,
368
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
369
- 'type': 'choose',
370
- 'params': [self.adaptor.description.elements.choose, node]},
371
- {'label': 'Loop',
372
- 'function_call': func,
373
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
374
- 'type': 'loop',
375
- 'params': [self.adaptor.description.elements.loop, node]},
376
- {'label': 'Terminate',
377
- 'function_call': func,
378
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
379
- 'type': 'terminate',
380
- 'params': [self.adaptor.description.elements.terminate, node]},
381
- {'label': 'Stop',
382
- 'function_call': func,
383
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
384
- 'type': 'stop',
385
- 'params': [self.adaptor.description.elements.stop, node]}
386
- ];
387
- if(node.parent('parallel_branch').length > 0) {
388
- childs.push({
389
- 'label': 'Critical',
390
- 'function_call': func,
391
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
392
- 'type': 'critical',
393
- 'params': [self.adaptor.description.elements.critical, node]
394
- });
395
- }
396
- if(node.parent('parallel').length > node.parent('parallel_branch').length) {
397
- childs.push({'label': 'Parallel Branch',
398
- 'function_call': func,
399
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
400
- 'type': 'parallel_branch',
401
- 'params': [self.adaptor.description.elements.parallel_branch, node]}
402
- );
403
- } else {
404
- childs.push({'label': 'Parallel',
405
- 'function_call': func,
406
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
407
- 'type': 'parallel',
408
- 'params': [self.adaptor.description.elements.parallel, node]}
409
- );
410
- }
411
- return childs;
412
- }, //}}}
413
- 'adaptor': {//{{{
414
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
415
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
416
- 'touchend': self.events.touchend,
417
- 'click': self.events.click,
418
- 'dblclick': self.events.dblclick,
419
- 'mouseover': self.events.mouseover,
420
- 'mouseout': self.events.mouseout,
421
- }//}}}
422
- }; /*}}}*/
423
- this.elements.parallel = { /*{{{*/
424
- 'type': 'complex',
425
- 'illustrator': {//{{{
426
- 'endnodes': 'aggregate',
427
- 'closeblock': false,
428
- 'closing_symbol': 'parallel_finish',
429
- 'expansion': function(node) {
430
- // check if any sibling other than 'parallel_branch' is present
431
- if($(node).children(':not(parallel_branch)').length > 0) return 'vertical';
432
- return 'horizontal';
433
- },
434
- 'col_shift': function(node) {
435
- return true;
436
- },
437
- 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg',
438
- 'resolve_symbol': function(node) {
439
- if($(node).attr('cancel') == 'last') {
440
- return 'parallel_start';
441
- } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == 1) {
442
- return 'parallel_eventbased_exclusive';
443
- } else {
444
- return 'parallel_eventbased_parallel';
445
- }
446
- },
447
- },//}}}
448
- 'description': self.adaptor.theme_dir + 'rngs/parallel.rng',
449
- 'permissible_children': function(node,mode) { //{{{
450
- var func = null;
451
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
452
- else { func = self.adaptor.description.insert_after }
453
- var childs = [
454
- {'label': 'Parallel Branch',
455
- 'function_call': func,
456
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
457
- 'type': 'parallel_branch',
458
- 'params': [self.adaptor.description.elements.parallel_branch, node]},
459
- ];
460
- return childs;
461
- }, //}}}
462
- 'permissible_children_expert': function(node,mode) { //{{{
463
- var func = null;
464
- if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
465
- else { func = self.adaptor.description.insert_after }
466
- var childs = [
467
- {'label': 'Task with Output Transformation',
468
- 'function_call': func,
469
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
470
- 'type': 'callmanipulate',
471
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
472
- {'label': 'Task',
473
- 'function_call': func,
474
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
475
- 'type': 'call',
476
- 'params': [self.adaptor.description.elements.call, node]},
477
- {'label': 'Script',
478
- 'function_call': func,
479
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
480
- 'type': 'manipulate',
481
- 'params': [self.adaptor.description.elements.manipulate, node]},
482
- {'label': 'Decision',
483
- 'function_call': func,
484
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
485
- 'type': 'choose',
486
- 'params': [self.adaptor.description.elements.choose, node]},
487
- {'label': 'Loop',
488
- 'function_call': func,
489
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
490
- 'type': 'loop',
491
- 'params': [self.adaptor.description.elements.loop, node]},
492
- {'label': 'Stop',
493
- 'function_call': func,
494
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
495
- 'type': 'stop',
496
- 'params': [self.adaptor.description.elements.stop, node]}
108
+ this.elements.call.illustrator.resolve_symbol = function(node) { //{{{
109
+ if($('> code', node).length > 0) {
110
+ return 'callmanipulate';
111
+ } else {
112
+ return 'call';
113
+ }
114
+ } //}}}
115
+ this.elements.call.permissible_children = function(node,mode) { //{{{
116
+ if(node.children('code').length < 1)
117
+ return [
118
+ {'label': 'Output Transformation',
119
+ 'function_call': self.adaptor.description.insert_last_into,
120
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
121
+ 'type': undefined,
122
+ 'params': [self.adaptor.description.elements.scripts, node]}
497
123
  ];
498
- if(node.get(0).tagName != 'parallel')
499
- childs.push({'label': 'Parallel',
500
- 'function_call': self.adaptor.description.insert_last_into,
501
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
502
- 'type': 'parallel',
503
- 'params': [self.adaptor.description.elements.parallel, node]});
504
- return childs;
505
- }, //}}}
506
- 'adaptor': {//{{{
507
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
508
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
509
- 'touchend': self.events.touchend,
510
- 'click': self.events.click,
511
- 'dblclick': self.events.dblclick,
512
- 'mouseover': self.events.mouseover,
513
- 'mouseout': self.events.mouseout,
514
- }//}}}
515
- }; /*}}}*/
516
- this.elements.parallel_branch = { /*{{{*/
517
- 'type': 'complex',
518
- 'illustrator': {//{{{
519
- 'endnodes': 'passthrough',
520
- 'closeblock': false,
521
- 'noarrow': true,
522
- 'expansion': function(node) {
523
- return 'vertical';
524
- },
525
- 'resolve_symbol': function(node,shift) {
526
- if(shift == true) {
527
- return 'parallel_branch_event';
528
- } else {
529
- return 'parallel_branch_normal';
530
- }
531
- },
532
- 'col_shift': function(node) {
533
- if(node.parentNode.tagName == 'choose') return false;
534
- if($(node).parents('parallel').first().children(':not(parallel_branch)').length > 0) return true;
535
- return false;
536
- },
537
- 'svg': self.adaptor.theme_dir + 'symbols/parallel_branch.svg'
538
- },//}}}
539
- 'description': self.adaptor.theme_dir + 'rngs/parallel_branch.rng',
540
- 'permissible_children': function(node,mode) { //{{{
541
- var func = null;
542
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
543
- else { func = self.adaptor.description.insert_after }
544
- var childs = [
545
- {'label': 'Task with Output Transformation',
546
- 'function_call': func,
547
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
548
- 'type': 'callmanipulate',
549
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
550
- {'label': 'Task',
551
- 'function_call': func,
552
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
553
- 'type': 'call',
554
- 'params': [self.adaptor.description.elements.call, node]},
555
- {'label': 'Script',
556
- 'function_call': func,
557
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
558
- 'type': 'manipulate',
559
- 'params': [self.adaptor.description.elements.manipulate, node]},
560
- {'label': 'Parallel',
561
- 'function_call': func,
562
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
563
- 'type': 'parallel',
564
- 'params': [self.adaptor.description.elements.parallel, node]},
565
- {'label': 'Decision',
566
- 'function_call': func,
567
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
568
- 'type': 'choose',
569
- 'params': [self.adaptor.description.elements.choose, node]},
570
- {'label': 'Loop',
571
- 'function_call': func,
572
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
573
- 'type': 'loop',
574
- 'params': [self.adaptor.description.elements.loop, node]},
575
- {'label': 'Terminate',
576
- 'function_call': func,
577
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
578
- 'type': 'terminate',
579
- 'params': [self.adaptor.description.elements.terminate, node]},
580
- {'label': 'Stop',
581
- 'function_call': func,
582
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
583
- 'type': 'stop',
584
- 'params': [self.adaptor.description.elements.stop, node]},
585
- {'label': 'Critical',
586
- 'function_call': func,
587
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
124
+ return [];
125
+ } //}}}
126
+
127
+ this.elements.otherwise.permissible_children = function(node,mode) { //{{{
128
+ var func = null;
129
+ var childs = null;
130
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
131
+ else { func = self.adaptor.description.insert_after }
132
+ var childs = [
133
+ {'label': 'Task with Output Transformation',
134
+ 'function_call': func,
135
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
136
+ 'type': 'callmanipulate',
137
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
138
+ {'label': 'Task',
139
+ 'function_call': func,
140
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
141
+ 'type': 'call',
142
+ 'params': [self.adaptor.description.elements.call, node]},
143
+ {'label': 'Script',
144
+ 'function_call': func,
145
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
146
+ 'type': 'manipulate',
147
+ 'params': [self.adaptor.description.elements.manipulate, node]},
148
+ {'label': 'Parallel',
149
+ 'function_call': func,
150
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
151
+ 'type': 'parallel',
152
+ 'params': [self.adaptor.description.elements.parallel, node]},
153
+ {'label': 'Decision',
154
+ 'function_call': func,
155
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
156
+ 'type': 'choose',
157
+ 'params': [self.adaptor.description.elements.choose, node]},
158
+ {'label': 'Loop',
159
+ 'function_call': func,
160
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
161
+ 'type': 'loop',
162
+ 'params': [self.adaptor.description.elements.loop, node]},
163
+ {'label': 'Terminate',
164
+ 'function_call': func,
165
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
166
+ 'type': 'terminate',
167
+ 'params': [self.adaptor.description.elements.terminate, node]},
168
+ {'label': 'Stop',
169
+ 'function_call': func,
170
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
171
+ 'type': 'stop',
172
+ 'params': [self.adaptor.description.elements.stop, node]}
173
+ ];
174
+ if(node.parent('parallel_branch').length > 0) {
175
+ childs.push({
176
+ 'label': 'Critical',
177
+ 'function_call': func,
178
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
588
179
  'type': 'critical',
589
- 'params': [self.adaptor.description.elements.critical, node]}
590
- ];
591
- if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
592
- return [{'label': 'Alternative',
593
- 'function_call': func,
594
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.alternative.illustrator.svg),
595
- 'type': 'alternative',
596
- 'params': [self.adaptor.description.elements.alternative, node]}];
597
- }
598
- return childs;
599
- }, //}}}
600
- 'adaptor': {//{{{
601
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
602
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
603
- 'touchend': self.events.touchend,
604
- 'click': self.events.click,
605
- 'dblclick': self.events.dblclick,
606
- 'mouseover': self.events.mouseover,
607
- 'mouseout': self.events.mouseout,
608
- }//}}}
609
- }; /*}}}*/
610
- this.elements.critical = { /*{{{*/
611
- 'type': 'complex',
612
- 'illustrator': {//{{{
613
- 'endnodes': 'aggregate',
614
- 'closeblock': false,
615
- 'border': true,
616
- 'expansion': function(node) {
617
- return 'vertical';
618
- },
619
- 'col_shift': function(node) {
620
- return true;
621
- },
622
- 'svg': self.adaptor.theme_dir + 'symbols/critical.svg'
623
- },//}}}
624
- 'description': self.adaptor.theme_dir + 'rngs/critical.rng',
625
- 'permissible_children': function(node,mode) { //{{{
626
- var func = null;
627
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
628
- else { func = self.adaptor.description.insert_after }
629
- var childs = [
630
- {'label': 'Task with Output Transformation',
631
- 'function_call': func,
632
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
633
- 'type': 'callmanipulate',
634
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
635
- {'label': 'Task',
636
- 'function_call': func,
637
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
638
- 'type': 'call',
639
- 'params': [self.adaptor.description.elements.call, node]},
640
- {'label': 'Script',
641
- 'function_call': func,
642
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
643
- 'type': 'manipulate',
644
- 'params': [self.adaptor.description.elements.manipulate, node]},
645
- {'label': 'Parallel',
646
- 'function_call': func,
647
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
648
- 'type': 'parallel',
649
- 'params': [self.adaptor.description.elements.parallel, node]},
650
- {'label': 'Decision',
651
- 'function_call': func,
652
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
653
- 'type': 'choose',
654
- 'params': [self.adaptor.description.elements.choose, node]},
655
- {'label': 'Loop',
656
- 'function_call': func,
657
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
658
- 'type': 'loop',
659
- 'params': [self.adaptor.description.elements.loop, node]},
660
- {'label': 'Terminate',
661
- 'function_call': func,
662
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
663
- 'type': 'terminate',
664
- 'params': [self.adaptor.description.elements.terminate, node]},
665
- {'label': 'Stop',
666
- 'function_call': func,
667
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
668
- 'type': 'stop',
669
- 'params': [self.adaptor.description.elements.stop, node]}
670
- ];
671
- if(node.parent('parallel_branch').length > 0) {
672
- childs.push({
673
- 'label': 'Critical',
674
- 'function_call': func,
675
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
676
- 'type': 'critical',
677
- 'params': [self.adaptor.description.elements.critical, node]
678
- });
679
- }
680
- return childs;
681
- }, //}}}
682
- 'adaptor': {//{{{
683
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,true); },
684
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,true); },
685
- 'touchend': self.events.touchend,
686
- 'click': self.events.click,
687
- 'dblclick': self.events.dblclick,
688
- 'mouseover': self.events.mouseover,
689
- 'mouseout': self.events.mouseout,
690
- }//}}}
691
- }; /*}}}*/
692
- this.elements.start = this.elements.description = { /*{{{*/
693
- 'type': 'description',
694
- 'illustrator': {//{{{
695
- 'endnodes': 'passthrough',
696
- 'closeblock': false,
697
- 'balance': true,
698
- 'expansion': function(node) {
699
- return 'vertical';
700
- },
701
- 'closing_symbol': 'end',
702
- 'col_shift': function(node) {
703
- return true;
704
- },
705
- 'svg': self.adaptor.theme_dir + 'symbols/start.svg'
706
- },//}}}
707
- 'description': null,
708
- 'permissible_children': function(node,mode) { //{{{
709
- var func = null;
710
- if (mode == 'into') { func = self.adaptor.description.insert_first_into }
711
- else { func = self.adaptor.description.insert_after }
712
- var childs = [
713
- {'label': 'Task with Output Transformation',
714
- 'function_call': func,
715
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
716
- 'type': 'callmanipulate',
717
- 'params': [self.adaptor.description.elements.callmanipulate, node]},
718
- {'label': 'Task',
719
- 'function_call': func,
720
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
721
- 'type': 'call',
722
- 'params': [self.adaptor.description.elements.call, node]},
723
- {'label': 'Script',
724
- 'function_call': func,
725
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
726
- 'type': 'manipulate',
727
- 'params': [self.adaptor.description.elements.manipulate, node]},
728
- {'label': 'Parallel',
729
- 'function_call': func,
730
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
180
+ 'params': [self.adaptor.description.elements.critical, node]
181
+ });
182
+ }
183
+ return childs;
184
+ }; //}}}
185
+ this.elements.alternative.permissible_children = function(node,mode) { //{{{
186
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
187
+ else { func = self.adaptor.description.insert_after }
188
+ if(node.parents('parallel').length > node.parents('parallel_branch').length && node.get(0).tagName == 'alternative') {
189
+ return [{'label': 'Parallel Branch',
190
+ 'function_call': func,
191
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
192
+ 'type': 'parallel_branch',
193
+ 'params': [self.adaptor.description.elements.parallel_branch, node]}];
194
+ }
195
+ var childs = [
196
+ {'label': 'Task with Output Transformation',
197
+ 'function_call': func,
198
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
199
+ 'type': 'callmanipulate',
200
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
201
+ {'label': 'Task',
202
+ 'function_call': func,
203
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
204
+ 'type': 'call',
205
+ 'params': [self.adaptor.description.elements.call, node]},
206
+ {'label': 'Script',
207
+ 'function_call': func,
208
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
209
+ 'type': 'manipulate',
210
+ 'params': [self.adaptor.description.elements.manipulate, node]},
211
+ {'label': 'Parallel',
212
+ 'function_call': func,
213
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
214
+ 'type': 'parallel',
215
+ 'params': [self.adaptor.description.elements.parallel, node]},
216
+ {'label': 'Decision',
217
+ 'function_call': func,
218
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
219
+ 'type': 'choose',
220
+ 'params': [self.adaptor.description.elements.choose, node]},
221
+ {'label': 'Loop',
222
+ 'function_call': func,
223
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
224
+ 'type': 'loop',
225
+ 'params': [self.adaptor.description.elements.loop, node]},
226
+ {'label': 'Terminate',
227
+ 'function_call': func,
228
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
229
+ 'type': 'terminate',
230
+ 'params': [self.adaptor.description.elements.terminate, node]},
231
+ {'label': 'Stop',
232
+ 'function_call': func,
233
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
234
+ 'type': 'stop',
235
+ 'params': [self.adaptor.description.elements.stop, node]}
236
+ ];
237
+ if(node.parent('parallel_branch').length > 0) {
238
+ childs.push({
239
+ 'label': 'Critical',
240
+ 'function_call': func,
241
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
242
+ 'type': 'critical',
243
+ 'params': [self.adaptor.description.elements.critical, node]
244
+ });
245
+ }
246
+ return childs;
247
+ }; //}}}
248
+ this.elements.loop.permissible_children = function(node,mode) { //{{{
249
+ var func = null;
250
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
251
+ else { func = self.adaptor.description.insert_after }
252
+ var childs = [
253
+ {'label': 'Task with Output Transformation',
254
+ 'function_call': func,
255
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
256
+ 'type': 'callmanipulate',
257
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
258
+ {'label': 'Task',
259
+ 'function_call': func,
260
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
261
+ 'type': 'call',
262
+ 'params': [self.adaptor.description.elements.call, node]},
263
+ {'label': 'Script',
264
+ 'function_call': func,
265
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
266
+ 'type': 'manipulate',
267
+ 'params': [self.adaptor.description.elements.manipulate, node]},
268
+ {'label': 'Decision',
269
+ 'function_call': func,
270
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
271
+ 'type': 'choose',
272
+ 'params': [self.adaptor.description.elements.choose, node]},
273
+ {'label': 'Loop',
274
+ 'function_call': func,
275
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
276
+ 'type': 'loop',
277
+ 'params': [self.adaptor.description.elements.loop, node]},
278
+ {'label': 'Terminate',
279
+ 'function_call': func,
280
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
281
+ 'type': 'terminate',
282
+ 'params': [self.adaptor.description.elements.terminate, node]},
283
+ {'label': 'Stop',
284
+ 'function_call': func,
285
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
286
+ 'type': 'stop',
287
+ 'params': [self.adaptor.description.elements.stop, node]}
288
+ ];
289
+ if(node.parent('parallel_branch').length > 0) {
290
+ childs.push({
291
+ 'label': 'Critical',
292
+ 'function_call': func,
293
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
294
+ 'type': 'critical',
295
+ 'params': [self.adaptor.description.elements.critical, node]
296
+ });
297
+ }
298
+ if(node.parent('parallel').length > node.parent('parallel_branch').length) {
299
+ childs.push({'label': 'Parallel Branch',
300
+ 'function_call': func,
301
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
302
+ 'type': 'parallel_branch',
303
+ 'params': [self.adaptor.description.elements.parallel_branch, node]}
304
+ );
305
+ } else {
306
+ childs.push({'label': 'Parallel',
307
+ 'function_call': func,
308
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
309
+ 'type': 'parallel',
310
+ 'params': [self.adaptor.description.elements.parallel, node]}
311
+ );
312
+ }
313
+ return childs;
314
+ }; //}}}
315
+ this.elements.parallel.permissible_children = function(node,mode) { //{{{
316
+ var func = null;
317
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
318
+ else { func = self.adaptor.description.insert_after }
319
+ var childs = [
320
+ {'label': 'Parallel Branch',
321
+ 'function_call': func,
322
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel_branch.illustrator.svg),
323
+ 'type': 'parallel_branch',
324
+ 'params': [self.adaptor.description.elements.parallel_branch, node]},
325
+ ];
326
+ return childs;
327
+ }; // }}}
328
+ this.elements.parallel.permissible_children_expert = function(node,mode) { //{{{
329
+ var func = null;
330
+ if (mode.match(/into/)) { func = self.adaptor.description.insert_first_into }
331
+ else { func = self.adaptor.description.insert_after }
332
+ var childs = [
333
+ {'label': 'Task with Output Transformation',
334
+ 'function_call': func,
335
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
336
+ 'type': 'callmanipulate',
337
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
338
+ {'label': 'Task',
339
+ 'function_call': func,
340
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
341
+ 'type': 'call',
342
+ 'params': [self.adaptor.description.elements.call, node]},
343
+ {'label': 'Script',
344
+ 'function_call': func,
345
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
346
+ 'type': 'manipulate',
347
+ 'params': [self.adaptor.description.elements.manipulate, node]},
348
+ {'label': 'Decision',
349
+ 'function_call': func,
350
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
351
+ 'type': 'choose',
352
+ 'params': [self.adaptor.description.elements.choose, node]},
353
+ {'label': 'Loop',
354
+ 'function_call': func,
355
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
356
+ 'type': 'loop',
357
+ 'params': [self.adaptor.description.elements.loop, node]},
358
+ {'label': 'Stop',
359
+ 'function_call': func,
360
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
361
+ 'type': 'stop',
362
+ 'params': [self.adaptor.description.elements.stop, node]}
363
+ ];
364
+ if(node.get(0).tagName != 'parallel')
365
+ childs.push({'label': 'Parallel',
366
+ 'function_call': self.adaptor.description.insert_last_into,
367
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
731
368
  'type': 'parallel',
732
- 'params': [self.adaptor.description.elements.parallel, node]},
733
- {'label': 'Decision',
734
- 'function_call': func,
735
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
736
- 'type': 'choose',
737
- 'params': [self.adaptor.description.elements.choose, node]},
738
- {'label': 'Loop',
739
- 'function_call': func,
740
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
741
- 'type': 'loop',
742
- 'params': [self.adaptor.description.elements.loop, node]},
743
- {'label': 'Stop',
744
- 'function_call': func,
745
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
746
- 'type': 'stop',
747
- 'params': [self.adaptor.description.elements.stop, node]}
748
- ];
749
- if(node.parent('parallel_branch').length > 0) {
750
- childs.push({
751
- 'label': 'Critical',
752
- 'function_call': func,
753
- 'menu_icon': contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
754
- 'type': 'critical',
755
- 'params': [self.adaptor.description.elements.critical, node]
756
- });
757
- }
758
- return childs;
759
- }, //}}}
760
- 'adaptor': {//{{{
761
- 'mousedown': function (node,e) { self.events.mousedown(node,e,true,false); },
762
- 'touchstart': function (node,e) { self.events.touchstart(node,e,true,false); },
763
- 'touchend': self.events.touchend,
764
- 'click': self.events.click,
765
- 'dblclick': self.events.dblclick,
766
- 'mouseover': self.events.mouseover,
767
- 'mouseout': self.events.mouseout,
768
- }//}}}
769
- }; /*}}}*/
369
+ 'params': [self.adaptor.description.elements.parallel, node]});
370
+ return childs;
371
+ }; //}}}
372
+
373
+ this.elements.parallel_branch.permissible_children = function(node,mode) { //{{{
374
+ var func = null;
375
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
376
+ else { func = self.adaptor.description.insert_after }
377
+ var childs = [
378
+ {'label': 'Task with Output Transformation',
379
+ 'function_call': func,
380
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
381
+ 'type': 'callmanipulate',
382
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
383
+ {'label': 'Task',
384
+ 'function_call': func,
385
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
386
+ 'type': 'call',
387
+ 'params': [self.adaptor.description.elements.call, node]},
388
+ {'label': 'Script',
389
+ 'function_call': func,
390
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
391
+ 'type': 'manipulate',
392
+ 'params': [self.adaptor.description.elements.manipulate, node]},
393
+ {'label': 'Parallel',
394
+ 'function_call': func,
395
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
396
+ 'type': 'parallel',
397
+ 'params': [self.adaptor.description.elements.parallel, node]},
398
+ {'label': 'Decision',
399
+ 'function_call': func,
400
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
401
+ 'type': 'choose',
402
+ 'params': [self.adaptor.description.elements.choose, node]},
403
+ {'label': 'Loop',
404
+ 'function_call': func,
405
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
406
+ 'type': 'loop',
407
+ 'params': [self.adaptor.description.elements.loop, node]},
408
+ {'label': 'Terminate',
409
+ 'function_call': func,
410
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
411
+ 'type': 'terminate',
412
+ 'params': [self.adaptor.description.elements.terminate, node]},
413
+ {'label': 'Stop',
414
+ 'function_call': func,
415
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
416
+ 'type': 'stop',
417
+ 'params': [self.adaptor.description.elements.stop, node]},
418
+ {'label': 'Critical',
419
+ 'function_call': func,
420
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
421
+ 'type': 'critical',
422
+ 'params': [self.adaptor.description.elements.critical, node]}
423
+ ];
424
+ if(node.parents('choose').length > node.parents('alternative, otherwise').length && node.get(0).tagName == 'parallel_branch') {
425
+ return [{'label': 'Alternative',
426
+ 'function_call': func,
427
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.alternative.illustrator.svg),
428
+ 'type': 'alternative',
429
+ 'params': [self.adaptor.description.elements.alternative, node]}];
430
+ }
431
+ return childs;
432
+ }; //}}}
433
+ this.elements.critical.permissible_children = function(node,mode) { //{{{
434
+ var func = null;
435
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
436
+ else { func = self.adaptor.description.insert_after }
437
+ var childs = [
438
+ {'label': 'Task with Output Transformation',
439
+ 'function_call': func,
440
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
441
+ 'type': 'callmanipulate',
442
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
443
+ {'label': 'Task',
444
+ 'function_call': func,
445
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
446
+ 'type': 'call',
447
+ 'params': [self.adaptor.description.elements.call, node]},
448
+ {'label': 'Script',
449
+ 'function_call': func,
450
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
451
+ 'type': 'manipulate',
452
+ 'params': [self.adaptor.description.elements.manipulate, node]},
453
+ {'label': 'Parallel',
454
+ 'function_call': func,
455
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
456
+ 'type': 'parallel',
457
+ 'params': [self.adaptor.description.elements.parallel, node]},
458
+ {'label': 'Decision',
459
+ 'function_call': func,
460
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
461
+ 'type': 'choose',
462
+ 'params': [self.adaptor.description.elements.choose, node]},
463
+ {'label': 'Loop',
464
+ 'function_call': func,
465
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
466
+ 'type': 'loop',
467
+ 'params': [self.adaptor.description.elements.loop, node]},
468
+ {'label': 'Terminate',
469
+ 'function_call': func,
470
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.terminate.illustrator.svg),
471
+ 'type': 'terminate',
472
+ 'params': [self.adaptor.description.elements.terminate, node]},
473
+ {'label': 'Stop',
474
+ 'function_call': func,
475
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
476
+ 'type': 'stop',
477
+ 'params': [self.adaptor.description.elements.stop, node]}
478
+ ];
479
+ if(node.parent('parallel_branch').length > 0) {
480
+ childs.push({
481
+ 'label': 'Critical',
482
+ 'function_call': func,
483
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
484
+ 'type': 'critical',
485
+ 'params': [self.adaptor.description.elements.critical, node]
486
+ });
487
+ }
488
+ return childs;
489
+ }; //}}}
490
+
491
+ this.elements.start.illustrator.resolve_symbol = null;
492
+ this.elements.start.description = null;
493
+ this.elements.start.permissible_children = this.elements.description.permissible_children = function(node,mode) { //{{{
494
+ var func = null;
495
+ if (mode == 'into') { func = self.adaptor.description.insert_first_into }
496
+ else { func = self.adaptor.description.insert_after }
497
+ var childs = [
498
+ {'label': 'Task with Output Transformation',
499
+ 'function_call': func,
500
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.callmanipulate.illustrator.svg),
501
+ 'type': 'callmanipulate',
502
+ 'params': [self.adaptor.description.elements.callmanipulate, node]},
503
+ {'label': 'Task',
504
+ 'function_call': func,
505
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.call.illustrator.svg),
506
+ 'type': 'call',
507
+ 'params': [self.adaptor.description.elements.call, node]},
508
+ {'label': 'Script',
509
+ 'function_call': func,
510
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.manipulate.illustrator.svg),
511
+ 'type': 'manipulate',
512
+ 'params': [self.adaptor.description.elements.manipulate, node]},
513
+ {'label': 'Parallel',
514
+ 'function_call': func,
515
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.parallel.illustrator.svg),
516
+ 'type': 'parallel',
517
+ 'params': [self.adaptor.description.elements.parallel, node]},
518
+ {'label': 'Decision',
519
+ 'function_call': func,
520
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.choose.illustrator.svg),
521
+ 'type': 'choose',
522
+ 'params': [self.adaptor.description.elements.choose, node]},
523
+ {'label': 'Loop',
524
+ 'function_call': func,
525
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.loop.illustrator.svg),
526
+ 'type': 'loop',
527
+ 'params': [self.adaptor.description.elements.loop, node]},
528
+ {'label': 'Stop',
529
+ 'function_call': func,
530
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.stop.illustrator.svg),
531
+ 'type': 'stop',
532
+ 'params': [self.adaptor.description.elements.stop, node]}
533
+ ];
534
+ if(node.parent('parallel_branch').length > 0) {
535
+ childs.push({
536
+ 'label': 'Critical',
537
+ 'function_call': func,
538
+ 'menu_icon': self.contextMenuHandling_clean_icon(self.elements.critical.illustrator.svg),
539
+ 'type': 'critical',
540
+ 'params': [self.adaptor.description.elements.critical, node]
541
+ });
542
+ }
543
+ return childs;
544
+ }; //}}}
770
545
  }
771
546
  }