cpee 2.0.25 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (375) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +27 -4
  3. data/cockpit/css/wfadaptor.css +11 -0
  4. data/cockpit/edit.html +10 -10
  5. data/cockpit/graph.html +3 -3
  6. data/cockpit/index.html +9 -6
  7. data/cockpit/js/details.js +0 -1
  8. data/cockpit/js/instance.js +26 -19
  9. data/cockpit/js/model.js +6 -11
  10. data/cockpit/js/parameters.js +6 -4
  11. data/cockpit/js/wfadaptor.js +2 -0
  12. data/cockpit/model.html +4 -3
  13. data/cockpit/replay.html +3 -2
  14. data/cockpit/templates.legacy/Async.xml +12 -12
  15. data/cockpit/templates.legacy/BCO.xml +9 -11
  16. data/cockpit/templates.legacy/BCS.xml +9 -11
  17. data/cockpit/templates.legacy/Centurio.xml +7 -7
  18. data/cockpit/templates.legacy/Concurrent.xml +7 -7
  19. data/cockpit/templates.legacy/Coopis Testset.xml +7 -7
  20. data/cockpit/templates.legacy/Endpoints and Data Manipulation.xml +6 -7
  21. data/cockpit/templates.legacy/ICSOC Testset.xml +7 -7
  22. data/cockpit/templates.legacy/Infinity.xml +7 -7
  23. data/cockpit/templates.legacy/Lego Boxer.xml +13 -13
  24. data/cockpit/templates.legacy/Lego Conveyor.xml +13 -13
  25. data/cockpit/templates.legacy/Lego Crane.xml +16 -16
  26. data/cockpit/templates.legacy/Lego Ejector.xml +16 -16
  27. data/cockpit/templates.legacy/Lego Full.xml +12 -12
  28. data/cockpit/templates.legacy/Lego Liddy.xml +13 -13
  29. data/cockpit/templates.legacy/Lego Plate.xml +13 -13
  30. data/cockpit/templates.legacy/Lego Transporter.xml +14 -14
  31. data/cockpit/templates.legacy/Lego_Part_1.xml +12 -12
  32. data/cockpit/templates.legacy/LgLinear.xml +7 -10
  33. data/cockpit/templates.legacy/Linear.xml +11 -14
  34. data/cockpit/templates.legacy/Log.xml +11 -12
  35. data/cockpit/templates.legacy/Mangler 1.xml +7 -7
  36. data/cockpit/templates.legacy/Mangler 2.xml +7 -7
  37. data/cockpit/templates.legacy/Manuel Labels.xml +11 -11
  38. data/cockpit/templates.legacy/Promise.xml +30 -30
  39. data/cockpit/templates.legacy/SOPROMO Test Sonification.xml +7 -7
  40. data/cockpit/templates.legacy/Subprocess.xml +15 -15
  41. data/cockpit/templates.legacy/Syncing P34 1.xml +8 -11
  42. data/cockpit/templates.legacy/Syncing P34 2.xml +8 -11
  43. data/cockpit/templates.legacy/Syncing P34 3.xml +8 -11
  44. data/cockpit/templates.legacy/Syncing P34.xml +8 -11
  45. data/cockpit/templates.legacy/TEST - Bad Loop.xml +7 -7
  46. data/cockpit/templates.legacy/TEST - Wrong Positions.xml +7 -7
  47. data/cockpit/templates.legacy/Take_5.xml +14 -14
  48. data/cockpit/templates.legacy/Update.xml +11 -11
  49. data/cockpit/templates.legacy/Worklist Parallel.xml +17 -17
  50. data/cockpit/templates.legacy/Worklist Test CPEE.xml +14 -14
  51. data/cockpit/templates.legacy/Worklist Test.xml +14 -14
  52. data/cockpit/templates.legacy/Worklist Test2.xml +14 -14
  53. data/cockpit/templates/Coopis 2010.xml +7 -7
  54. data/cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml +9 -12
  55. data/cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml +9 -12
  56. data/cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml +9 -12
  57. data/cockpit/templates/Track Test Local.xml +8 -4
  58. data/cockpit/templates/Track Test.xml +6 -2
  59. data/cockpit/templates/UR-VUE 2020 Manual Adjust.xml +6 -2
  60. data/cockpit/templates/UR-VUE 2020 Solution Baseline.xml +9 -5
  61. data/cockpit/templates/UR-VUE 2020 Solution NN.xml +9 -5
  62. data/cockpit/templates/UR-VUE 2020 Solution View.xml +9 -5
  63. data/cockpit/templates/UR-VUE 2020.xml +9 -5
  64. data/cockpit/templates/Worklist.xml +14 -14
  65. data/cockpit/templates/instantiate.local/Take_Sub.xml +2 -2
  66. data/cockpit/templates/instantiate/Take_Perf.xml +1 -1
  67. data/cockpit/templates/instantiate/Take_Sub.xml +2 -2
  68. data/cockpit/templates/instantiate/Take_X.xml +2 -2
  69. data/cockpit/themes/compact/rngs/parallel.rng +6 -0
  70. data/cockpit/themes/compact/rngs/start.rng +83 -0
  71. data/cockpit/themes/compact/symbols/parallel_branch_event.svg +2 -2
  72. data/cockpit/themes/compact/symbols/parallel_eventbased_exclusive.svg +9 -0
  73. data/cockpit/themes/compact/symbols/parallel_eventbased_parallel.svg +8 -0
  74. data/cockpit/themes/compact/symbols/start.svg +1 -1
  75. data/cockpit/themes/compact/theme.js +45 -2
  76. data/cockpit/themes/control/rngs/parallel.rng +6 -0
  77. data/cockpit/themes/control/rngs/start.rng +83 -0
  78. data/cockpit/themes/control/symbols/parallel_branch_event.svg +2 -2
  79. data/cockpit/themes/control/symbols/parallel_eventbased_exclusive.svg +9 -0
  80. data/cockpit/themes/control/symbols/parallel_eventbased_parallel.svg +8 -0
  81. data/cockpit/themes/control/symbols/start.svg +1 -1
  82. data/cockpit/themes/control/theme.js +45 -2
  83. data/cockpit/themes/default/rngs/parallel.rng +6 -0
  84. data/cockpit/themes/default/rngs/start.rng +83 -0
  85. data/cockpit/themes/default/symbols/parallel_branch_event.svg +2 -2
  86. data/cockpit/themes/default/symbols/parallel_eventbased_exclusive.svg +9 -0
  87. data/cockpit/themes/default/symbols/parallel_eventbased_parallel.svg +8 -0
  88. data/cockpit/themes/default/symbols/start.svg +1 -1
  89. data/cockpit/themes/default/theme.js +46 -3
  90. data/cockpit/themes/extended/rngs/parallel.rng +6 -0
  91. data/cockpit/themes/extended/rngs/start.rng +83 -0
  92. data/cockpit/themes/extended/symbols/parallel_branch_event.svg +2 -2
  93. data/cockpit/themes/extended/symbols/parallel_eventbased_exclusive.svg +9 -0
  94. data/cockpit/themes/extended/symbols/parallel_eventbased_parallel.svg +8 -0
  95. data/cockpit/themes/extended/symbols/start.svg +1 -1
  96. data/cockpit/themes/extended/theme.js +45 -2
  97. data/cockpit/themes/model/symbols/parallel_branch_event.svg +2 -2
  98. data/cockpit/themes/model/symbols/parallel_eventbased_exclusive.svg +9 -0
  99. data/cockpit/themes/model/symbols/parallel_eventbased_parallel.svg +8 -0
  100. data/cockpit/themes/model/symbols/start.svg +1 -1
  101. data/cockpit/themes/model/theme.js +45 -2
  102. data/cockpit/themes/packed/rngs/parallel.rng +6 -0
  103. data/cockpit/themes/packed/rngs/start.rng +83 -0
  104. data/cockpit/themes/packed/symbols/parallel_branch_event.svg +2 -2
  105. data/cockpit/themes/packed/symbols/parallel_eventbased_exclusive.svg +9 -0
  106. data/cockpit/themes/packed/symbols/parallel_eventbased_parallel.svg +8 -0
  107. data/cockpit/themes/packed/symbols/start.svg +1 -1
  108. data/cockpit/themes/packed/theme.js +45 -2
  109. data/cockpit/themes/preset/rngs/parallel.rng +6 -0
  110. data/cockpit/themes/preset/rngs/start.rng +83 -0
  111. data/cockpit/themes/preset/symbols/parallel_branch_event.svg +2 -2
  112. data/cockpit/themes/preset/symbols/parallel_eventbased_exclusive.svg +9 -0
  113. data/cockpit/themes/preset/symbols/parallel_eventbased_parallel.svg +8 -0
  114. data/cockpit/themes/preset/symbols/start.svg +1 -1
  115. data/cockpit/themes/preset/theme.js +46 -3
  116. data/cockpit/track.html +3 -3
  117. data/cpee.gemspec +3 -3
  118. data/lib/cpee/attributes_helper.rb +14 -0
  119. data/lib/cpee/implementation.rb +10 -8
  120. data/lib/cpee/implementation_callbacks.rb +28 -7
  121. data/lib/cpee/implementation_notifications.rb +20 -2
  122. data/lib/cpee/implementation_properties.rb +128 -24
  123. data/lib/cpee/persistence.rb +0 -27
  124. data/lib/cpee/statemachine.rb +14 -0
  125. data/lib/cpee/value_helper.rb +14 -0
  126. data/lib/properties.xml +4 -4
  127. data/lib/properties/{handlerwrapper.rng → executionhandler.rng} +2 -2
  128. data/lib/properties/properties.rng +2 -2
  129. data/lib/properties/set-properties.rng +2 -2
  130. data/lib/properties/set-some-properties.rng +2 -2
  131. data/server/{resources → executionhandlers/ruby}/backend/README.md +0 -0
  132. data/server/{resources → executionhandlers/ruby}/backend/instance.template +2 -4
  133. data/server/{resources → executionhandlers/ruby}/backend/opts.yaml +2 -2
  134. data/server/executionhandlers/ruby/backend/run +37 -0
  135. data/server/{handlerwrappers/default.rb → executionhandlers/ruby/connection.rb} +7 -3
  136. data/server/executionhandlers/ruby/controller.rb +195 -0
  137. data/server/{resources/transformation_dslx.xsl → executionhandlers/ruby/dsl_to_dslx.xsl} +57 -8
  138. data/server/executionhandlers/ruby/execution.rb +81 -0
  139. data/server/resources/properties.empty +1 -1
  140. data/server/resources/properties.init +1 -1
  141. data/server/resources/topics.xml +2 -2
  142. data/server/routing/end.rb +1 -0
  143. data/server/routing/forward-votes.rb +6 -5
  144. data/server/routing/persist.rb +4 -4
  145. data/tools/cpee +9 -3
  146. data/tools/server/cpee +1 -1
  147. data/tools/server/resources/properties.init +1 -1
  148. metadata +35 -239
  149. data/cockpit/templates.legacy/convert_cpee2.rb +0 -15
  150. data/lib/cpee/controller.rb +0 -199
  151. data/lib/cpee/transform.rb +0 -95
  152. data/server/resources/backend/instance.rb +0 -23
  153. data/server/resources/backend/run +0 -33
  154. data/server/routing/end.pid +0 -1
  155. data/server/routing/forward-events.pid +0 -1
  156. data/server/routing/forward-votes.pid +0 -1
  157. data/server/routing/persist.pid +0 -1
  158. data/server/server.pid +0 -1
  159. data/tools/test/README +0 -4
  160. data/tools/test/config.json +0 -3
  161. data/tools/test/contrib/graph_example.svg +0 -1166
  162. data/tools/test/contrib/legend.svg +0 -817
  163. data/tools/test/contrib/symbols.svg +0 -224
  164. data/tools/test/contrib/transformation1.xsl +0 -264
  165. data/tools/test/contrib/transformation2.xsl +0 -10
  166. data/tools/test/contrib/tree_example.svg +0 -788
  167. data/tools/test/css/model.css +0 -24
  168. data/tools/test/css/track.css +0 -60
  169. data/tools/test/css/ui.css +0 -214
  170. data/tools/test/css/wfadaptor.css +0 -422
  171. data/tools/test/edit.html +0 -258
  172. data/tools/test/graph.html +0 -69
  173. data/tools/test/index.html +0 -258
  174. data/tools/test/js/details.js +0 -109
  175. data/tools/test/js/instance.js +0 -1344
  176. data/tools/test/js/model.js +0 -41
  177. data/tools/test/js/parameters.js +0 -82
  178. data/tools/test/js/track.js +0 -18
  179. data/tools/test/js/ui.js +0 -104
  180. data/tools/test/js/wfadaptor.js +0 -763
  181. data/tools/test/js_libs.zip +0 -0
  182. data/tools/test/js_libs/Makefile +0 -2
  183. data/tools/test/js_libs/ansi_up.js +0 -333
  184. data/tools/test/js_libs/console.js +0 -80
  185. data/tools/test/js_libs/custommenu.css +0 -84
  186. data/tools/test/js_libs/custommenu.js +0 -104
  187. data/tools/test/js_libs/experiments1/relaxngui.css +0 -185
  188. data/tools/test/js_libs/experiments1/relaxngui.js +0 -488
  189. data/tools/test/js_libs/experiments1/rngtest9.html +0 -60
  190. data/tools/test/js_libs/experiments1/rngtest9.rng +0 -35
  191. data/tools/test/js_libs/experiments1/rngtest9.xml +0 -8
  192. data/tools/test/js_libs/jquery-2.2.4.min.js +0 -4
  193. data/tools/test/js_libs/jquery-3.2.1.min.js +0 -4
  194. data/tools/test/js_libs/jquery-3.3.1.min.js +0 -2
  195. data/tools/test/js_libs/jquery.browser.js +0 -40
  196. data/tools/test/js_libs/jquery.caret.min.js +0 -10
  197. data/tools/test/js_libs/jquery.cookie.js +0 -117
  198. data/tools/test/js_libs/jquery.min.js +0 -1
  199. data/tools/test/js_libs/jquery.svg.min.js +0 -6
  200. data/tools/test/js_libs/jquery.svgdom.min.js +0 -6
  201. data/tools/test/js_libs/markdown.min.js +0 -1
  202. data/tools/test/js_libs/parsequery.js +0 -21
  203. data/tools/test/js_libs/printf.js +0 -368
  204. data/tools/test/js_libs/relaxngui.css +0 -213
  205. data/tools/test/js_libs/relaxngui.js +0 -543
  206. data/tools/test/js_libs/strftime.min.js +0 -1
  207. data/tools/test/js_libs/tests/dataelements.html +0 -59
  208. data/tools/test/js_libs/tests/dataelements.rng +0 -8
  209. data/tools/test/js_libs/tests/dataelements.xml +0 -3
  210. data/tools/test/js_libs/tests/relaxngui.css +0 -203
  211. data/tools/test/js_libs/tests/relaxngui.js +0 -502
  212. data/tools/test/js_libs/tests/rngtest1.html +0 -66
  213. data/tools/test/js_libs/tests/rngtest1.rng +0 -147
  214. data/tools/test/js_libs/tests/rngtest1.xml +0 -13
  215. data/tools/test/js_libs/tests/rngtest2.html +0 -60
  216. data/tools/test/js_libs/tests/rngtest2.rng +0 -6
  217. data/tools/test/js_libs/tests/rngtest2.xml +0 -3
  218. data/tools/test/js_libs/tests/rngtest3.html +0 -60
  219. data/tools/test/js_libs/tests/rngtest3.rng +0 -23
  220. data/tools/test/js_libs/tests/rngtest3.xml +0 -9
  221. data/tools/test/js_libs/tests/rngtest4.html +0 -60
  222. data/tools/test/js_libs/tests/rngtest4.rng +0 -19
  223. data/tools/test/js_libs/tests/rngtest4.xml +0 -12
  224. data/tools/test/js_libs/tests/rngtest5.html +0 -60
  225. data/tools/test/js_libs/tests/rngtest5.rng +0 -75
  226. data/tools/test/js_libs/tests/rngtest5.xml +0 -40
  227. data/tools/test/js_libs/tests/rngtest6.html +0 -60
  228. data/tools/test/js_libs/tests/rngtest6.rng +0 -24
  229. data/tools/test/js_libs/tests/rngtest6.xml +0 -6
  230. data/tools/test/js_libs/tests/rngtest8.html +0 -60
  231. data/tools/test/js_libs/tests/rngtest8.rng +0 -13
  232. data/tools/test/js_libs/tests/rngtest8.xml +0 -2
  233. data/tools/test/js_libs/tests/rngtest9.html +0 -60
  234. data/tools/test/js_libs/tests/rngtest9.rng +0 -31
  235. data/tools/test/js_libs/tests/rngtest9.xml +0 -8
  236. data/tools/test/js_libs/ui.css +0 -333
  237. data/tools/test/js_libs/ui.html +0 -168
  238. data/tools/test/js_libs/ui.js +0 -177
  239. data/tools/test/js_libs/underscore.min.js +0 -27
  240. data/tools/test/js_libs/util.js +0 -81
  241. data/tools/test/js_libs/vkbeautify.0.99.00.beta.js +0 -358
  242. data/tools/test/js_libs/vkbeautify.js +0 -1
  243. data/tools/test/js_libs/webcomponents.min.js +0 -196
  244. data/tools/test/model.html +0 -192
  245. data/tools/test/rngs/attributes.rng +0 -8
  246. data/tools/test/rngs/dataelements.rng +0 -8
  247. data/tools/test/rngs/endpoints.rng +0 -8
  248. data/tools/test/templates.legacy/Async.xml +0 -46
  249. data/tools/test/templates.legacy/BCO.xml +0 -70
  250. data/tools/test/templates.legacy/BCS.xml +0 -70
  251. data/tools/test/templates.legacy/Centurio.xml +0 -75
  252. data/tools/test/templates.legacy/Concurrent.xml +0 -40
  253. data/tools/test/templates.legacy/Coopis Testset.xml +0 -76
  254. data/tools/test/templates.legacy/Endpoints and Data Manipulation.xml +0 -30
  255. data/tools/test/templates.legacy/ICSOC Testset.xml +0 -95
  256. data/tools/test/templates.legacy/Infinity.xml +0 -28
  257. data/tools/test/templates.legacy/Lego Boxer.xml +0 -31
  258. data/tools/test/templates.legacy/Lego Conveyor.xml +0 -31
  259. data/tools/test/templates.legacy/Lego Crane.xml +0 -87
  260. data/tools/test/templates.legacy/Lego Ejector.xml +0 -55
  261. data/tools/test/templates.legacy/Lego Full.xml +0 -142
  262. data/tools/test/templates.legacy/Lego Liddy.xml +0 -40
  263. data/tools/test/templates.legacy/Lego Plate.xml +0 -31
  264. data/tools/test/templates.legacy/Lego Transporter.xml +0 -43
  265. data/tools/test/templates.legacy/Lego_Part_1.xml +0 -85
  266. data/tools/test/templates.legacy/LgLinear.xml +0 -65
  267. data/tools/test/templates.legacy/Linear.xml +0 -77
  268. data/tools/test/templates.legacy/Log.xml +0 -117
  269. data/tools/test/templates.legacy/Mangler 1.xml +0 -87
  270. data/tools/test/templates.legacy/Mangler 2.xml +0 -103
  271. data/tools/test/templates.legacy/Manuel Labels.xml +0 -55
  272. data/tools/test/templates.legacy/Promise.xml +0 -275
  273. data/tools/test/templates.legacy/SOPROMO Test Sonification.xml +0 -83
  274. data/tools/test/templates.legacy/Subprocess.xml +0 -56
  275. data/tools/test/templates.legacy/Syncing P34 1.xml +0 -77
  276. data/tools/test/templates.legacy/Syncing P34 2.xml +0 -77
  277. data/tools/test/templates.legacy/Syncing P34 3.xml +0 -77
  278. data/tools/test/templates.legacy/Syncing P34.xml +0 -77
  279. data/tools/test/templates.legacy/TEST - Bad Loop.xml +0 -173
  280. data/tools/test/templates.legacy/TEST - Wrong Positions.xml +0 -174
  281. data/tools/test/templates.legacy/Take_5.xml +0 -48
  282. data/tools/test/templates.legacy/Update.xml +0 -32
  283. data/tools/test/templates.legacy/Worklist Parallel.xml +0 -104
  284. data/tools/test/templates.legacy/Worklist Test CPEE.xml +0 -40
  285. data/tools/test/templates.legacy/Worklist Test.xml +0 -42
  286. data/tools/test/templates.legacy/Worklist Test2.xml +0 -43
  287. data/tools/test/templates.legacy/convert_cpee2.rb +0 -15
  288. data/tools/test/templates.legacy/convert_preset.rb +0 -32
  289. data/tools/test/templates.legacy/testsets.xml +0 -37
  290. data/tools/test/templates.legacy/transformations.xml +0 -4
  291. data/tools/test/templates/Coopis 2010.xml +0 -76
  292. data/tools/test/templates/IUPC arXiv:1104.3609 P34 1.xml +0 -77
  293. data/tools/test/templates/IUPC arXiv:1104.3609 P34 2.xml +0 -77
  294. data/tools/test/templates/IUPC arXiv:1104.3609 P34 3.xml +0 -77
  295. data/tools/test/templates/Track Test Local.xml +0 -82
  296. data/tools/test/templates/Track Test.xml +0 -82
  297. data/tools/test/templates/UR-VUE 2020 Manual Adjust.xml +0 -182
  298. data/tools/test/templates/UR-VUE 2020 Solution Baseline.xml +0 -203
  299. data/tools/test/templates/UR-VUE 2020 Solution NN.xml +0 -197
  300. data/tools/test/templates/UR-VUE 2020 Solution View.xml +0 -151
  301. data/tools/test/templates/UR-VUE 2020.xml +0 -26
  302. data/tools/test/templates/Worklist.xml +0 -42
  303. data/tools/test/templates/instantiate.local/Take_Sub.xml +0 -59
  304. data/tools/test/templates/instantiate/Take_Perf.xml +0 -46
  305. data/tools/test/templates/instantiate/Take_Sub.xml +0 -58
  306. data/tools/test/templates/instantiate/Take_X.xml +0 -48
  307. data/tools/test/themes/compact/theme.js +0 -1285
  308. data/tools/test/themes/diana/theme.js +0 -1650
  309. data/tools/test/themes/extended/theme.js +0 -1325
  310. data/tools/test/themes/model/rngs/alternative.rng +0 -1
  311. data/tools/test/themes/model/rngs/call.rng +0 -67
  312. data/tools/test/themes/model/rngs/callmanipulate.rng +0 -72
  313. data/tools/test/themes/model/rngs/choose.rng +0 -1
  314. data/tools/test/themes/model/rngs/critical.rng +0 -1
  315. data/tools/test/themes/model/rngs/escape.rng +0 -1
  316. data/tools/test/themes/model/rngs/group.rng +0 -1
  317. data/tools/test/themes/model/rngs/loop.rng +0 -1
  318. data/tools/test/themes/model/rngs/manipulate.rng +0 -1
  319. data/tools/test/themes/model/rngs/otherwise.rng +0 -1
  320. data/tools/test/themes/model/rngs/parallel.rng +0 -1
  321. data/tools/test/themes/model/rngs/parallel_branch.rng +0 -1
  322. data/tools/test/themes/model/rngs/scripts.rng +0 -7
  323. data/tools/test/themes/model/rngs/stop.rng +0 -1
  324. data/tools/test/themes/model/rngs/terminate.rng +0 -1
  325. data/tools/test/themes/model/theme.js +0 -1268
  326. data/tools/test/themes/packed/theme.js +0 -1286
  327. data/tools/test/themes/preset/rngs/alternative.rng +0 -25
  328. data/tools/test/themes/preset/rngs/call.rng +0 -122
  329. data/tools/test/themes/preset/rngs/callmanipulate.rng +0 -145
  330. data/tools/test/themes/preset/rngs/choose.rng +0 -14
  331. data/tools/test/themes/preset/rngs/closed_loop.rng +0 -62
  332. data/tools/test/themes/preset/rngs/closed_loop_cancel.rng +0 -5
  333. data/tools/test/themes/preset/rngs/closed_loop_control.rng +0 -31
  334. data/tools/test/themes/preset/rngs/closed_loop_measuring.rng +0 -12
  335. data/tools/test/themes/preset/rngs/critical.rng +0 -5
  336. data/tools/test/themes/preset/rngs/escape.rng +0 -1
  337. data/tools/test/themes/preset/rngs/group.rng +0 -3
  338. data/tools/test/themes/preset/rngs/loop.rng +0 -22
  339. data/tools/test/themes/preset/rngs/manipulate.rng +0 -9
  340. data/tools/test/themes/preset/rngs/otherwise.rng +0 -22
  341. data/tools/test/themes/preset/rngs/parallel.rng +0 -21
  342. data/tools/test/themes/preset/rngs/parallel_branch.rng +0 -8
  343. data/tools/test/themes/preset/rngs/scripts.rng +0 -23
  344. data/tools/test/themes/preset/rngs/stop.rng +0 -5
  345. data/tools/test/themes/preset/rngs/terminate.rng +0 -1
  346. data/tools/test/themes/preset/symbols/alternative.svg +0 -5
  347. data/tools/test/themes/preset/symbols/arrow.svg +0 -3
  348. data/tools/test/themes/preset/symbols/call.svg +0 -6
  349. data/tools/test/themes/preset/symbols/callmanipulate.svg +0 -8
  350. data/tools/test/themes/preset/symbols/choose.svg +0 -5
  351. data/tools/test/themes/preset/symbols/choose_exclusive.svg +0 -5
  352. data/tools/test/themes/preset/symbols/choose_inclusive.svg +0 -4
  353. data/tools/test/themes/preset/symbols/closed_loop.svg +0 -5
  354. data/tools/test/themes/preset/symbols/closed_loop_cancel.svg +0 -5
  355. data/tools/test/themes/preset/symbols/closed_loop_control.svg +0 -5
  356. data/tools/test/themes/preset/symbols/closed_loop_measuring.svg +0 -6
  357. data/tools/test/themes/preset/symbols/complex.svg +0 -8
  358. data/tools/test/themes/preset/symbols/critical.svg +0 -4
  359. data/tools/test/themes/preset/symbols/end.svg +0 -3
  360. data/tools/test/themes/preset/symbols/escape.svg +0 -5
  361. data/tools/test/themes/preset/symbols/event_end.svg +0 -3
  362. data/tools/test/themes/preset/symbols/loop.svg +0 -5
  363. data/tools/test/themes/preset/symbols/manipulate.svg +0 -4
  364. data/tools/test/themes/preset/symbols/otherwise.svg +0 -5
  365. data/tools/test/themes/preset/symbols/parallel.svg +0 -5
  366. data/tools/test/themes/preset/symbols/parallel_branch.svg +0 -5
  367. data/tools/test/themes/preset/symbols/parallel_branch_compact.svg +0 -4
  368. data/tools/test/themes/preset/symbols/parallel_branch_event.svg +0 -14
  369. data/tools/test/themes/preset/symbols/parallel_branch_normal.svg +0 -5
  370. data/tools/test/themes/preset/symbols/scripts.svg +0 -4
  371. data/tools/test/themes/preset/symbols/start.svg +0 -3
  372. data/tools/test/themes/preset/symbols/stop.svg +0 -5
  373. data/tools/test/themes/preset/symbols/terminate.svg +0 -4
  374. data/tools/test/themes/preset/theme.js +0 -1287
  375. data/tools/test/track.html +0 -142
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3830f81020d6eb6b83ac9eba995f7175607f8aee0279b1537e0f5415f3dab21
4
- data.tar.gz: a3e1ce78c221dae79d973435cc6997c3dc5e8d00ce8e5cd89634b2648b75012d
3
+ metadata.gz: c98641a6cc00767af290395984b5b99534adb37b7235ad223d412d99fe9969b4
4
+ data.tar.gz: 82db456ab83962e51373c961e41b13b7a2de21d0739d1a047bfc4c74ef548156
5
5
  SHA512:
6
- metadata.gz: 56cb04c53af5f2f7eee0c0dcbb83d339a75985e32d7584294f33f5ec755b0d4db9bd4100e0e9c692d921f7bdfe5f60be0a167f7416484ddb6f67d250bb67a013
7
- data.tar.gz: de22ffe114afc38010c7650c75e28b067ecec6fec52df16f96f08928a1038634e175636e0cc177d4ecd88ab4de1cc1a99e53a670578041a7f6515ca718c46c7e
6
+ metadata.gz: 0e2a3a1c77315364f0d400ddb2127e31e63e95ff1561ed24b63ac71cd2bc49dc122fddd73ecef28607af6f221180536f9256076a4c2b7cd90f2ca66744ce5b34
7
+ data.tar.gz: dfb4857bd734da1011f56658a8802686819669a348f1c29a8c1c35308dd1efb2d4d303ced6d57a4db484f55079f32f6282913d152b21e51229577a6b75b73679
data/cockpit/css/ui.css CHANGED
@@ -74,6 +74,7 @@ body {
74
74
 
75
75
  #instance ui-content { height: 7em; }
76
76
 
77
+ #areanew td:nth-child(2) { padding-top: 0.4em; padding-bottom: 0.4em; }
77
78
  #areanew td:nth-child(1) { width: 7em; padding-right: 1em; }
78
79
  #areanew td:nth-child(3) { width: 16em; padding-left: 1em; }
79
80
  #areanew input {
@@ -106,13 +107,26 @@ ui-tabbed ui-tabbar ui-behind button {
106
107
  content: "|";
107
108
  }
108
109
 
109
- #parameters ui-content { height: 8.5em; min-height: 1.7em; }
110
+ #parameters ui-content { height: 8.5em; min-height: 2.7em; }
110
111
 
111
- #areadataelements { height: 100%; overflow-x: hidden; overflow-y: scroll; }
112
+ #areadataelements, #areaendpoints, #areaattributes {
113
+ display: flex;
114
+ flex-direction: row;
115
+ align-items: flex-start;
116
+ height: 100%;
117
+ }
118
+ #areadataelements > button, #areaendpoints > button, #areaattributes > button {
119
+ height: 100%;
120
+ padding: 0;
121
+ margin-right: 0.5em;
122
+ }
123
+ #areadataelements > button span, #areaendpoints > button span, #areaattributes > button span {
124
+ display: inline-block;
125
+ transform: rotate(-90deg);
126
+ }
127
+ #areadataelements.inactive, #areaendpoints.inactive, #areaattributes.inactive { display: none; }
112
128
  #areadataelements button.relaxngui_control { display: none; }
113
- #areaendpoints { height: 100%; overflow-x: hidden; overflow-y: scroll; }
114
129
  #areaendpoints button.relaxngui_control { display: none; }
115
- #areaattributes { height: 100%; overflow-x: hidden; overflow-y: scroll; }
116
130
  #areaattributes button.relaxngui_control { display: none; }
117
131
 
118
132
  #areainstance input[type=file] { display: none; }
@@ -154,6 +168,9 @@ ui-tabbed ui-tabbar ui-behind button {
154
168
  margin:0;
155
169
  padding:0;
156
170
  width: 100%;
171
+ height: 100%;
172
+ overflow-x: hidden;
173
+ overflow-y: scroll;
157
174
  }
158
175
 
159
176
  #dat_dataelements {
@@ -163,6 +180,9 @@ ui-tabbed ui-tabbar ui-behind button {
163
180
  margin:0;
164
181
  padding:0;
165
182
  width: 100%;
183
+ height: 100%;
184
+ overflow-x: hidden;
185
+ overflow-y: scroll;
166
186
  }
167
187
  #dat_attributes {
168
188
  border-collapse:collapse;
@@ -171,6 +191,9 @@ ui-tabbed ui-tabbar ui-behind button {
171
191
  margin:0;
172
192
  padding:0;
173
193
  width: 100%;
194
+ height: 100%;
195
+ overflow-x: hidden;
196
+ overflow-y: scroll;
174
197
  }
175
198
 
176
199
  #areadsl div { padding: 0 1em; }
@@ -108,6 +108,17 @@ svg .stand {
108
108
  stroke-opacity:1;
109
109
  stroke-dasharray:none;
110
110
  }
111
+ svg .standthin {
112
+ fill: var(--wfadaptor-background);
113
+ fill-opacity:1;
114
+ stroke: var(--wfadaptor-base);
115
+ stroke-width:1.0;
116
+ stroke-linecap:round;
117
+ stroke-linejoin:round;
118
+ stroke-miterlimit:4;
119
+ stroke-opacity:1;
120
+ stroke-dasharray:none;
121
+ }
111
122
  svg .standfat {
112
123
  fill: var(--wfadaptor-background);
113
124
  fill-opacity:1;
data/cockpit/edit.html CHANGED
@@ -36,11 +36,11 @@
36
36
 
37
37
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
38
38
 
39
- <script type="text/javascript" src="/js_libs/ui.js"></script>
39
+ <script type="text/javascript" src="/js_libs/uidash.js"></script>
40
40
  <script type="text/javascript" src="/js_libs/custommenu.js"></script>
41
41
 
42
42
  <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
43
- <link rel="stylesheet" href="/js_libs/ui.css" type="text/css"/>
43
+ <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
44
44
 
45
45
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
46
46
 
@@ -61,7 +61,7 @@
61
61
  /* shit balls, no elegance is left in this world */
62
62
  </style>
63
63
  </head>
64
- <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui">
64
+ <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui-">
65
65
  <div id='disclaimer' class='hidden'> <!--{{{-->
66
66
  <h1>Disclaimer</h1>
67
67
 
@@ -120,7 +120,7 @@
120
120
  <ui-tabbed id="instance">
121
121
  <ui-tabbar>
122
122
  <ui-tab class="switch" ></ui-tab>
123
- <ui-tab class="" data-tab="new" id="tabnew" >New</ui-tab>
123
+ <ui-tab class="" data-tab="new" id="tabnew" >Config</ui-tab>
124
124
  <ui-tab class="inactive hidden" data-tab="instance" id="tabinstance" >Instance</ui-tab>
125
125
  <ui-tab class="inactive hidden" data-tab="execution" id="tabexecution">Execution</ui-tab>
126
126
  <ui-behind ><a style='display:none' target='_blank' id='current-instance'></a><a style='display:none' target='_blank' id='current-instance-properties'>P</a><a style='display:none' target='_blank' id='current-instance-subscriptions'>S</a><a style='display:none' target='_blank' id='current-instance-callbacks'>C</a></ui-behind>
@@ -132,17 +132,14 @@
132
132
  <tr>
133
133
  <td>Resources:</td>
134
134
  <td><input name="res-url" type="text" value=""/></td>
135
- <td></td>
136
135
  </tr>
137
136
  <tr>
138
137
  <td>Engine:</td>
139
138
  <td><input name="base-url" type="text" value=""/></td>
140
- <td><button name="base">create new instance</button></td>
141
139
  </tr>
142
140
  <tr>
143
141
  <td>Instance:</td>
144
142
  <td><input name="instance-url" type="text" value=""/></td>
145
- <td><button name="instance">monitor instance</button></td>
146
143
  </tr>
147
144
  </table>
148
145
  </ui-area> <!--}}}-->
@@ -213,17 +210,20 @@
213
210
  <ui-tab class="" data-tab="dataelements" id="tabdataelements">Data Elements</ui-tab>
214
211
  <ui-tab class="inactive" data-tab="endpoints" id="tabendpoints" >Endpoints</ui-tab>
215
212
  <ui-tab class="inactive" data-tab="attributes" id="tabattributes" >Attributes</ui-tab>
216
- <ui-behind ><button title='add entry'>New</button></ui-behind>
213
+ <ui-behind ></ui-behind>
217
214
  </ui-tabbar>
218
215
  <ui-content>
219
216
  <ui-area data-belongs-to-tab="dataelements" id="areadataelements"> <!--{{{-->
217
+ <button title='add entry'><span>New</span></button>
220
218
  <div id="dat_dataelements"></div>
221
219
  </ui-area> <!--}}}-->
222
220
  <ui-area data-belongs-to-tab="endpoints" id="areaendpoints" class="inactive"> <!--{{{-->
223
- <table id="dat_endpoints"></table>
221
+ <button title='add entry'><span>New</span></button>
222
+ <div id="dat_endpoints"></div>
224
223
  </ui-area> <!--}}}-->
225
224
  <ui-area data-belongs-to-tab="attributes" id="areaattributes" class="inactive"> <!--{{{-->
226
- <table id="dat_attributes"></table>
225
+ <button title='add entry'><span>New</span></button>
226
+ <div id="dat_attributes"></div>
227
227
  </ui-area> <!--}}}-->
228
228
  </ui-content>
229
229
  </ui-tabbed>
data/cockpit/graph.html CHANGED
@@ -37,11 +37,11 @@
37
37
 
38
38
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
39
39
 
40
- <script type="text/javascript" src="/js_libs/ui.js"></script>
40
+ <script type="text/javascript" src="/js_libs/uidash.js"></script>
41
41
  <script type="text/javascript" src="/js_libs/custommenu.js"></script>
42
42
 
43
43
  <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
44
- <link rel="stylesheet" href="/js_libs/ui.css" type="text/css"/>
44
+ <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
45
45
 
46
46
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
47
47
 
@@ -56,7 +56,7 @@
56
56
  <script type="text/javascript" src="js/parameters.js"></script>
57
57
  <link rel="stylesheet" href="css/ui.css" type="text/css"/>
58
58
  </head>
59
- <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui">
59
+ <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui-">
60
60
  <div class='hidden' id='relaxngworker'></div>
61
61
  <div id="trackfull">
62
62
  <div id='graphcolumn'>
data/cockpit/index.html CHANGED
@@ -36,11 +36,11 @@
36
36
 
37
37
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
38
38
 
39
- <script type="text/javascript" src="/js_libs/ui.js"></script>
39
+ <script type="text/javascript" src="/js_libs/uidash.js"></script>
40
40
  <script type="text/javascript" src="/js_libs/custommenu.js"></script>
41
41
 
42
42
  <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
43
- <link rel="stylesheet" href="/js_libs/ui.css" type="text/css"/>
43
+ <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
44
44
 
45
45
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
46
46
 
@@ -60,7 +60,7 @@
60
60
  /* shit balls, no elegance is left in this world */
61
61
  </style>
62
62
  </head>
63
- <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui">
63
+ <body data-base-port="8298" data-res-port="9303" data-theme-base="themes" is="x-ui-">
64
64
  <div id='disclaimer' class='hidden'> <!--{{{-->
65
65
  <h1>Disclaimer</h1>
66
66
 
@@ -211,17 +211,20 @@
211
211
  <ui-tab class="" data-tab="dataelements" id="tabdataelements">Data Elements</ui-tab>
212
212
  <ui-tab class="inactive" data-tab="endpoints" id="tabendpoints" >Endpoints</ui-tab>
213
213
  <ui-tab class="inactive" data-tab="attributes" id="tabattributes" >Attributes</ui-tab>
214
- <ui-behind ><button title='add entry'>New</button></ui-behind>
214
+ <ui-behind ></ui-behind>
215
215
  </ui-tabbar>
216
216
  <ui-content>
217
217
  <ui-area data-belongs-to-tab="dataelements" id="areadataelements"> <!--{{{-->
218
+ <button title='add entry'><span>New</span></button>
218
219
  <div id="dat_dataelements"></div>
219
220
  </ui-area> <!--}}}-->
220
221
  <ui-area data-belongs-to-tab="endpoints" id="areaendpoints" class="inactive"> <!--{{{-->
221
- <table id="dat_endpoints"></table>
222
+ <button title='add entry'><span>New</span></button>
223
+ <div id="dat_endpoints"></div>
222
224
  </ui-area> <!--}}}-->
223
225
  <ui-area data-belongs-to-tab="attributes" id="areaattributes" class="inactive"> <!--{{{-->
224
- <table id="dat_attributes"></table>
226
+ <button title='add entry'><span>New</span></button>
227
+ <div id="dat_attributes"></div>
225
228
  </ui-area> <!--}}}-->
226
229
  </ui-content>
227
230
  </ui-tabbed>
@@ -49,7 +49,6 @@ function do_main_work() { //{{{
49
49
  var origtype = orignode.attr('element-type') + '_' + orignode.attr('element-endpoint');
50
50
 
51
51
  var url = $('body').attr('current-instance');
52
- $('#main ui-tabbar ui-behind button').removeClass('highlight');
53
52
  save['details'].set_checkpoint();
54
53
 
55
54
  var nnew = $(save['details'].save().documentElement);
@@ -53,7 +53,7 @@ var sub_more = 'topic' + '=' + 'activity' + '&' +// {{{
53
53
  'events' + '=' + 'instantiation' + '&' +
54
54
  'topic' + '=' + 'transformation' + '&' +
55
55
  'events' + '=' + 'change' + '&' +
56
- 'topic' + '=' + 'handlerwrapper' + '&' +
56
+ 'topic' + '=' + 'connectionwrapper' + '&' +
57
57
  'events' + '=' + 'error,change' + '&' +
58
58
  'topic' + '=' + 'handlers' + '&' +
59
59
  'events' + '=' + 'change';// }}}
@@ -75,14 +75,14 @@ var sub_less = 'topic' + '=' + 'activity' + '&' +// {{{
75
75
  'events' + '=' + 'instantiation' + '&' +
76
76
  'topic' + '=' + 'transformation' + '&' +
77
77
  'events' + '=' + 'change' + '&' +
78
- 'topic' + '=' + 'handlerwrapper' + '&' +
78
+ 'topic' + '=' + 'connectionwrapper' + '&' +
79
79
  'events' + '=' + 'error,change' + '&' +
80
80
  'topic' + '=' + 'handlers' + '&' +
81
81
  'events' + '=' + 'change';// }}}
82
82
 
83
83
  function cockpit() { //{{{
84
84
  $("button[name=base]").click(function(){ create_instance($("input[name=base-url]").val(),null,false,false); });
85
- $("button[name=instance]").click(function(){ ui_activate_tab("#tabinstance"); monitor_instance($("input[name=instance-url]").val(),$("input[name=res-url]").val(),false,false); });
85
+ $("button[name=instance]").click(function(){ uidash_activate_tab("#tabinstance"); monitor_instance($("input[name=instance-url]").val(),$("input[name=res-url]").val(),false,false); });
86
86
  $("button[name=loadtestset]").click(function(e){new CustomMenu(e).menu($('#templates'),function(){ load_testset(false) } ); });
87
87
  $("button[name=loadtestsetfile]").click(load_testsetfile);
88
88
  $("button[name=loadmodelfile]").click(load_modelfile);
@@ -105,10 +105,15 @@ function cockpit() { //{{{
105
105
  $('#templates').append($("<div class='menuitem'></div>").text(this.name.replace(/\.xml/,'')));
106
106
  }
107
107
  });
108
+ },
109
+ error: function() {
110
+ $("button[name=loadtestset]").attr('disabled','disabled');
111
+ },
112
+ complete: function() {
108
113
  var q = $.parseQuerySimple();
109
114
  if (q.min || q.min == "") {
110
- ui_toggle_vis_tab($('#instance'));
111
- ui_toggle_vis_tab($('#parameters'));
115
+ uidash_toggle_vis_tab($('#instance'));
116
+ uidash_toggle_vis_tab($('#parameters'));
112
117
  }
113
118
  if (q.monitor && q.load) {
114
119
  if (q.load.match(/https?:\/\//)) {
@@ -118,7 +123,7 @@ function cockpit() { //{{{
118
123
  if ($(v).text() == q.load) { $(v).attr('data-selected','selected'); }
119
124
  });
120
125
  }
121
- ui_activate_tab("#tabexecution");
126
+ uidash_activate_tab("#tabexecution");
122
127
  monitor_instance(q.monitor,$("body").attr('current-resources'),true,false);
123
128
  } else if (q.load) {
124
129
  if (q.load.match(/https?:\/\//)) {
@@ -128,20 +133,20 @@ function cockpit() { //{{{
128
133
  if ($(v).text() == q.load) { $(v).attr('data-selected','selected'); }
129
134
  });
130
135
  }
131
- ui_activate_tab("#tabexecution");
136
+ uidash_activate_tab("#tabexecution");
132
137
  create_instance($("body").attr('current-base'),q.load,true,false);
133
138
  } else if (q.instantiate) {
134
139
  if (q.instantiate.match(/https?:\/\//)) {
135
- ui_activate_tab("#tabexecution");
140
+ uidash_activate_tab("#tabexecution");
136
141
  create_instance_from($("body").attr('current-base'),q.instantiate,false);
137
142
  } else {
138
143
  alert('Nope. Url!');
139
144
  }
140
145
  } else if (q.new || q.new == "") {
141
- ui_activate_tab("#tabinstance");
146
+ uidash_activate_tab("#tabinstance");
142
147
  create_instance($("body").attr('current-base'),"Plain Instance",false,false);
143
148
  } else if (q.monitor) {
144
- ui_activate_tab("#tabexecution");
149
+ uidash_activate_tab("#tabinstance");
145
150
  monitor_instance(q.monitor,$("body").attr('current-resources'),false,false);
146
151
  } else if (q.exec) {
147
152
  if (q.exec.match(/https?:\/\//)) {
@@ -151,7 +156,7 @@ function cockpit() { //{{{
151
156
  if ($(v).text() == q.exec) { $(v).attr('data-selected','selected'); }
152
157
  });
153
158
  }
154
- ui_activate_tab("#tabexecution");
159
+ uidash_activate_tab("#tabexecution");
155
160
  create_instance($("body").attr('current-base'),q.exec,true,true);
156
161
  }
157
162
  }
@@ -324,7 +329,7 @@ function monitor_instance(cin,rep,load,exec) {// {{{
324
329
  $("input[name=instance-url]").val($("body").attr('current-instance'));
325
330
  $("input[name=res-url]").val($("body").attr('current-resources'));
326
331
 
327
- $('.tabbehind button').hide();
332
+ $('#parameters ui-content ui-area > button').attr('disabled','disabled');
328
333
  $('#dat_details').empty();
329
334
 
330
335
  url = $("body").attr('current-instance');
@@ -380,7 +385,7 @@ function monitor_instance(cin,rep,load,exec) {// {{{
380
385
  },
381
386
  error: function(a,b,c) {
382
387
  alert("This ain't no CPEE instance");
383
- ui_activate_tab("#tabnew");
388
+ uidash_activate_tab("#tabnew");
384
389
  }
385
390
  });
386
391
  }// }}}
@@ -726,10 +731,11 @@ function monitor_instance_state_change(notification) { //{{{
726
731
  }
727
732
 
728
733
  if (notification != "ready" && notification != "stopped" && notification != "running") {
729
- $('.tabbehind button').hide();
734
+ console.log('rrr');
735
+ $('#parameters ui-content ui-area > button').attr('disabled','disabled');
730
736
  $('#state_any').hide();
731
737
  } else {
732
- $('#parameters .tabbehind button').show();
738
+ $('#parameters ui-content ui-area > button').removeAttr('disabled');
733
739
  $('#state_any').show();
734
740
  }
735
741
 
@@ -898,7 +904,7 @@ async function set_testset(testset,exec) {// {{{
898
904
  var promises = [];
899
905
 
900
906
  var tset = $X('<properties xmlns="http://cpee.org/ns/properties/2.0"/>');
901
- tset.append($("testset > handlerwrapper",testset));
907
+ tset.append($("testset > executionwrapper",testset));
902
908
  tset.append($("testset > positions",testset));
903
909
  tset.append($("testset > dataelements",testset));
904
910
  tset.append($("testset > endpoints",testset));
@@ -1026,7 +1032,6 @@ function load_testset(exec) {// {{{
1026
1032
  url: url,
1027
1033
  success: function(res){
1028
1034
  save['dsl'] = null; // reload dsl and position under all circumstances
1029
- $('#main .tabbehind button').hide();
1030
1035
  $('#dat_details').empty();
1031
1036
 
1032
1037
  document.title = "Untitled";
@@ -1210,8 +1215,10 @@ function format_visual_vote_clear() {//{{{
1210
1215
 
1211
1216
  function format_instance_pos() { //{{{
1212
1217
  $(save['instance_pos']).each(function(){
1213
- var what = this.nodeName;
1214
- format_visual_add(what,save['state'] == 'running' ? 'active' : 'passive');
1218
+ console.log(this);
1219
+ var taskname = this.nodeName;
1220
+ var taskstate = this.textContent;
1221
+ format_visual_add(taskname,save['state'] == 'running' ? (taskstate == 'at' ? 'active' : 'passive') : 'passive');
1215
1222
  });
1216
1223
  } //}}}
1217
1224
 
data/cockpit/js/model.js CHANGED
@@ -1,16 +1,11 @@
1
1
  $(document).ready(function() {
2
- $('#tabmodel').click(function(event){
3
- $('#model ui-behind button:nth-child(1)').addClass('hidden');
4
- });
5
- $('#tabdataelements').click(function(event){
6
- $('#model ui-behind button:nth-child(1)').removeClass('hidden');
7
- });
8
-
9
- $('#model ui-behind button:nth-child(1)').click(function(event){
10
- var but = $(document).find('#model ui-content ui-area:not(.inactive) button');
2
+ $('#model ui-content ui-area > button').click(function(event){
3
+ var but = $(document).find('#model ui-content ui-area:not(.inactive) > div button');
11
4
  but.click();
12
- var are = $(document).find('#model ui-content ui-area:not(.inactive)');
13
- var tab = $(document).find('#model ui-content ui-area:not(.inactive) .relaxngui_table');
5
+ var inp = $(document).find('#model ui-content ui-area:not(.inactive) > div input');
6
+ $(inp[inp.length-2]).focus();
7
+ var are = $(document).find('#model ui-content ui-area:not(.inactive) > div');
8
+ var tab = $(document).find('#model ui-content ui-area:not(.inactive) > div > div');
14
9
  are.animate({ scrollTop: tab.height() }, "slow");
15
10
  });
16
11
  });
@@ -30,11 +30,13 @@ $(document).ready(function() {
30
30
  }); //}}}
31
31
 
32
32
  // new entry //{{{
33
- $('#parameters ui-behind button:nth-child(1)').click(function(event){
34
- var but = $(document).find('#parameters ui-content ui-area:not(.inactive) button');
33
+ $('#parameters ui-content ui-area > button').click(function(event){
34
+ var but = $(document).find('#parameters ui-content ui-area:not(.inactive) > div button');
35
35
  but.click();
36
- var are = $(document).find('#parameters ui-content ui-area:not(.inactive)');
37
- var tab = $(document).find('#parameters ui-content ui-area:not(.inactive) .relaxngui_table');
36
+ var inp = $(document).find('#parameters ui-content ui-area:not(.inactive) > div input');
37
+ $(inp[inp.length-2]).focus();
38
+ var are = $(document).find('#parameters ui-content ui-area:not(.inactive) > div');
39
+ var tab = $(document).find('#parameters ui-content ui-area:not(.inactive) > div > div');
38
40
  are.animate({ scrollTop: tab.height() }, "slow");
39
41
  }); //}}}
40
42
 
@@ -559,6 +559,8 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
559
559
  if(root.tagName == 'description') { // First parsing {{{
560
560
  pos.row++;
561
561
  $(root).attr('svg-id','description');
562
+ $(root).attr('svg-type','description');
563
+ $(root).attr('svg-subtype','description');
562
564
  group.attr('element-id','group-description');
563
565
  if (illustrator.elements[sname].label) {
564
566
  labels.push({row: pos.row, element_id: 'start', tname: 'start', label: illustrator.elements[sname].label(root)});