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
@@ -1,5 +1,5 @@
1
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="colorstyle markstyle hoverstyle stand"/>
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
3
3
  <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
4
4
  <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
5
5
  <line x1="8.5" y1="15.5" x2="22.5" y2="15.5" class="stand"/>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <path class="markstyle colorstyle hoverstyle execstyle stand" d="m 3.5 27 l 12 -24 l 12 24 z"/>
2
+ <path class="colorstyle execstyle stand" d="m 3.5 27 l 12 -24 l 12 24 z"/>
3
3
  <path class="normal" style="fill:#000000;" d="m 16.5 11 l 0 8 l -2 0 l 0 -8 z"/>
4
4
  <path class="normal" style="fill:#000000;" d="m 16.5 21 l 0 2 l -2 0 l 0 -2 z"/>
5
5
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15" cy="15" r="14" class="stand markstyle hoverstyle"/>
3
- <circle cx="15" cy="15" r="11" class="stand markstyle colorstyle"/>
2
+ <circle cx="15" cy="15" r="14" class="stand"/>
3
+ <circle cx="15" cy="15" r="11" class="stand colorstyle"/>
4
4
  <polygon points="10.5,20.5 15,8.5 20.5,20.5 15,15.5 10.5,20.5" class="black"/>
5
5
  </svg>
@@ -1,3 +1,3 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15" cy="15" r="14" class="colorstyle execstyle hoverstyle markstyle standfat"/>
2
+ <circle cx="15" cy="15" r="14" class="colorstyle execstyle standfat"/>
3
3
  </svg>
@@ -1,11 +1,11 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <g class="part-normal">
3
- <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle markstyle hoverstyle stand"/>
3
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
4
4
  <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
5
5
  <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
6
6
  </g>
7
7
  <g class="part-start">
8
- <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle markstyle hoverstyle stand"/>
8
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
9
9
  <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
10
10
  <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
11
11
  </g>
@@ -1,11 +1,11 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <g class="part-normal">
3
- <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle markstyle hoverstyle stand"/>
3
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
4
4
  <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
5
5
  <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
6
6
  </g>
7
7
  <g class="part-start">
8
- <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle markstyle hoverstyle stand"/>
8
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
9
9
  <line x1="10.5" y1="20.5" x2="20.5" y2="10.5" class="stand"/>
10
10
  <line x1="10.5" y1="10.5" x2="20.5" y2="20.5" class="stand"/>
11
11
  </g>
@@ -1,19 +1,19 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <g class="part-normal">
3
- <rect x="1" y="1" width="28" height="28" rx="4" class="hoverstyle execstyle markstyle colorstyle stand"/>
3
+ <rect x="1" y="1" width="28" height="28" rx="4" class="execstyle colorstyle stand"/>
4
4
  <path transform="translate(10,10)" class="normal" style="fill:#000000;" d="M 0.09999755,7.74648 2.8538976,7.32656 q 0.17579,0.80078 0.7129,1.2207 0.5371,0.41016 1.5039,0.41016 1.06445,0 1.60156,-0.39063 0.36133,-0.27343 0.36133,-0.73242 0,-0.3125 -0.19531,-0.51758 -0.20508,-0.19531 -0.91797,-0.36132 -3.32031,-0.73243 -4.20898,-1.33789 -1.23047005,-0.83985 -1.23047005,-2.33399 0,-1.34766 1.06445005,-2.26562 Q 2.6097576,0.1 4.8460876,0.1 q 2.12891,0 3.16406,0.69336 1.03516,0.69336 1.425786,2.05078 l -2.587886,0.47851 q -0.16602,-0.60547 -0.63477,-0.92773 -0.45898,-0.32227 -1.31836,-0.32227 -1.08398,0 -1.55273,0.30274 -0.3125,0.21484 -0.3125,0.55664 0,0.29297 0.27343,0.49805 0.3711,0.27343 2.5586,0.77148 2.19726,0.49805 3.0664,1.2207 0.859379,0.73242 0.859379,2.04102 0,1.42578 -1.191409,2.45117 -1.1914,1.02539 -3.52539,1.02539 -2.11914,0 -3.35937,-0.85937 Q 0.48085755,9.22109 0.09999755,7.74648 Z"/>
5
5
  </g>
6
6
  <g class="part-start" clip-path="url(#startclip)">
7
- <rect x="1" y="1" width="38" height="28" rx="4" class="hoverstyle execstyle markstyle colorstyle stand"/>
7
+ <rect x="1" y="1" width="38" height="28" rx="4" class="execstyle colorstyle stand"/>
8
8
  <path transform="translate(10,10)" class="normal" style="fill:#000000;" d="M 0.09999755,7.74648 2.8538976,7.32656 q 0.17579,0.80078 0.7129,1.2207 0.5371,0.41016 1.5039,0.41016 1.06445,0 1.60156,-0.39063 0.36133,-0.27343 0.36133,-0.73242 0,-0.3125 -0.19531,-0.51758 -0.20508,-0.19531 -0.91797,-0.36132 -3.32031,-0.73243 -4.20898,-1.33789 -1.23047005,-0.83985 -1.23047005,-2.33399 0,-1.34766 1.06445005,-2.26562 Q 2.6097576,0.1 4.8460876,0.1 q 2.12891,0 3.16406,0.69336 1.03516,0.69336 1.425786,2.05078 l -2.587886,0.47851 q -0.16602,-0.60547 -0.63477,-0.92773 -0.45898,-0.32227 -1.31836,-0.32227 -1.08398,0 -1.55273,0.30274 -0.3125,0.21484 -0.3125,0.55664 0,0.29297 0.27343,0.49805 0.3711,0.27343 2.5586,0.77148 2.19726,0.49805 3.0664,1.2207 0.859379,0.73242 0.859379,2.04102 0,1.42578 -1.191409,2.45117 -1.1914,1.02539 -3.52539,1.02539 -2.11914,0 -3.35937,-0.85937 Q 0.48085755,9.22109 0.09999755,7.74648 Z"/>
9
9
  </g>
10
10
  <g class="part-end" clip-path="url(#endclip)">
11
- <rect x="1" y="1" width="28" height="28" rx="4" class="hoverstyle execstyle markstyle colorstyle stand"/>
11
+ <rect x="1" y="1" width="28" height="28" rx="4" class="execstyle colorstyle stand"/>
12
12
  </g>
13
13
  <g class="part-middle" transform="translate(27,0)">
14
14
  <rect x="0" y="1" width="220" height="28" class="standwithout colorstyle"/>
15
- <line x1="0" y1="1" x2="220" y2="1" class="standline markstyle hoverstyle execstyle" />
16
- <line x1="0" y1="29" x2="220" y2="29" class="standline markstyle hoverstyle execstyle" />
15
+ <line x1="0" y1="1" x2="220" y2="1" class="standline execstyle" />
16
+ <line x1="0" y1="29" x2="220" y2="29" class="standline execstyle" />
17
17
  <text transform="translate(0,20)" class="label"></text>
18
18
  </g>
19
19
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <circle cx="15" cy="15" r="11" class="standtrans"/>
3
- <line x1="9" y1="21" x2="21" y2="9" class="stand markstyle hoverstyle"/>
3
+ <line x1="9" y1="21" x2="21" y2="9" class="stand"/>
4
4
  <line x1="15.6" y1="4" x2="15.6" y2="27" class="edge"/>
5
5
  </svg>
@@ -1,5 +1,5 @@
1
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="colorstyle markstyle hoverstyle stand"/>
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
3
3
  <line x1="15.5" y1="9.5" x2="15.5" y2="21.5" class="stand"/>
4
4
  <line x1="9.5" y1="15.5" x2="21.5" y2="15.5" class="stand"/>
5
5
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <rect x="11" y="6" width="9" height="18" rx="0" class="white"/>
3
- <path class="markstyle hoverstyle 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;"/>
3
+ <path class="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
4
  <line x1="15.6" y1="4" x2="15.6" y2="27" class="edge"/>
5
5
  </svg>
@@ -1,13 +1,13 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="1" y="3" width="24" height="24" rx="4" class="colorstyle hoverstyle execstyle markstyle stand"/>
2
+ <rect x="1" y="3" width="24" height="24" rx="4" class="colorstyle execstyle stand"/>
3
3
 
4
- <circle cx="24" cy="15" r="9" class="markstyle execstyle standthin" style="stroke-dasharray: 1,2"/>
5
- <circle cx="24" cy="15" r="7" class="markstyle execstyle standthin" style="stroke-dasharray: 1,2"/>
4
+ <circle cx="24" cy="15" r="9" class="execstyle standthin" style="stroke-dasharray: 1,2"/>
5
+ <circle cx="24" cy="15" r="7" class="execstyle standthin" style="stroke-dasharray: 1,2"/>
6
6
  <line x1="24" y1="11" x2="20" y2="18" class="stand"/>
7
7
  <line x1="20" y1="18" x2="28" y2="18" class="stand"/>
8
8
  <line x1="28" y1="18" x2="24" y2="11" class="stand"/>
9
9
 
10
- <circle cx="55.5" cy="15" r="14" class="colorstyle markstyle hoverstyle execstyle stand"/>
10
+ <circle cx="55.5" cy="15" r="14" class="colorstyle execstyle stand"/>
11
11
  <line x1="55.5" y1="11" x2="51.5" y2="18" class="stand"/>
12
12
  <line x1="51.5" y1="18" x2="59.5" y2="18" class="stand"/>
13
13
  <line x1="59.5" y1="18" x2="55.5" y2="11" class="stand"/>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <rect x="11" y="6" width="9" height="18" rx="0" class="white"/>
3
- <path class="markstyle hoverstyle 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;"/>
3
+ <path class="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
4
  <line x1="15.6" y1="4" x2="15.6" y2="27" class="edge"/>
5
5
  </svg>
@@ -1,5 +1,5 @@
1
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="colorstyle markstyle hoverstyle stand"/>
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
3
3
  <circle cx="15.5" cy="15.5" r="8" class="standthin colorstyle"/>
4
4
  <circle cx="15.5" cy="15.5" r="6" class="standthin colorstyle"/>
5
5
  <path
@@ -1,5 +1,5 @@
1
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="colorstyle markstyle hoverstyle stand"/>
2
+ <rect transform="rotate(45,14,12)" x="7" y="3" width="21" height="21" class="colorstyle stand"/>
3
3
  <circle cx="15.5" cy="15.5" r="8" class="standthin colorstyle"/>
4
4
  <circle cx="15.5" cy="15.5" r="6" class="standthin colorstyle"/>
5
5
  <line x1="12.5" y1="15.5" x2="18.5" y2="15.5" class="stand"/>
@@ -1,4 +1,4 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="1" y="1" width="28" height="28" rx="4" class="hoverstyle execstyle markstyle stand"/>
2
+ <rect x="1" y="1" width="28" height="28" rx="4" class="execstyle stand"/>
3
3
  <path transform="translate(10,10)" class="normal" style="fill:#000000;" d="M 0.09999755,7.74648 2.8538976,7.32656 q 0.17579,0.80078 0.7129,1.2207 0.5371,0.41016 1.5039,0.41016 1.06445,0 1.60156,-0.39063 0.36133,-0.27343 0.36133,-0.73242 0,-0.3125 -0.19531,-0.51758 -0.20508,-0.19531 -0.91797,-0.36132 -3.32031,-0.73243 -4.20898,-1.33789 -1.23047005,-0.83985 -1.23047005,-2.33399 0,-1.34766 1.06445005,-2.26562 Q 2.6097576,0.1 4.8460876,0.1 q 2.12891,0 3.16406,0.69336 1.03516,0.69336 1.425786,2.05078 l -2.587886,0.47851 q -0.16602,-0.60547 -0.63477,-0.92773 -0.45898,-0.32227 -1.31836,-0.32227 -1.08398,0 -1.55273,0.30274 -0.3125,0.21484 -0.3125,0.55664 0,0.29297 0.27343,0.49805 0.3711,0.27343 2.5586,0.77148 2.19726,0.49805 3.0664,1.2207 0.859379,0.73242 0.859379,2.04102 0,1.42578 -1.191409,2.45117 -1.1914,1.02539 -3.52539,1.02539 -2.11914,0 -3.35937,-0.85937 Q 0.48085755,9.22109 0.09999755,7.74648 Z"/>
4
4
  </svg>
@@ -1,3 +1,3 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15" cy="15" r="14" class="colorstyle markstyle hoverstyle execstyle stand"/>
2
+ <circle cx="15" cy="15" r="14" class="colorstyle execstyle stand"/>
3
3
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15" cy="15" r="14" class="colorstyle hoverstyle execstyle markstyle stand"/>
2
+ <circle cx="15" cy="15" r="14" class="colorstyle execstyle stand"/>
3
3
  <rect x="7" y="10" width="16" height="11" class="black" style="fill: none"/>
4
4
  <path d="m 7,10 8,6 8,-6" class="black" style="fill: none"/>
5
5
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="15.5" cy="15.5" r="14" class="colorstyle hoverstyle execstyle markstyle stand"/>
2
+ <circle cx="15.5" cy="15.5" r="14" class="colorstyle execstyle stand"/>
3
3
  <line x1="12.5" y1="22.5" x2="12.5" y2="8.5" class="stand"/>
4
4
  <line x1="17.5" y1="22.5" x2="17.5" y2="8.5" class="stand"/>
5
5
  </svg>
@@ -1,14 +1,14 @@
1
1
  <svg class="clickable" xmlns="http://www.w3.org/2000/svg">
2
2
  <g class="part-normal">
3
- <circle cx="15.5" cy="15" r="14" class="markstyle hoverstyle stand"/>
4
- <circle cx="15.5" cy="15" r="11" class="colorstyle markstyle execstyle stand"/>
3
+ <circle cx="15.5" cy="15" r="14" class="stand"/>
4
+ <circle cx="15.5" cy="15" r="11" class="colorstyle execstyle stand"/>
5
5
  <line x1="15.5" y1="08" x2="09.5" y2="19" class="stand"/>
6
6
  <line x1="09.5" y1="19" x2="21.5" y2="19" class="stand"/>
7
7
  <line x1="21.5" y1="19" x2="15.5" y2="08" class="stand"/>
8
8
  </g>
9
9
  <g class="part-start">
10
- <circle cx="15.5" cy="15" r="14" class="markstyle hoverstyle stand"/>
11
- <circle cx="15.5" cy="15" r="11" class="colorstyle markstyle execstyle stand"/>
10
+ <circle cx="15.5" cy="15" r="14" class="stand"/>
11
+ <circle cx="15.5" cy="15" r="11" class="colorstyle execstyle stand"/>
12
12
  <line x1="15.5" y1="08" x2="09.5" y2="19" class="stand"/>
13
13
  <line x1="09.5" y1="19" x2="21.5" y2="19" class="stand"/>
14
14
  <line x1="21.5" y1="19" x2="15.5" y2="08" class="stand"/>
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.97"
3
+ s.version = "2.1.98"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -1,5 +1,3 @@
1
- #!/usr/bin/ruby
2
- require 'rbtrace'
3
1
  require 'yaml'
4
2
  opts = YAML::load_file(File.join(__dir__,'opts.yaml'))
5
3
  opts[:pidf] = __FILE__ + '.pid'
@@ -36,23 +36,33 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
36
36
  def self::inform_syntax_error(arguments,err,code)# {{{
37
37
  # TODO extract spot (code) where error happened for better error handling (ruby 3.1 only)
38
38
  # https://github.com/rails/rails/pull/45818/commits/3beb2aff3be712e44c34a588fbf35b79c0246ca5
39
- puts err.message
40
- puts err.backtrace
41
39
  controller = arguments[0]
42
- mess = err.backtrace ? err.backtrace[0].gsub(/([\w -_]+):(\d+):in.*/,'\\1, Line \2: ') : ''
43
- mess += err.message
44
- controller.notify("description/error", :message => mess)
40
+ begin
41
+ controller.notify("description/error", :message => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):\s(.*)/)[4] + err.message, :line => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):/)[3], :where => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):/)[1])
42
+ rescue => e
43
+ controller.notify("description/error", :message => err.message)
44
+ end
45
45
  end# }}}
46
46
  def self::inform_connectionwrapper_error(arguments,err) # {{{
47
47
  controller = arguments[0]
48
- puts err.message
49
- puts err.backtrace
50
- controller.notify("executionhandler/error", :message => err.backtrace[0].gsub(/([\w -_]+):(\d+):in.*/,'\\1, Line \2: ') + err.message)
48
+ begin
49
+ if err.backtrace[0] !~ /, Line/
50
+ controller.notify("executionhandler/error", :message => err.backtrace[0].gsub(/(Activity a\d+)/,'\1:'), :line => -1, :where => err.backtrace[0].match(/Activity a\d+/)[0])
51
+ else
52
+ controller.notify("executionhandler/error", :message => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):\s(.*)/)[4] + err.message, :line => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):/)[3], :where => err.backtrace[0].match(/(.*?)(, Line |:)(\d+):/)[1])
53
+ end
54
+ rescue => e
55
+ controller.notify("executionhandler/error", :message => err.message)
56
+ end
51
57
  end # }}}
52
58
  def self::inform_position_change(arguments,ipc={}) # {{{
53
59
  controller = arguments[0]
54
60
  controller.notify("position/change", ipc)
55
61
  end # }}}
62
+ def self::inform_activity_minimal(arguments,what,uuid,label,position) # {{{
63
+ controller = arguments[0]
64
+ controller.notify("activity/#{what}", :ecid => Thread.current.__id__, :'activity-uuid' => uuid, :label => label, :activity => position)
65
+ end # }}}
56
66
 
57
67
  def initialize(arguments,position=nil,continue=nil) # {{{
58
68
  @controller = arguments[0]
@@ -74,6 +84,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
74
84
  'base' => @controller.base_url,
75
85
  'instance' => @controller.instance_id,
76
86
  'instance_url' => @controller.instance_url,
87
+ 'instance_url_encoded' => Riddl::Protocols::Utils::escape(@controller.instance_url),
77
88
  'instance_uuid' => @controller.uuid
78
89
  },
79
90
  :task => {
@@ -112,7 +123,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
112
123
  params << Riddl::Header.new("CPEE-CALLBACK-ID",callback)
113
124
  params << Riddl::Header.new("CPEE-ACTIVITY",@handler_position)
114
125
  params << Riddl::Header.new("CPEE-LABEL",@label||'')
115
- params << Riddl::Header.new("CPEE-TWIN-TARGET",@controller.attributes['twin_target']) if @controller.attributes['twin_target']
126
+ params << Riddl::Header.new("CPEE-SIM-TARGET",@controller.attributes['sim_target']) if @controller.attributes['sim_target']
116
127
  @controller.attributes.each do |key,value|
117
128
  params << Riddl::Header.new("CPEE-ATTR-#{key.to_s.gsub(/_/,'-')}",value)
118
129
  end
@@ -131,11 +142,11 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
131
142
  @guard_files += result
132
143
 
133
144
  if status == 561
134
- if @controller.attributes['twin_translate']
135
- gettrans = Riddl::Client.new(@controller.attributes['twin_translate'])
145
+ if @controller.attributes['sim_translate']
146
+ gettrans = Riddl::Client.new(@controller.attributes['sim_translate'])
136
147
  gtstatus, gtresult, gtheaders = gettrans.get
137
148
  if gtstatus >= 200 && gtstatus < 300
138
- transwhat = case headers['CPEE-TWIN-TASKTYPE']
149
+ transwhat = case headers['CPEE-SIM-TASKTYPE']
139
150
  when 'i'; 'instantiation'
140
151
  when 'ir'; 'ipc-receive'
141
152
  when 'is'; 'ipc-send'
@@ -155,20 +166,25 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
155
166
  a[k_ht] = headers[hname] if headers[hname]
156
167
  end
157
168
  end
158
- params.each do |p|
159
- if p.name == k
160
- if a.is_a? String
161
- p.value = a
162
- elsif a.is_a? Hash
163
- ohash = JSON::parse(p.value) rescue {}
164
- ohash.merge!(a)
165
- p.value = JSON.generate(ohash)
166
- end
167
- end
169
+ p = params.find{|p| p.name == k }
170
+ if p.nil?
171
+ p = Riddl::Parameter::Simple.new(k,'{}')
172
+ params << p
173
+ end
174
+
175
+ if a.is_a? String
176
+ p.value = a
177
+ elsif a.is_a? Hash
178
+ ohash = JSON::parse(p.value) rescue {}
179
+ ohash.merge!(a)
180
+ p.value = JSON.generate(ohash)
168
181
  end
169
182
  end
170
183
  end
171
184
  end
185
+
186
+ order = { 'behavior' => 1, 'url' => 2, 'init' => 3, 'endpoints' => 4, 'attributes' => 5, 'customization' => 6 }
187
+ params.sort!{|a,b| order[a.name].to_i <=> order[b.name].to_i }
172
188
  end
173
189
  else
174
190
  @handler_endpoint = @handler_endpoint_orig
@@ -188,10 +204,10 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
188
204
  callback result, headers
189
205
  elsif headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true' && result.empty?
190
206
  if headers['CPEE_INSTANTIATION']
191
- @controller.notify("task/instantiation", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']))
207
+ @controller.notify("task/instantiation", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']))
192
208
  end
193
209
  if headers['CPEE_EVENT']
194
- @controller.notify("task/#{headers['CPEE_EVENT'].gsub(/[^\w_-]/,'')}", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint)
210
+ @controller.notify("task/#{headers['CPEE_EVENT'].gsub(/[^\w_-]/,'')}", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint)
195
211
  end
196
212
  # do nothing, later on things will happend
197
213
  else
@@ -205,7 +221,8 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
205
221
  @label = parameters[:label]
206
222
  @anno = parameters.delete(:annotations) rescue nil
207
223
  @controller.notify("status/resource_utilization", :mib => GetProcessMem.new.mb, **Process.times.to_h)
208
- @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters, :annotations => @anno)
224
+ @controller.notify("activity/calling", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters)
225
+ @controller.notify("activity/annotation", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :annotations => @anno)
209
226
  if passthrough.to_s.empty?
210
227
  proto_curl parameters
211
228
  else
@@ -215,6 +232,8 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
215
232
  end # }}}
216
233
  def activity_manipulate_handle(parameters) #{{{
217
234
  @label = parameters[:label]
235
+ @anno = parameters.delete(:annotations) rescue nil
236
+ @controller.notify("activity/annotation", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :annotations => @anno)
218
237
  end #}}}
219
238
 
220
239
  def activity_result_value # {{{
@@ -242,20 +261,18 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
242
261
  end #}}}
243
262
 
244
263
  def inform_activity_done # {{{
245
- @controller.notify("activity/done", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position)
264
+ @controller.notify("activity/done", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position)
246
265
  @controller.notify("status/resource_utilization", :mib => GetProcessMem.new.mb, **Process.times.to_h)
247
266
  end # }}}
248
267
  def inform_activity_manipulate # {{{
249
- @controller.notify("activity/manipulating", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position)
268
+ @controller.notify("activity/manipulating", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position)
250
269
  end # }}}
251
270
  def inform_activity_failed(err) # {{{
252
- puts err.message
253
- puts err.backtrace
254
- @controller.notify("activity/failed", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :message => err.message, :line => err.backtrace[0].match(/(.*?):(\d+):/)[2], :where => err.backtrace[0].match(/(.*?):(\d+):/)[1])
271
+ @controller.notify("activity/failed", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :message => err.backtrace[0].match(/(.*?):(\d+):\s(.*)/)[3], :line => err.backtrace[0].match(/(.*?):(\d+):/)[2], :where => err.backtrace[0].match(/(.*?):(\d+):/)[1])
255
272
  end # }}}
256
273
  def inform_manipulate_change(status,changed_dataelements,changed_endpoints,dataelements,endpoints) # {{{
257
274
  unless status.nil?
258
- @controller.notify("status/change", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :id => status.id, :message => status.message)
275
+ @controller.notify("status/change", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :data => { :id => status.id, :message => status.message } )
259
276
  end
260
277
  unless changed_dataelements.nil? || changed_dataelements.empty?
261
278
  de = dataelements.slice(*changed_dataelements).transform_values { |v| enc = CPEE::EvalRuby::Translation::detect_encoding(v); (enc == 'OTHER' ? v : (v.encode('UTF-8',enc) rescue CPEE::EvalRuby::Translation::convert_to_base64(v))) }
@@ -275,22 +292,28 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
275
292
 
276
293
  def callback(result=nil,options={}) #{{{
277
294
  recv = CPEE::EvalRuby::Translation::structurize_result(result)
278
- @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv, :annotations => @anno)
295
+ @controller.notify("activity/receiving", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv)
279
296
 
280
297
  @guard_files += result
281
298
 
282
299
  if options['CPEE_INSTANTIATION']
283
- @controller.notify("task/instantiation", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(options['CPEE_INSTANTIATION']))
300
+ @controller.notify("task/instantiation", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(options['CPEE_INSTANTIATION']))
284
301
  end
285
302
  if options['CPEE_EVENT']
286
- @controller.notify("task/#{options['CPEE_EVENT'].gsub(/[^\w_-]/,'')}", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv)
303
+ @controller.notify("task/#{options['CPEE_EVENT'].gsub(/[^\w_-]/,'')}", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv)
304
+ end
305
+ if options['CPEE_STATUS']
306
+ @controller.notify("activity/status", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :status => options['CPEE_STATUS'])
307
+ end
308
+
309
+ if options['CPEE_STATUS'] || options['CPEE_EVENT']
310
+ @handler_returnValue = nil
311
+ @handler_returnOptions = nil
287
312
  else
288
313
  @handler_returnValue = recv
289
314
  @handler_returnOptions = options
290
315
  end
291
- if options['CPEE_STATUS']
292
- @controller.notify("activity/status", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :status => options['CPEE_STATUS'])
293
- end
316
+
294
317
  if options['CPEE_UPDATE']
295
318
  @handler_continue.continue WEEL::Signal::UpdateAgain
296
319
  else
@@ -342,7 +365,9 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
342
365
  end #}}}
343
366
  def test_condition(__dataelements,__endpoints,__local,__additional,__code,__args={}) #{{{
344
367
  __struct = WEEL::ReadStructure.new(__dataelements,__endpoints,__local,__additional).instance_eval(__code,'Condition',1)
345
- @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => __code, :condition => (__struct ? "true" : "false"))
368
+
369
+ @controller.notify("gateway/decide", :ecid => Thread.current.__id__, :instance_uuid => @controller.uuid, :code => __code, :condition => (__struct ? "true" : "false"))
370
+ @controller.notify("gateway/annotation", :ecid => Thread.current.__id__, :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :annotations => {})
346
371
  __struct
347
372
  end #}}}
348
373
  def manipulate(__readonly,__lock,__dataelements,__endpoints,__status,__local,__additional,__code,__where,__result=nil,__options=nil) #{{{
@@ -356,10 +381,15 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
356
381
  __struct
357
382
  end #}}}
358
383
 
359
- def split_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]{{{
360
- @controller.notify("gateway/split", :instance_uuid => @controller.uuid, :branches => branches)
384
+ def split_branches(id, branches = []) # factual, so for inclusive or [[a],[b],[c,d,e]] {{{
385
+ payload = { :instance_uuid => @controller.uuid, :ecid => id.to_s }
386
+ payload[:branches] = branches.length if branches.length > 0
387
+ @controller.notify("gateway/split", payload )
361
388
  end #}}}
362
- def join_branches(branches) # factual, so for inclusive or [[a],[b],[c,d,e]]{{{
363
- @controller.notify("gateway/join", :instance_uuid => @controller.uuid, :branches => branches)
389
+ def join_branches(id, branches = []) # factual, so for inclusive or [[a],[b],[c,d,e]] {{{
390
+ payload = { :instance_uuid => @controller.uuid, :ecid => id.to_s }
391
+ payload[:branches] = branches if branches.length > 0
392
+ payload[:branches_length] = branches.length if branches.length > 0
393
+ @controller.notify("gateway/join", payload )
364
394
  end #}}}
365
395
  end
@@ -125,6 +125,12 @@ class Controller
125
125
  def dataelements
126
126
  @instance.data
127
127
  end
128
+ def url_result_transformation
129
+ @opts[:url_result_transformation]
130
+ end
131
+ def url_code
132
+ @opts[:url_code]
133
+ end
128
134
 
129
135
  def start
130
136
  if vote("state/change", :state => 'running')