cpee 2.1.135 → 2.1.139

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 (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/cockpit/compliance-view.html +11 -19
  4. data/cockpit/compliance.html +11 -19
  5. data/cockpit/css/llm.css +3 -3
  6. data/cockpit/css/llmmodel.css +140 -0
  7. data/cockpit/css/model.css +0 -1
  8. data/cockpit/css/ui.css +13 -7
  9. data/cockpit/css/wfadaptor.css +15 -10
  10. data/cockpit/edit.html +11 -19
  11. data/cockpit/graph.html +8 -13
  12. data/cockpit/index.html +11 -19
  13. data/cockpit/js/details.js +27 -10
  14. data/cockpit/js/instance.js +219 -206
  15. data/cockpit/js/llm-ui-bubble.js +36 -0
  16. data/cockpit/js/llm-ui-status.js +34 -0
  17. data/cockpit/js/llm-ui.js +87 -0
  18. data/cockpit/js/llm.js +469 -121
  19. data/cockpit/js/parameters.js +45 -14
  20. data/cockpit/js/wfadaptor.js +402 -77
  21. data/cockpit/llm.html +16 -21
  22. data/cockpit/llmmodel.html +17 -23
  23. data/cockpit/model.html +8 -15
  24. data/cockpit/only_llm.html +14 -19
  25. data/cockpit/themes/THEMES.MD +4 -0
  26. data/cockpit/themes/base.js +1 -1
  27. data/cockpit/themes/packed/theme.js +3 -0
  28. data/cockpit/themes/presetlr/rngs/alternative.rng +28 -0
  29. data/cockpit/themes/presetlr/rngs/call.rng +249 -0
  30. data/cockpit/themes/presetlr/rngs/callmanipulate.rng +281 -0
  31. data/cockpit/themes/presetlr/rngs/choose.rng +27 -0
  32. data/cockpit/themes/presetlr/rngs/closed_loop.rng +62 -0
  33. data/cockpit/themes/presetlr/rngs/closed_loop_cancel.rng +5 -0
  34. data/cockpit/themes/presetlr/rngs/closed_loop_control.rng +31 -0
  35. data/cockpit/themes/presetlr/rngs/closed_loop_measuring.rng +12 -0
  36. data/cockpit/themes/presetlr/rngs/critical.rng +8 -0
  37. data/cockpit/themes/presetlr/rngs/escape.rng +5 -0
  38. data/cockpit/themes/presetlr/rngs/group.rng +3 -0
  39. data/cockpit/themes/presetlr/rngs/loop.rng +40 -0
  40. data/cockpit/themes/presetlr/rngs/manipulate.rng +76 -0
  41. data/cockpit/themes/presetlr/rngs/otherwise.rng +25 -0
  42. data/cockpit/themes/presetlr/rngs/parallel.rng +24 -0
  43. data/cockpit/themes/presetlr/rngs/parallel_branch.rng +5 -0
  44. data/cockpit/themes/presetlr/rngs/scripts.rng +23 -0
  45. data/cockpit/themes/presetlr/rngs/start.rng +143 -0
  46. data/cockpit/themes/presetlr/rngs/stop.rng +5 -0
  47. data/cockpit/themes/presetlr/rngs/terminate.rng +8 -0
  48. data/cockpit/themes/presetlr/rngs/wait_for_signal.rng +8 -0
  49. data/cockpit/themes/presetlr/symbols/alternative.svg +19 -0
  50. data/cockpit/themes/presetlr/symbols/arrow.svg +1 -0
  51. data/cockpit/themes/presetlr/symbols/call.svg +1 -0
  52. data/cockpit/themes/presetlr/symbols/call_sensor.svg +1 -0
  53. data/cockpit/themes/presetlr/symbols/callmanipulate.svg +1 -0
  54. data/cockpit/themes/presetlr/symbols/callmanipulate_sensor.svg +1 -0
  55. data/cockpit/themes/presetlr/symbols/callmanipulate_sensor_signal.svg +1 -0
  56. data/cockpit/themes/presetlr/symbols/callmanipulate_signal.svg +1 -0
  57. data/cockpit/themes/presetlr/symbols/choose.svg +15 -0
  58. data/cockpit/themes/presetlr/symbols/choose_exclusive.svg +15 -0
  59. data/cockpit/themes/presetlr/symbols/choose_exclusive_finish.svg +1 -0
  60. data/cockpit/themes/presetlr/symbols/choose_inclusive.svg +13 -0
  61. data/cockpit/themes/presetlr/symbols/choose_inclusive_finish.svg +1 -0
  62. data/cockpit/themes/presetlr/symbols/closed_loop.svg +1 -0
  63. data/cockpit/themes/presetlr/symbols/closed_loop_cancel.svg +1 -0
  64. data/cockpit/themes/presetlr/symbols/closed_loop_control.svg +1 -0
  65. data/cockpit/themes/presetlr/symbols/closed_loop_measuring.svg +1 -0
  66. data/cockpit/themes/presetlr/symbols/complex.svg +1 -0
  67. data/cockpit/themes/presetlr/symbols/critical.svg +1 -0
  68. data/cockpit/themes/presetlr/symbols/delete.svg +1 -0
  69. data/cockpit/themes/presetlr/symbols/end.svg +1 -0
  70. data/cockpit/themes/presetlr/symbols/escape.svg +1 -0
  71. data/cockpit/themes/presetlr/symbols/event_end.svg +1 -0
  72. data/cockpit/themes/presetlr/symbols/event_start.svg +1 -0
  73. data/cockpit/themes/presetlr/symbols/loop.svg +15 -0
  74. data/cockpit/themes/presetlr/symbols/loop_end.svg +15 -0
  75. data/cockpit/themes/presetlr/symbols/loop_end_pre.svg +15 -0
  76. data/cockpit/themes/presetlr/symbols/manipulate.svg +1 -0
  77. data/cockpit/themes/presetlr/symbols/mark.svg +1 -0
  78. data/cockpit/themes/presetlr/symbols/otherwise.svg +7 -0
  79. data/cockpit/themes/presetlr/symbols/parallel.svg +1 -0
  80. data/cockpit/themes/presetlr/symbols/parallel_branch.svg +7 -0
  81. data/cockpit/themes/presetlr/symbols/parallel_branch_event.svg +14 -0
  82. data/cockpit/themes/presetlr/symbols/parallel_branch_event_rev.svg +11 -0
  83. data/cockpit/themes/presetlr/symbols/parallel_branch_normal.svg +7 -0
  84. data/cockpit/themes/presetlr/symbols/parallel_eventbased_exclusive.svg +1 -0
  85. data/cockpit/themes/presetlr/symbols/parallel_eventbased_parallel.svg +1 -0
  86. data/cockpit/themes/presetlr/symbols/scripts.svg +1 -0
  87. data/cockpit/themes/presetlr/symbols/start.svg +1 -0
  88. data/cockpit/themes/presetlr/symbols/start_event.svg +1 -0
  89. data/cockpit/themes/presetlr/symbols/stop.svg +1 -0
  90. data/cockpit/themes/presetlr/symbols/terminate.svg +1 -0
  91. data/cockpit/themes/presetlr/symbols/wait_for_signal.svg +1 -0
  92. data/cockpit/themes/presetlr/theme.js +54 -0
  93. data/cockpit/themes/wellformed/rngs/alternative.rng +28 -0
  94. data/cockpit/themes/wellformed/rngs/call.rng +249 -0
  95. data/cockpit/themes/wellformed/rngs/callmanipulate.rng +281 -0
  96. data/cockpit/themes/wellformed/rngs/choose.rng +27 -0
  97. data/cockpit/themes/wellformed/rngs/closed_loop.rng +62 -0
  98. data/cockpit/themes/wellformed/rngs/closed_loop_cancel.rng +5 -0
  99. data/cockpit/themes/wellformed/rngs/closed_loop_control.rng +31 -0
  100. data/cockpit/themes/wellformed/rngs/closed_loop_measuring.rng +12 -0
  101. data/cockpit/themes/wellformed/rngs/critical.rng +8 -0
  102. data/cockpit/themes/wellformed/rngs/escape.rng +5 -0
  103. data/cockpit/themes/wellformed/rngs/group.rng +3 -0
  104. data/cockpit/themes/wellformed/rngs/loop.rng +40 -0
  105. data/cockpit/themes/wellformed/rngs/manipulate.rng +76 -0
  106. data/cockpit/themes/wellformed/rngs/otherwise.rng +25 -0
  107. data/cockpit/themes/wellformed/rngs/parallel.rng +24 -0
  108. data/cockpit/themes/wellformed/rngs/parallel_branch.rng +5 -0
  109. data/cockpit/themes/wellformed/rngs/scripts.rng +23 -0
  110. data/cockpit/themes/wellformed/rngs/start.rng +143 -0
  111. data/cockpit/themes/wellformed/rngs/stop.rng +5 -0
  112. data/cockpit/themes/wellformed/rngs/terminate.rng +8 -0
  113. data/cockpit/themes/wellformed/rngs/wait_for_signal.rng +8 -0
  114. data/cockpit/themes/wellformed/symbols/alternative.svg +1 -0
  115. data/cockpit/themes/wellformed/symbols/arrow.svg +1 -0
  116. data/cockpit/themes/wellformed/symbols/call.svg +1 -0
  117. data/cockpit/themes/wellformed/symbols/call_sensor.svg +1 -0
  118. data/cockpit/themes/wellformed/symbols/callmanipulate.svg +1 -0
  119. data/cockpit/themes/wellformed/symbols/callmanipulate_sensor.svg +1 -0
  120. data/cockpit/themes/wellformed/symbols/callmanipulate_sensor_signal.svg +1 -0
  121. data/cockpit/themes/wellformed/symbols/callmanipulate_signal.svg +1 -0
  122. data/cockpit/themes/wellformed/symbols/choose.svg +1 -0
  123. data/cockpit/themes/wellformed/symbols/choose_exclusive.svg +1 -0
  124. data/cockpit/themes/wellformed/symbols/choose_exclusive_finish.svg +1 -0
  125. data/cockpit/themes/wellformed/symbols/choose_inclusive.svg +1 -0
  126. data/cockpit/themes/wellformed/symbols/choose_inclusive_finish.svg +1 -0
  127. data/cockpit/themes/wellformed/symbols/closed_loop.svg +1 -0
  128. data/cockpit/themes/wellformed/symbols/closed_loop_cancel.svg +1 -0
  129. data/cockpit/themes/wellformed/symbols/closed_loop_control.svg +1 -0
  130. data/cockpit/themes/wellformed/symbols/closed_loop_measuring.svg +1 -0
  131. data/cockpit/themes/wellformed/symbols/complex.svg +1 -0
  132. data/cockpit/themes/wellformed/symbols/critical.svg +1 -0
  133. data/cockpit/themes/wellformed/symbols/delete.svg +1 -0
  134. data/cockpit/themes/wellformed/symbols/end.svg +1 -0
  135. data/cockpit/themes/wellformed/symbols/escape.svg +1 -0
  136. data/cockpit/themes/wellformed/symbols/event_end.svg +1 -0
  137. data/cockpit/themes/wellformed/symbols/event_start.svg +6 -0
  138. data/cockpit/themes/wellformed/symbols/loop.svg +1 -0
  139. data/cockpit/themes/wellformed/symbols/loop_end.svg +1 -0
  140. data/cockpit/themes/wellformed/symbols/manipulate.svg +1 -0
  141. data/cockpit/themes/wellformed/symbols/mark.svg +1 -0
  142. data/cockpit/themes/wellformed/symbols/otherwise.svg +1 -0
  143. data/cockpit/themes/wellformed/symbols/parallel.svg +1 -0
  144. data/cockpit/themes/wellformed/symbols/parallel_branch.svg +1 -0
  145. data/cockpit/themes/wellformed/symbols/parallel_branch_event.svg +1 -0
  146. data/cockpit/themes/wellformed/symbols/parallel_branch_event_rev.svg +11 -0
  147. data/cockpit/themes/wellformed/symbols/parallel_branch_normal.svg +1 -0
  148. data/cockpit/themes/wellformed/symbols/parallel_eventbased_exclusive.svg +1 -0
  149. data/cockpit/themes/wellformed/symbols/parallel_eventbased_parallel.svg +1 -0
  150. data/cockpit/themes/wellformed/symbols/scripts.svg +1 -0
  151. data/cockpit/themes/wellformed/symbols/start.svg +1 -0
  152. data/cockpit/themes/wellformed/symbols/start_event.svg +1 -0
  153. data/cockpit/themes/wellformed/symbols/stop.svg +1 -0
  154. data/cockpit/themes/wellformed/symbols/terminate.svg +1 -0
  155. data/cockpit/themes/wellformed/symbols/wait_for_signal.svg +1 -0
  156. data/cockpit/themes/wellformed/theme.js +32 -0
  157. data/cockpit/track.html +8 -13
  158. data/cpee.gemspec +3 -3
  159. data/lib/callbacks/callbacks.rng +4 -4
  160. data/lib/callbacks.xml +4 -4
  161. data/lib/cpee/constants.rb +4 -4
  162. data/lib/cpee/fail.rb +4 -4
  163. data/lib/cpee/implementation.rb +10 -4
  164. data/lib/cpee/implementation_callbacks.rb +6 -6
  165. data/lib/cpee/implementation_notifications.rb +8 -5
  166. data/lib/cpee/implementation_properties.rb +132 -12
  167. data/lib/cpee/json_pointer.rb +110 -0
  168. data/lib/cpee/message.rb +26 -6
  169. data/lib/cpee/persistence.rb +10 -4
  170. data/lib/cpee/redis.rb +12 -4
  171. data/lib/cpee/statemachine.rb +4 -4
  172. data/lib/cpee/value_helper.rb +4 -4
  173. data/lib/cpee.xml +4 -4
  174. data/lib/engine/executionhandler-list.rng +4 -4
  175. data/lib/engine/instance-info.rng +4 -4
  176. data/lib/engine/instances.rng +4 -4
  177. data/lib/engine.xml +4 -4
  178. data/lib/properties/t_dslx.rng +356 -0
  179. data/lib/properties/transformation.rng +14 -0
  180. data/lib/properties.xml +5 -4
  181. data/server/executionhandlers/eval/backend/opts.yaml +1 -1
  182. data/server/executionhandlers/eval/connection.rb +16 -7
  183. data/server/executionhandlers/eval/execution.rb +4 -4
  184. data/server/executionhandlers/ruby/backend/opts.yaml +1 -1
  185. data/server/executionhandlers/ruby/connection.rb +17 -9
  186. data/server/executionhandlers/ruby/controller.rb +21 -6
  187. data/server/executionhandlers/ruby/dsl_to_dslx.xsl +6 -2
  188. data/server/executionhandlers/ruby/execution.rb +4 -4
  189. data/server/resources/properties.empty +5 -4
  190. data/server/resources/properties.init +5 -4
  191. data/server/resources/topics.xml +4 -4
  192. data/server/routing/end.pid +1 -1
  193. data/server/routing/end.rb +4 -4
  194. data/server/routing/forward-events-00.pid +1 -1
  195. data/server/routing/forward-events.rb +34 -23
  196. data/server/routing/forward-votes.pid +1 -1
  197. data/server/routing/forward-votes.rb +60 -47
  198. data/server/routing/persist.pid +1 -1
  199. data/server/routing/persist.rb +53 -30
  200. data/tools/server/cpee +1 -1
  201. data/tools/server/resources/properties.init +4 -4
  202. metadata +142 -5
  203. data/cockpit/CPEE.xml +0 -8
  204. data/cockpit/Signavio.xml +0 -8
  205. data/cockpit/transformations.xml +0 -4
  206. /data/{COPYING → LICENSE} +0 -0
data/cockpit/llm.html CHANGED
@@ -2,15 +2,15 @@
2
2
  This file is part of CPEE.
3
3
 
4
4
  CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
5
+ of the GNU Lesser General Public License as published by the Free Software Foundation,
6
6
  either version 3 of the License, or (at your option) any later version.
7
7
 
8
8
  CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
9
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
11
 
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
12
+ You should have received a copy of the GNU Lesser General Public License along with
13
+ CPEE (file LICENSE in the main directory). If not, see
14
14
  <http://www.gnu.org/licenses/>.
15
15
  -->
16
16
 
@@ -24,26 +24,19 @@
24
24
 
25
25
  <!-- libs, do not modify. When local than load local libs. -->
26
26
  <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
27
- <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
28
- <script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
29
- <script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
30
- <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
31
- <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/uidash_util.js"></script>
32
28
  <script type="text/javascript" src="/js_libs/printf.js"></script>
33
29
  <script type="text/javascript" src="/js_libs/strftime.min.js"></script>
34
30
  <script type="text/javascript" src="/js_libs/parsequery.js"></script>
35
31
  <script type="text/javascript" src="/js_libs/underscore.min.js"></script>
36
- <script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
37
32
  <script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
38
33
 
39
34
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
40
35
 
41
36
  <script type="text/javascript" src="/js_libs/uidash.js"></script>
42
- <script type="text/javascript" src="/js_libs/custommenu.js"></script>
37
+ <script type="text/javascript" src="/js_libs/uidash_custommenu.js"></script>
43
38
 
44
- <script type="text/javascript" src="/js_libs/build-bpmn.js"></script>
45
-
46
- <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
39
+ <link rel="stylesheet" href="/js_libs/uidash_custommenu.css" type="text/css"/>
47
40
  <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
48
41
 
49
42
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
@@ -61,7 +54,10 @@
61
54
  <script type="text/javascript" src="js/modifiers.js"></script>
62
55
  <script type="text/javascript" src="themes/base.js"></script>
63
56
 
57
+ <script type="text/javascript" src="js/llm-ui.js"></script>
58
+ <script type="text/javascript" src="js/llm-ui-status.js"></script>
64
59
  <script type="text/javascript" src="js/llm.js"></script>
60
+
65
61
  <link rel="stylesheet" href="css/llm.css" type="text/css"/>
66
62
 
67
63
  <link rel="stylesheet" href="css/ui.css" type="text/css"/>
@@ -70,7 +66,7 @@
70
66
  <link rel="stylesheet" href="/global_ui/uicpee.css" type="text/css"/>
71
67
  <style></style>
72
68
  </head>
73
- <body data-base-port="8298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
69
+ <body data-base-port="9298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
74
70
  <div id='disclaimer' class='hidden'> <!--{{{-->
75
71
  <h1>Disclaimer</h1>
76
72
 
@@ -123,7 +119,6 @@
123
119
  <div class='hidden' id='relaxngworker'></div>
124
120
 
125
121
  <div class='menu' id='templates'></div>
126
- <div class='menu' id='modeltypes'></div>
127
122
 
128
123
  <template id="label">
129
124
  <svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0;" class="displaylabel">
@@ -172,7 +167,7 @@
172
167
  <form id='fuckchrome'>
173
168
  <input type='file' name='testsetfile' id='testsetfile'/>
174
169
  </form>
175
- <button title='a template includes various settings, subscriptions or a (partial) model' name="loadtestset">load template</button><button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load testset</button>
170
+ <button title='a template includes various settings, subscriptions or a (partial) model' name="loadtestset">load<br>template</button><button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load<br>testset</button>
176
171
  </div>
177
172
  <div>
178
173
  <input type='file' name='modelfile' id='modelfile'/>
@@ -186,8 +181,8 @@
186
181
  <button title='the SVG contains the graphical repesentation of the CPEE tree as you see it on the screen' name="savesvgfile">save svg<br>graph</button>
187
182
  </div>
188
183
  <div>
189
- <a id="savebpmnfile" href="" download=""></a>
190
- <button title='the BPMN includes a graphical representation that can be loaded in Signavio and Camundal' name="savebpmnfile">save BPMN</button>
184
+ <a id="savemodelfile" href="" download=""></a>
185
+ <button title='the model in the format of the current model type (e.g. CPEE, BPMN, Mermaid)' name="savemodelfile">save model</button>
191
186
  </div>
192
187
  </div><div class='section' id='modifiers'>
193
188
  <template id="item">
@@ -294,8 +289,8 @@
294
289
  <button id='prompt_prop_button' title="Properties" class="llm_button small"><i class="uidash-icon uidash-icon-properties"></i></button>
295
290
  <select name="llms" id="llms" class='active hidden'>
296
291
  <option value="gemini-3.1-flash-lite" selected="selected">gemini 3.1 Flash Lite</option>
297
- <option value="gemini-3.1-flash">gemini 3.1 Flash</option>
298
- <option value="gemini-3.1-pro">gemini 3.1 Pro</option>
292
+ <option value="gemini-3.6-flash">gemini 3.6 Flash</option>
293
+ <option value="gemini-3.1-pro-preview">gemini 3.1 Pro</option>
299
294
  <option value="gpt-4o">gpt 4o</option>
300
295
  <option value="gpt-4o-mini">gpt 4o mini</option>
301
296
  <option value="gpt-5.4-nano-2026-03-17">gpt 5.4 nano</option>
@@ -2,15 +2,15 @@
2
2
  This file is part of CPEE.
3
3
 
4
4
  CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
5
+ of the GNU Lesser General Public License as published by the Free Software Foundation,
6
6
  either version 3 of the License, or (at your option) any later version.
7
7
 
8
8
  CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
9
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
11
 
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
12
+ You should have received a copy of the GNU Lesser General Public License along with
13
+ CPEE (file LICENSE in the main directory). If not, see
14
14
  <http://www.gnu.org/licenses/>.
15
15
  -->
16
16
 
@@ -24,26 +24,19 @@
24
24
 
25
25
  <!-- libs, do not modify. When local than load local libs. -->
26
26
  <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
27
- <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
28
- <script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
29
- <script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
30
- <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
31
- <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/uidash_util.js"></script>
32
28
  <script type="text/javascript" src="/js_libs/printf.js"></script>
33
29
  <script type="text/javascript" src="/js_libs/strftime.min.js"></script>
34
30
  <script type="text/javascript" src="/js_libs/parsequery.js"></script>
35
31
  <script type="text/javascript" src="/js_libs/underscore.min.js"></script>
36
- <script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
37
32
  <script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
38
33
 
39
34
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
40
35
 
41
36
  <script type="text/javascript" src="/js_libs/uidash.js"></script>
42
- <script type="text/javascript" src="/js_libs/custommenu.js"></script>
37
+ <script type="text/javascript" src="/js_libs/uidash_custommenu.js"></script>
43
38
 
44
- <script type="text/javascript" src="/js_libs/build-bpmn.js"></script>
45
-
46
- <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
39
+ <link rel="stylesheet" href="/js_libs/uidash_custommenu.css" type="text/css"/>
47
40
  <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
48
41
 
49
42
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
@@ -67,17 +60,18 @@
67
60
  <link rel="stylesheet" href="css/extended_columns-svg.css" type="text/css" data-include-export="true"/>
68
61
  <link rel="stylesheet" href="/global_ui/uicpee.css" type="text/css"/>
69
62
 
63
+ <script type="text/javascript" src="js/llm-ui.js"></script>
64
+ <script type="text/javascript" src="js/llm-ui-bubble.js"></script>
70
65
  <script type="text/javascript" src="js/llm.js"></script>
71
- <link rel="stylesheet" href="css/llm.css" type="text/css"/>
66
+
72
67
  <link rel="stylesheet" href="css/llmmodel.css" type="text/css"/>
73
68
 
74
69
  <style></style>
75
70
  </head>
76
- <body data-base-port="8298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
71
+ <body data-base-port="9298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
77
72
  <div class='hidden' id='relaxngworker'></div>
78
73
 
79
74
  <div class='menu' id='templates'></div>
80
- <div class='menu' id='modeltypes'></div>
81
75
 
82
76
  <template id="label">
83
77
  <svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0;" class="displaylabel">
@@ -124,7 +118,7 @@
124
118
  <input type='file' name='testsetfile' id='testsetfile'/>
125
119
  </form>
126
120
  <button title='save a testset includes various settings, subscriptions and a model' name="save" disabled=""><div>save</div><div class="hidden" id='lastsavedline'>(last: <span id="lastsaved"></span>)</div></button>
127
- <button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load testset</button>
121
+ <button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load<br>testset</button>
128
122
  </div>
129
123
  <div>
130
124
  <input type='file' name='modelfile' id='modelfile'/>
@@ -138,8 +132,8 @@
138
132
  <button title='the SVG contains the graphical repesentation of the CPEE tree as you see it on the screen' name="savesvgfile">save svg<br>graph</button>
139
133
  </div>
140
134
  <div>
141
- <a id="savebpmnfile" href="" download=""></a>
142
- <button title='the BPMN includes a graphical representation that can be loaded in Signavio and Camundal' name="savebpmnfile">save BPMN</button>
135
+ <a id="savemodelfile" href="" download=""></a>
136
+ <button title='the model in the format of the current model type (e.g. CPEE, BPMN, Mermaid)' name="savemodelfile">save model</button>
143
137
  </div>
144
138
  </div><div class='section' id='modifiers'>
145
139
  <template id="item">
@@ -181,7 +175,7 @@
181
175
  <ui-part id='details'>
182
176
  <div id="dat_details" class='x-ui-layout'></div>
183
177
  </ui-part>
184
- <ui-resizehandle class='hidden'>drag to resize</ui-resizehandle>
178
+ <ui-resizehandle class='overlay hidden'><span>drag to resize</span></ui-resizehandle>
185
179
  <ui-part id='input'>
186
180
  <div id='status'></div>
187
181
  <div id='prompt_container'>
@@ -201,8 +195,8 @@
201
195
  <button id='prompt_prop_button' title="Properties" class="llm_button small"><i class="uidash-icon uidash-icon-properties"></i></button>
202
196
  <select name="llms" id="llms" class='active hidden'>
203
197
  <option value="gemini-3.1-flash-lite" selected="selected">gemini 3.1 Flash Lite</option>
204
- <option value="gemini-3.1-flash">gemini 3.1 Flash</option>
205
- <option value="gemini-3.1-pro">gemini 3.1 Pro</option>
198
+ <option value="gemini-3.5-flash">gemini 3.5 Flash</option>
199
+ <option value="gemini-3.1-pro-preview">gemini 3.1 Pro</option>
206
200
  </select>
207
201
  </div>
208
202
  </div>
data/cockpit/model.html CHANGED
@@ -2,15 +2,15 @@
2
2
  This file is part of CPEE.
3
3
 
4
4
  CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
5
+ of the GNU Lesser General Public License as published by the Free Software Foundation,
6
6
  either version 3 of the License, or (at your option) any later version.
7
7
 
8
8
  CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
9
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
11
 
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
12
+ You should have received a copy of the GNU Lesser General Public License along with
13
+ CPEE (file LICENSE in the main directory). If not, see
14
14
  <http://www.gnu.org/licenses/>.
15
15
  -->
16
16
 
@@ -24,26 +24,19 @@
24
24
 
25
25
  <!-- libs, do not modify. When local than load local libs. -->
26
26
  <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
27
- <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
28
- <script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
29
- <script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
30
- <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
31
- <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/uidash_util.js"></script>
32
28
  <script type="text/javascript" src="/js_libs/printf.js"></script>
33
29
  <script type="text/javascript" src="/js_libs/strftime.min.js"></script>
34
30
  <script type="text/javascript" src="/js_libs/parsequery.js"></script>
35
31
  <script type="text/javascript" src="/js_libs/underscore.min.js"></script>
36
- <script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
37
32
  <script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
38
33
 
39
34
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
40
35
 
41
36
  <script type="text/javascript" src="/js_libs/uidash.js"></script>
42
- <script type="text/javascript" src="/js_libs/custommenu.js"></script>
37
+ <script type="text/javascript" src="/js_libs/uidash_custommenu.js"></script>
43
38
 
44
- <script type="text/javascript" src="/js_libs/build-bpmn.js"></script>
45
-
46
- <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
39
+ <link rel="stylesheet" href="/js_libs/uidash_custommenu.css" type="text/css"/>
47
40
  <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
48
41
 
49
42
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
@@ -69,7 +62,7 @@
69
62
  <link rel="stylesheet" href="/global_ui/uicpee.css" type="text/css"/>
70
63
  <style></style>
71
64
  </head>
72
- <body data-base-port="8298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
65
+ <body data-base-port="9298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
73
66
  <div id='disclaimer' class='hidden'> <!--{{{-->
74
67
  <h1>Disclaimer</h1>
75
68
 
@@ -2,15 +2,15 @@
2
2
  This file is part of CPEE.
3
3
 
4
4
  CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
5
+ of the GNU Lesser General Public License as published by the Free Software Foundation,
6
6
  either version 3 of the License, or (at your option) any later version.
7
7
 
8
8
  CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
9
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
11
 
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
12
+ You should have received a copy of the GNU Lesser General Public License along with
13
+ CPEE (file LICENSE in the main directory). If not, see
14
14
  <http://www.gnu.org/licenses/>.
15
15
  -->
16
16
 
@@ -24,26 +24,19 @@
24
24
 
25
25
  <!-- libs, do not modify. When local than load local libs. -->
26
26
  <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
27
- <script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
28
- <script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
29
- <script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
30
- <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
31
- <script type="text/javascript" src="/js_libs/util.js"></script>
27
+ <script type="text/javascript" src="/js_libs/uidash_util.js"></script>
32
28
  <script type="text/javascript" src="/js_libs/printf.js"></script>
33
29
  <script type="text/javascript" src="/js_libs/strftime.min.js"></script>
34
30
  <script type="text/javascript" src="/js_libs/parsequery.js"></script>
35
31
  <script type="text/javascript" src="/js_libs/underscore.min.js"></script>
36
- <script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
37
32
  <script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
38
33
 
39
34
  <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
40
35
 
41
36
  <script type="text/javascript" src="/js_libs/uidash.js"></script>
42
- <script type="text/javascript" src="/js_libs/custommenu.js"></script>
37
+ <script type="text/javascript" src="/js_libs/uidash_custommenu.js"></script>
43
38
 
44
- <script type="text/javascript" src="/js_libs/build-bpmn.js"></script>
45
-
46
- <link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
39
+ <link rel="stylesheet" href="/js_libs/uidash_custommenu.css" type="text/css"/>
47
40
  <link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
48
41
 
49
42
  <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
@@ -61,7 +54,10 @@
61
54
  <script type="text/javascript" src="js/modifiers.js"></script>
62
55
  <script type="text/javascript" src="themes/base.js"></script>
63
56
 
57
+ <script type="text/javascript" src="js/llm-ui.js"></script>
58
+ <script type="text/javascript" src="js/llm-ui-status.js"></script>
64
59
  <script type="text/javascript" src="js/llm.js"></script>
60
+
65
61
  <link rel="stylesheet" href="css/llm.css" type="text/css"/>
66
62
 
67
63
  <link rel="stylesheet" href="css/ui.css" type="text/css"/>
@@ -70,7 +66,7 @@
70
66
  <link rel="stylesheet" href="/global_ui/uicpee.css" type="text/css"/>
71
67
  <style></style>
72
68
  </head>
73
- <body data-base-port="8298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
69
+ <body data-base-port="9298" data-base-engine="engine/" data-base-themes="themes" is="x-ui-">
74
70
  <div id='disclaimer' class='hidden'> <!--{{{-->
75
71
  <h1>Disclaimer</h1>
76
72
 
@@ -123,7 +119,6 @@
123
119
  <div class='hidden' id='relaxngworker'></div>
124
120
 
125
121
  <div class='menu' id='templates'></div>
126
- <div class='menu' id='modeltypes'></div>
127
122
 
128
123
  <template id="label">
129
124
  <svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0; left: 0;" class="displaylabel">
@@ -171,7 +166,7 @@
171
166
  <form id='fuckchrome'>
172
167
  <input type='file' name='testsetfile' id='testsetfile'/>
173
168
  </form>
174
- <button title='a template includes various settings, subscriptions or a (partial) model' name="loadtestset">load template</button><button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load testset</button>
169
+ <button title='a template includes various settings, subscriptions or a (partial) model' name="loadtestset">load<br>template</button><button title='a testset includes various settings, subscriptions or a model' name="loadtestsetfile">load<br>testset</button>
175
170
  </div>
176
171
  <div>
177
172
  <input type='file' name='modelfile' id='modelfile'/>
@@ -185,8 +180,8 @@
185
180
  <button title='the SVG contains the graphical repesentation of the CPEE tree as you see it on the screen' name="savesvgfile">save svg<br>graph</button>
186
181
  </div>
187
182
  <div>
188
- <a id="savebpmnfile" href="" download=""></a>
189
- <button title='the BPMN includes a graphical representation that can be loaded in Signavio and Camundal' name="savebpmnfile">save BPMN</button>
183
+ <a id="savemodelfile" href="" download=""></a>
184
+ <button title='the model in the format of the current model type (e.g. CPEE, BPMN, Mermaid)' name="savemodelfile">save model</button>
190
185
  </div>
191
186
  </div><div class='section' id='modifiers'>
192
187
  <template id="item">
@@ -173,6 +173,9 @@ noted; unset booleans behave as `false`/absent.
173
173
  | `info` | `function(node) → {attrName: value, ...}` | Extra HTML attributes stamped onto the drawn element (e.g. `element-endpoint`, `element-alt_id`), consumed later for lookups/menu icon rendering. |
174
174
  | `final` | `true` | Marks this element as a true dead-end (used by `terminate`) — downstream connection logic skips drawing anything past a `final` endpoint. |
175
175
  | `rotatelabels` | `true \| false` | Per-element opt-out/opt-in for the manifestation-level `rotated_labels` flag. |
176
+ | `mark_position` | `'left' \| 'right'` | Corner of the icon where the engine puts the hover/mark marker (the circle with the checkmark), top left by default. Use `'right'` when the icon's label is on its left, e.g. presetlr's `loop_finish`. |
177
+ | `implied` | `{ type, x, y }` | The icon also draws another symbol in a neighbouring cell, `x`/`y` cells away in the icon's own coordinates (lr mirrors the icon, the engine accounts for it). It changes nothing in the drawing, but `get_svg_metrics` records a symbol of that `type` (with the icon's `eid`) there, unless a real symbol is in that cell. E.g. `parallel_branch_event` draws the start circle of the branch: `{ type: 'event_start', x: 1 }`, presetlr below the signal with `y: 1`. |
178
+ | `hidelabel` | `true \| false` | The label is drawn invisible (`.label.invisible`), but still takes its space, e.g. presetlr's `loop_tail` uses the condition only to make the outgoing arrow as long as the label. It is not in the metrics (`get_svg_metrics`). |
176
179
  | `noindent` | `true` | Per-element opt-out of the default indent-first-column behavior in horizontal expansions. |
177
180
 
178
181
  `border: 'structural'` is the mechanism built for subprocesses. When an element's `border` is
@@ -348,6 +351,7 @@ one-off tweaks, e.g. `style="fill:none;"`).
348
351
  | `.label` (on `<text>`) | The node label text style. Put this on the `<text>` inside `part-middle`; leave its content empty, it's filled in at render time. |
349
352
  | `.label.standalone` | Adds a background-colored outline stroke behind the label text (for readability over busy backgrounds) — used e.g. on `loop.svg`'s inline label. |
350
353
  | `.label.rotate` | Applied automatically when the manifestation's `rotated_labels`/an element's `rotatelabels` is active. |
354
+ | `.label.invisible` | Applied automatically when an element's `hidelabel` is set; `visibility: hidden`, so the label keeps its space. |
351
355
  | `.duration` | Stroke color for duration-annotation strokes. |
352
356
  | `.super` / `tspan.exec` / `.active` / `.vote` / `.colon` / `.necessary` | The small execution-count indicator (`▶ 0,0`) appended automatically above every icon unless `addition` is suppressed at draw time. |
353
357
  | `.stripe.even` / `.stripe.odd` | Alternating row backgrounds, only drawn when the manifestation sets `this.striped = true`. |
@@ -15,7 +15,6 @@ function WFAdaptorManifestationBase(adaptor) {
15
15
  this.source = function(base,opts) {
16
16
  if (base[0].namespaceURI == "http://relaxng.org/ns/structure/1.0") {
17
17
  $('#relaxngworker').empty();
18
- self.adaptor.description.reset_used_id_list();
19
18
  var rngw = new RelaxNGui(base,$('#relaxngworker'),self.adaptor.description.context_eval);
20
19
  var nnew = $(rngw.save().documentElement);
21
20
  return(nnew);
@@ -1669,6 +1668,7 @@ function WFAdaptorManifestationBase(adaptor) {
1669
1668
  'border': 'visual',
1670
1669
  'wide': true,
1671
1670
  'closing_symbol': 'event_end',
1671
+ 'implied': { 'type': 'event_start', 'x': 1 }, // the icon also draws the start circle, one cell to the right
1672
1672
  'svg': self.adaptor.theme_dir + 'symbols/parallel_branch_event.svg'
1673
1673
  }//}}}
1674
1674
  }; /*}}}*/
@@ -6,6 +6,9 @@ WFAdaptorManifestation = class extends WFAdaptorManifestationBase {
6
6
  delete(this.elements.choose.illustrator.closing_symbol);
7
7
  this.elements.alternative.illustrator.noindent = true;
8
8
  this.elements.parallel_branch.illustrator.noindent = true;
9
+ this.elements.parallel.illustrator.col_shift = function(node) {
10
+ return $(node).children(':not(parallel_branch)').length == 0; // vertical (event based) parallels do not indent
11
+ };
9
12
  this.elements.loop_head.illustrator.rotatelabels = false;
10
13
  this.elements.loop_tail.illustrator.rotatelabels = false;
11
14
  this.elements.loop_finish.illustrator.rotatelabels = false;
@@ -0,0 +1,28 @@
1
+ <element xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org" rngui:version="1.2" name="alternative" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://cpee.org/ns/description/1.0">
2
+ <attribute name="eid" rngui:label="ID" rngui:default="javascript:get_free_id('e','eid')">
3
+ <data type="string" rngui:readonly="true"/>
4
+ </attribute>
5
+ <attribute name="condition" rngui:label="Condition">
6
+ <data type="string" rngui:label="Condition"/>
7
+ </attribute>
8
+ <element name="_probability" rngui:mark="true" rngui:header="Execution Probability">
9
+ <element name="_probability_min" rngui:label="Min in %">
10
+ <data type="integer" rngui:label="Percent 0-100">
11
+ <param name="minInclusive">1</param>
12
+ <param name="maxInclusive">100</param>
13
+ </data>
14
+ </element>
15
+ <element name="_probability_max" rngui:label="Max in %">
16
+ <data type="integer" rngui:label="Percent 0-100">
17
+ <param name="minInclusive">1</param>
18
+ <param name="maxInclusive">100</param>
19
+ </data>
20
+ </element>
21
+ <element name="_probability_avg" rngui:label="Avg in %">
22
+ <data type="integer" rngui:label="Percent 0-100">
23
+ <param name="minInclusive">1</param>
24
+ <param name="maxInclusive">100</param>
25
+ </data>
26
+ </element>
27
+ </element>
28
+ </element>