@web-utils/component 4.0.16 → 5.0.0-beta01

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 (314) hide show
  1. package/address-input/index.mjs +76 -74
  2. package/affix/index.mjs +71 -78
  3. package/aside-menu/index.mjs +20 -31
  4. package/avatar/index.mjs +94 -82
  5. package/awesome-button/index.mjs +54 -71
  6. package/capsule-tab/index.mjs +27 -32
  7. package/card/index.mjs +86 -69
  8. package/carousel/index.mjs +45 -32
  9. package/chat/index.mjs +441 -266
  10. package/chunk-file-uploader/index.mjs +2 -103
  11. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
  12. package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
  13. package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
  14. package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
  15. package/chunks/ElementForm.ButuYDPA.mjs +627 -0
  16. package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
  17. package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
  18. package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
  19. package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
  20. package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
  21. package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
  22. package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
  23. package/chunks/FormBlock.BEENc22F.mjs +117 -0
  24. package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
  25. package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
  26. package/chunks/FormItem.H9OOvNzT.mjs +90 -0
  27. package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
  28. package/chunks/FormSelect.CanodoAI.mjs +1472 -0
  29. package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
  30. package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
  31. package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
  32. package/chunks/FyForm.vgR8ujEF.mjs +904 -0
  33. package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
  34. package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
  35. package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
  36. package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
  37. package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
  38. package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
  39. package/chunks/RecordVideo.B35_dLty.mjs +116 -0
  40. package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
  41. package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
  42. package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
  43. package/chunks/TableView.DyIdIxAg.mjs +484 -0
  44. package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
  45. package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
  46. package/chunks/VueCron.GfjodnyM.mjs +1766 -0
  47. package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
  48. package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
  49. package/chunks/checkbox.emIuFmnt.mjs +437 -0
  50. package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
  51. package/chunks/core.DJv6Qrae.mjs +51 -0
  52. package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
  53. package/chunks/dic.DgDfnovD.mjs +116 -0
  54. package/chunks/dictionary.5eKjWeAp.mjs +19 -0
  55. package/chunks/dictionary.DxZxP0ej.mjs +87 -0
  56. package/chunks/event.B4iwtUNO.mjs +4 -0
  57. package/chunks/event.eJ-c1Z3a.mjs +224 -0
  58. package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
  59. package/chunks/form-input.D25eDRMq.mjs +34 -0
  60. package/chunks/form-item.CgmUuw_n.mjs +714 -0
  61. package/chunks/form-pick.Axem0gOO.mjs +7 -0
  62. package/chunks/form-validate.B1KPCHqN.mjs +11 -0
  63. package/chunks/icon.CbS8-322.mjs +259 -0
  64. package/chunks/init.DwpukyOB.mjs +115 -0
  65. package/chunks/input.PejnqwSH.mjs +547 -0
  66. package/chunks/install.yLcn5MLL.mjs +84 -0
  67. package/chunks/message.BCmee5N0.mjs +400 -0
  68. package/chunks/overlay.DubSnqma.mjs +122 -0
  69. package/chunks/packages.BGjydzjm.mjs +56 -0
  70. package/chunks/permission.DgEVNWlh.mjs +16 -0
  71. package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
  72. package/chunks/radio.BotKXqJr.mjs +274 -0
  73. package/chunks/scroll.CzORc5Zk.mjs +28 -0
  74. package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
  75. package/chunks/slot.C6Ozd2e7.mjs +25 -0
  76. package/chunks/style.BmlGmjpO.mjs +325 -0
  77. package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
  78. package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
  79. package/chunks/tag.DPi-PLbb.mjs +141 -0
  80. package/chunks/teleport._VGEzK4d.mjs +22 -0
  81. package/chunks/tooltip.D50x7Rva.mjs +1926 -0
  82. package/chunks/typescript.DiWBU4nj.mjs +4 -0
  83. package/chunks/use-aria.BW7nWOl1.mjs +17 -0
  84. package/chunks/use-composition.mUaomyno.mjs +47 -0
  85. package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
  86. package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
  87. package/chunks/use-form-item.wsRjehHp.mjs +47 -0
  88. package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
  89. package/chunks/use-id.CFO5NeoV.mjs +15 -0
  90. package/chunks/use-size.DxrwTUwf.mjs +18 -0
  91. package/chunks/util.B3sjVZoZ.mjs +103 -0
  92. package/chunks/util.g-WQEec9.mjs +223 -0
  93. package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
  94. package/chunks/utils.Cs2fYBrT.mjs +60 -0
  95. package/chunks/utils.DsGhtCIO.mjs +14 -0
  96. package/chunks/validator.C4-z_t9p.mjs +5 -0
  97. package/chunks/vnode.D_SioRnx.mjs +14 -0
  98. package/code-mirror-editor/index.mjs +89 -88
  99. package/comment/index.mjs +62 -57
  100. package/configComponents.mjs +40 -50
  101. package/confirm-button/index.mjs +34 -46
  102. package/confirmable/index.mjs +7 -17
  103. package/context-menu/index.mjs +195 -174
  104. package/count-up/index.mjs +97 -105
  105. package/custom-scrollbar/index.mjs +91 -98
  106. package/data-box/index.mjs +64 -44
  107. package/data-card/index.mjs +60 -47
  108. package/data-card-text/index.mjs +63 -49
  109. package/data-display/index.mjs +71 -51
  110. package/data-icons/index.mjs +70 -50
  111. package/data-imgtext/index.mjs +67 -43
  112. package/data-operatext/index.mjs +51 -40
  113. package/data-panel/index.mjs +57 -44
  114. package/data-pay/index.mjs +105 -48
  115. package/data-price/index.mjs +48 -40
  116. package/data-progress/index.mjs +67 -44
  117. package/data-rotate/index.mjs +61 -44
  118. package/data-table-picker/index.mjs +119 -71
  119. package/data-tabs/index.mjs +67 -44
  120. package/dialog-form/index.mjs +139 -87
  121. package/dynamic-table/index.mjs +166 -109
  122. package/e-charts/index.mjs +174 -200
  123. package/easy-popup/index.mjs +91 -102
  124. package/editable-progress/index.mjs +112 -83
  125. package/editable-tree/index.mjs +2 -481
  126. package/element-dialog/index.mjs +2 -306
  127. package/ellipsis/index.mjs +124 -148
  128. package/empty-view/index.mjs +48 -65
  129. package/error-view/index.mjs +39 -51
  130. package/flex-column/index.mjs +32 -51
  131. package/flex-item/index.mjs +54 -64
  132. package/flex-row/index.mjs +32 -39
  133. package/flex-scroller/index.mjs +29 -30
  134. package/flow/index.mjs +240 -247
  135. package/flow-designer/index.mjs +2 -4709
  136. package/flow-node/index.mjs +56 -64
  137. package/flow-viewer/index.mjs +159 -157
  138. package/form-block/index.mjs +2 -147
  139. package/form-button/index.mjs +35 -47
  140. package/form-card/index.mjs +14 -25
  141. package/form-cascader/index.mjs +2 -115
  142. package/form-checkbox/index.mjs +89 -70
  143. package/form-checkbox-group/index.mjs +161 -113
  144. package/form-date-picker/index.mjs +155 -142
  145. package/form-holder/index.mjs +137 -109
  146. package/form-input/index.mjs +113 -86
  147. package/form-input-cron-expression/index.mjs +97 -76
  148. package/form-input-email/index.mjs +64 -51
  149. package/form-input-id-card/index.mjs +72 -54
  150. package/form-input-phone-number/index.mjs +71 -56
  151. package/form-input-tag/index.mjs +88 -61
  152. package/form-input-time/index.mjs +2 -73
  153. package/form-item/index.mjs +2 -142
  154. package/form-item-config-provider/index.mjs +46 -60
  155. package/form-item-group/index.mjs +2 -157
  156. package/form-radio-group/index.mjs +161 -121
  157. package/form-select/index.mjs +2 -179
  158. package/form-switch/index.mjs +2 -54
  159. package/form-table/index.mjs +131 -84
  160. package/form-table-plus/index.mjs +164 -108
  161. package/form-textarea/index.mjs +90 -56
  162. package/form-tree-select/index.mjs +89 -71
  163. package/form-tree-select-multiple/index.mjs +92 -77
  164. package/form-view/index.mjs +275 -207
  165. package/fy-array/index.mjs +121 -70
  166. package/fy-article/index.mjs +73 -60
  167. package/fy-cascader/index.mjs +113 -90
  168. package/fy-checkbox/index.mjs +96 -64
  169. package/fy-code/index.mjs +48 -50
  170. package/fy-curd/index.mjs +2 -1879
  171. package/fy-date/index.mjs +76 -41
  172. package/fy-draggable/index.mjs +322 -317
  173. package/fy-dynamic/index.mjs +259 -224
  174. package/fy-empty/index.mjs +35 -36
  175. package/fy-form/index.mjs +2 -640
  176. package/fy-form-design/index.mjs +2 -2852
  177. package/fy-form-design/style.css +1 -1
  178. package/fy-from/crud/zh.d.ts +1 -1
  179. package/fy-input/index.mjs +117 -97
  180. package/fy-input-color/index.mjs +77 -54
  181. package/fy-input-icon/index.mjs +129 -82
  182. package/fy-input-map/index.mjs +242 -183
  183. package/fy-input-number/index.mjs +74 -49
  184. package/fy-input-table/index.mjs +160 -105
  185. package/fy-input-tree/index.mjs +259 -178
  186. package/fy-progress/index.mjs +36 -39
  187. package/fy-radio/index.mjs +53 -37
  188. package/fy-rate/index.mjs +86 -70
  189. package/fy-select/index.mjs +224 -137
  190. package/fy-slider/index.mjs +68 -43
  191. package/fy-switch/index.mjs +67 -41
  192. package/fy-tabs/index.mjs +46 -46
  193. package/fy-time/index.mjs +81 -53
  194. package/fy-title/index.mjs +18 -27
  195. package/fy-tree/index.mjs +382 -286
  196. package/fy-u-editor/index.mjs +2 -357
  197. package/fy-upload/index.mjs +2 -421
  198. package/guide-steps/index.mjs +72 -71
  199. package/helper-function.d.ts +2 -30
  200. package/helper-function.mjs +41 -67
  201. package/highlight-j-s/index.mjs +50 -59
  202. package/icon-card/index.mjs +34 -36
  203. package/icon-temp/index.mjs +27 -27
  204. package/iframe-window/index.mjs +39 -32
  205. package/image-cropper/index.mjs +171 -73
  206. package/image-preview/index.mjs +187 -116
  207. package/image-viewer/index.mjs +69 -66
  208. package/index.d.ts +3 -9
  209. package/index.mjs +174 -489
  210. package/input-number-range/index.mjs +78 -58
  211. package/j-s-x-component/index.mjs +13 -15
  212. package/keyboard/index.mjs +2 -369
  213. package/license/index.mjs +106 -115
  214. package/loading-view/index.mjs +39 -51
  215. package/login/index.mjs +252 -120
  216. package/monaco-editor/index.mjs +2 -7
  217. package/name-avatar/index.mjs +61 -53
  218. package/nav-bar/index.mjs +33 -30
  219. package/not-implement/index.mjs +10 -22
  220. package/notice/index.mjs +100 -93
  221. package/package.json +3 -3
  222. package/page/index.mjs +18 -25
  223. package/page-header/index.mjs +27 -33
  224. package/page-index/index.mjs +121 -99
  225. package/page-index-top/index.mjs +79 -74
  226. package/page-skeleton/index.mjs +47 -44
  227. package/page-skeleton-new/index.mjs +79 -49
  228. package/pageable-table/index.mjs +2 -512
  229. package/pageable-view/index.mjs +279 -274
  230. package/photo-swipe/index.d.ts +4 -0
  231. package/photo-swipe/index.mjs +33 -36
  232. package/picker-table-view/index.mjs +224 -117
  233. package/present-view/index.mjs +266 -196
  234. package/queue/index.mjs +45 -53
  235. package/record-video/index.mjs +2 -134
  236. package/resize-observer/index.mjs +43 -46
  237. package/search/index.mjs +116 -107
  238. package/sign/index.mjs +103 -110
  239. package/sign-panel/index.mjs +182 -141
  240. package/skeleton/index.mjs +51 -54
  241. package/skeleton-panel/index.mjs +33 -37
  242. package/split-pane/index.mjs +3 -196
  243. package/stateful/index.mjs +69 -73
  244. package/static-pageable-table/index.mjs +72 -64
  245. package/sub-table/index.mjs +508 -206
  246. package/sub-table-plus/index.mjs +592 -230
  247. package/swiper/index.mjs +128 -120
  248. package/tab/index.mjs +117 -119
  249. package/tab-item/index.mjs +48 -56
  250. package/table-column/index.mjs +2 -225
  251. package/table-view/index.mjs +3 -326
  252. package/tabs-view/index.mjs +109 -104
  253. package/tag-render/index.mjs +79 -67
  254. package/text-ellipsis/index.mjs +94 -77
  255. package/toolbar/index.mjs +2 -254
  256. package/toolbar-button/index.mjs +145 -120
  257. package/verify/index.mjs +58 -64
  258. package/vue-cron/index.mjs +2 -1180
  259. package/vue-qr-code/index.mjs +30 -54
  260. package/vue-quill-editor/index.mjs +123 -99
  261. package/vue-tags-input/index.mjs +348 -431
  262. package/vue-tree-select/index.mjs +2 -2627
  263. package/vue-video-player/index.mjs +135 -136
  264. package/watermark/index.mjs +46 -74
  265. package/web-types.json +197 -975
  266. package/x-input-tag/index.mjs +144 -106
  267. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  268. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  269. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  270. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  271. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  272. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  273. package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
  274. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  275. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  276. package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
  277. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  278. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  279. package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
  280. package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
  281. package/chunks/core.0Exl13Mz.mjs +0 -54
  282. package/chunks/dataformat.CpqOeGBl.mjs +0 -154
  283. package/chunks/dic.Dkl-leRW.mjs +0 -128
  284. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  285. package/chunks/dictionary.DqiP9x2m.mjs +0 -25
  286. package/chunks/event.9aDS6jcw.mjs +0 -236
  287. package/chunks/form-input.CvFdwlEV.mjs +0 -31
  288. package/chunks/form-item.LWjePsPa.mjs +0 -233
  289. package/chunks/form-pick.BFTIVn_i.mjs +0 -11
  290. package/chunks/form-validate.CVarNHKX.mjs +0 -12
  291. package/chunks/helper.BiMLcEEk.mjs +0 -41
  292. package/chunks/index.9OxHjTIE.mjs +0 -16
  293. package/chunks/index.B2TRddqf.mjs +0 -184
  294. package/chunks/index.BmYCjxZQ.mjs +0 -47
  295. package/chunks/init.DAsXSoLW.mjs +0 -122
  296. package/chunks/packages.ByyangTp.mjs +0 -58
  297. package/chunks/permission.CO31YIkD.mjs +0 -16
  298. package/chunks/slot.DXIbhGat.mjs +0 -27
  299. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  300. package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
  301. package/chunks/util.DqFv_pWg.mjs +0 -241
  302. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  303. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  304. package/color-picker/index.mjs +0 -78
  305. package/egd-collapse/index.mjs +0 -62
  306. package/egd-collapse-item/index.mjs +0 -72
  307. package/form-input-number/index.mjs +0 -69
  308. package/form-input-number/style.css +0 -1
  309. package/input-number/index.mjs +0 -232
  310. package/input-number/style.css +0 -1
  311. package/keep-view-alive/index.mjs +0 -117
  312. package/search-popover/index.mjs +0 -118
  313. package/search-popover/style.css +0 -1
  314. /package/{base.css → utils/style.css} +0 -0
@@ -1,4709 +1,2 @@
1
- import { assign as d, isArray as pe, forEach as me, isObject as ue, isFunction as ce, some as T } from "min-dash";
2
- import { is as O } from "bpmn-js/lib/util/ModelUtil";
3
- import { isExpanded as de, isEventSubProcess as ye } from "bpmn-js/lib/util/DiUtil";
4
- import { isAny as $ } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
5
- import { getChildLanes as be } from "bpmn-js/lib/features/modeling/util/LaneUtil";
6
- import { hasPrimaryModifier as ge } from "diagram-js/lib/util/Mouse";
7
- import ie from "bpmn-js/lib/features/palette/PaletteProvider";
8
- import z from "diagram-js/lib/features/auto-place/AutoPlace";
9
- import { getMid as fe, asTRBL as ve } from "diagram-js/lib/layout/LayoutUtil";
10
- import { markRaw as R } from "vue";
11
- import { n as U } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
12
- import "bpmn-js/dist/assets/bpmn-js.css";
13
- import "bpmn-js/dist/assets/diagram-js.css";
14
- import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
15
- import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
16
- import Se from "bpmn-js/lib/Modeler";
17
- import Ae from "bpmn-js/lib/features/drilldown";
18
- import he from "bpmn-js-token-simulation";
19
- import X from "x2js";
20
- import re from "highlight.js/lib/core";
21
- import Ee from "highlight.js/lib/languages/xml";
22
- import Te from "highlight.js/lib/languages/json";
23
- import { isArray as K } from "@web-utils/core";
24
- import Ce from "../highlight-j-s/index.mjs";
25
- import "../highlight-j-s/style.css";
26
- function G(n, e, t, i, r, a, p, o, y, S, l, s, m) {
27
- n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = r, this._elementFactory = a, this._connect = p, this._create = o, this._popupMenu = y, this._canvas = S, this._rules = l, this._translate = s, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(g) {
28
- const A = g.context.shape;
29
- if (!ge(g) || !i.isOpen(A))
30
- return;
31
- const u = i.getEntries(A);
32
- u.replace && u.replace.action.click(g, A);
33
- });
34
- }
35
- G.$inject = [
36
- "config.contextPad",
37
- "injector",
38
- "eventBus",
39
- "contextPad",
40
- "modeling",
41
- "elementFactory",
42
- "connect",
43
- "create",
44
- "popupMenu",
45
- "canvas",
46
- "rules",
47
- "translate",
48
- "elementRegistry"
49
- ];
50
- G.prototype.getContextPadEntries = function(n) {
51
- const e = this._contextPad, t = this._modeling, i = this._elementFactory, r = this._connect, a = this._create, p = this._popupMenu, o = this._canvas, y = this._rules, S = this._autoPlace, l = this._translate, s = {};
52
- if (n.type === "label")
53
- return s;
54
- const m = n.businessObject;
55
- function g(c, v) {
56
- r.start(c, v);
57
- }
58
- function w() {
59
- t.removeElements([n]);
60
- }
61
- function A(c) {
62
- const b = o.getContainer(), x = e.getPad(c).html, I = b.getBoundingClientRect(), _ = x.getBoundingClientRect(), M = _.top - I.top;
63
- return {
64
- x: _.left - I.left,
65
- y: M + _.height + 5
66
- };
67
- }
68
- function u(c, v, b, x) {
69
- typeof b != "string" && (x = b, b = l("Append {type}", { type: c.replace(/^bpmn:/, "") }));
70
- function I(M, D) {
71
- const B = i.createShape(d({ type: c }, x));
72
- a.start(M, B, {
73
- source: D
74
- });
75
- }
76
- return {
77
- group: "model",
78
- className: v,
79
- title: b,
80
- action: {
81
- dragstart: I,
82
- click: S ? function(M, D) {
83
- const B = i.createShape(d({ type: c }, x));
84
- S.append(D, B);
85
- } : I
86
- }
87
- };
88
- }
89
- function k(c) {
90
- return function(v, b) {
91
- t.splitLane(b, c), e.open(b, !0);
92
- };
93
- }
94
- if ($(m, ["bpmn:Lane", "bpmn:Participant"]) && de(m)) {
95
- const c = be(n);
96
- d(s, {
97
- "lane-insert-above": {
98
- group: "lane-insert-above",
99
- className: "bpmn-icon-lane-insert-above",
100
- title: l("Add Lane above"),
101
- action: {
102
- click: function(v, b) {
103
- t.addLane(b, "top");
104
- }
105
- }
106
- }
107
- }), c.length < 2 && (n.height >= 120 && d(s, {
108
- "lane-divide-two": {
109
- group: "lane-divide",
110
- className: "bpmn-icon-lane-divide-two",
111
- title: l("Divide into two Lanes"),
112
- action: {
113
- click: k(2)
114
- }
115
- }
116
- }), n.height >= 180 && d(s, {
117
- "lane-divide-three": {
118
- group: "lane-divide",
119
- className: "bpmn-icon-lane-divide-three",
120
- title: l("Divide into three Lanes"),
121
- action: {
122
- click: k(3)
123
- }
124
- }
125
- })), d(s, {
126
- "lane-insert-below": {
127
- group: "lane-insert-below",
128
- className: "bpmn-icon-lane-insert-below",
129
- title: l("Add Lane below"),
130
- action: {
131
- click: function(v, b) {
132
- t.addLane(b, "bottom");
133
- }
134
- }
135
- }
136
- });
137
- }
138
- O(m, "bpmn:FlowNode") && (O(m, "bpmn:EventBasedGateway") ? d(s, {
139
- "append.receive-task": u("bpmn:ReceiveTask", "bpmn-icon-receive-task", l("Append ReceiveTask")),
140
- "append.message-intermediate-event": u(
141
- "bpmn:IntermediateCatchEvent",
142
- "bpmn-icon-intermediate-event-catch-message",
143
- l("Append MessageIntermediateCatchEvent"),
144
- { eventDefinitionType: "bpmn:MessageEventDefinition" }
145
- ),
146
- "append.timer-intermediate-event": u(
147
- "bpmn:IntermediateCatchEvent",
148
- "bpmn-icon-intermediate-event-catch-timer",
149
- l("Append TimerIntermediateCatchEvent"),
150
- { eventDefinitionType: "bpmn:TimerEventDefinition" }
151
- ),
152
- "append.condition-intermediate-event": u(
153
- "bpmn:IntermediateCatchEvent",
154
- "bpmn-icon-intermediate-event-catch-condition",
155
- l("Append ConditionIntermediateCatchEvent"),
156
- { eventDefinitionType: "bpmn:ConditionalEventDefinition" }
157
- ),
158
- "append.signal-intermediate-event": u(
159
- "bpmn:IntermediateCatchEvent",
160
- "bpmn-icon-intermediate-event-catch-signal",
161
- l("Append SignalIntermediateCatchEvent"),
162
- { eventDefinitionType: "bpmn:SignalEventDefinition" }
163
- )
164
- }) : Y(m, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? d(s, {
165
- "append.compensation-activity": u("bpmn:Task", "bpmn-icon-task", l("Append compensation activity"), {
166
- isForCompensation: !0
167
- })
168
- }) : !O(m, "bpmn:EndEvent") && !m.isForCompensation && !Y(m, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !ye(m) && d(s, {
169
- "append.end-event": u("bpmn:EndEvent", "bpmn-icon-end-event-none", l("Append EndEvent")),
170
- "append.gateway": u("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", l("Append Gateway")),
171
- "append.append-task": u("bpmn:UserTask", "bpmn-icon-user-task", l("Append Task")),
172
- "append.intermediate-event": u(
173
- "bpmn:IntermediateThrowEvent",
174
- "bpmn-icon-intermediate-event-none",
175
- l("Append Intermediate/Boundary Event")
176
- )
177
- })), p.isEmpty(n, "bpmn-replace") || d(s, {
178
- replace: {
179
- group: "edit",
180
- className: "bpmn-icon-screw-wrench",
181
- title: l("Change type"),
182
- action: {
183
- click: function(c, v) {
184
- const b = d(A(v), {
185
- cursor: { x: c.x, y: c.y }
186
- });
187
- p.open(v, "bpmn-replace", b);
188
- }
189
- }
190
- }
191
- }), $(m, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && d(s, {
192
- "append.text-annotation": u("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
193
- connect: {
194
- group: "connect",
195
- className: "bpmn-icon-connection-multi",
196
- title: l(`Connect using ${m.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`),
197
- action: {
198
- click: g,
199
- dragstart: g
200
- }
201
- }
202
- }), $(m, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && d(s, {
203
- connect: {
204
- group: "connect",
205
- className: "bpmn-icon-connection-multi",
206
- title: l("Connect using DataInputAssociation"),
207
- action: {
208
- click: g,
209
- dragstart: g
210
- }
211
- }
212
- }), O(m, "bpmn:Group") && d(s, {
213
- "append.text-annotation": u("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
214
- });
215
- let h = y.allowed("elements.delete", { elements: [n] });
216
- return pe(h) && (h = h[0] === n), h && d(s, {
217
- delete: {
218
- group: "edit",
219
- className: "bpmn-icon-trash",
220
- title: l("Remove"),
221
- action: {
222
- click: w
223
- }
224
- }
225
- }), s;
226
- };
227
- function Y(n, e, t) {
228
- const i = n.$instanceOf(e);
229
- let r = !1;
230
- const a = n.eventDefinitions || [];
231
- return me(a, function(p) {
232
- p.$type === t && (r = !0);
233
- }), i && r;
234
- }
235
- const xe = {
236
- __init__: ["contextPadProvider"],
237
- contextPadProvider: ["type", G]
238
- };
239
- function P(n, e, t, i, r, a, p, o, y) {
240
- ie.call(this, n, e, t, i, r, a, p, o, y, 2e3), this._create = e, this._elementFactory = t, this._spaceTool = i, this._lassoTool = r, this._handTool = a, this._globalConnect = p, this._moddle = o, this._translate = y;
241
- }
242
- const j = function() {
243
- };
244
- j.prototype = ie.prototype;
245
- j.prototype.getPaletteEntries = function() {
246
- const n = {}, e = this._create, t = this._elementFactory, i = this._spaceTool, r = this._lassoTool, a = this._handTool, p = this._globalConnect, o = this._translate;
247
- function y(s, m, g, w, A) {
248
- function u(h) {
249
- const c = t.createShape(d({ type: s }, A));
250
- s === "bpmn:UserTask" && (c.businessObject.candidateUsers = "${handlers}"), e.start(h, c);
251
- }
252
- const k = s.replace(/^bpmn:/, "");
253
- return {
254
- group: m,
255
- className: g,
256
- title: w || o("Create {type}", { type: k }),
257
- action: {
258
- dragstart: u,
259
- click: u
260
- }
261
- };
262
- }
263
- function S(s) {
264
- const m = t.createShape({
265
- type: "bpmn:SubProcess",
266
- x: 0,
267
- y: 0,
268
- isExpanded: !0
269
- }), g = t.createShape({
270
- type: "bpmn:StartEvent",
271
- x: 40,
272
- y: 82,
273
- parent: m
274
- });
275
- e.start(s, [m, g], {
276
- hints: {
277
- autoSelect: [g]
278
- }
279
- });
280
- }
281
- function l(s) {
282
- e.start(s, t.createParticipantShape());
283
- }
284
- return d(n, {
285
- "hand-tool": {
286
- group: "tools",
287
- className: "bpmn-icon-hand-tool",
288
- title: o("Activate the hand tool"),
289
- action: {
290
- click: function(s) {
291
- a.activateHand(s);
292
- }
293
- }
294
- },
295
- "lasso-tool": {
296
- group: "tools",
297
- className: "bpmn-icon-lasso-tool",
298
- title: o("Activate the lasso tool"),
299
- action: {
300
- click: function(s) {
301
- r.activateSelection(s);
302
- }
303
- }
304
- },
305
- "space-tool": {
306
- group: "tools",
307
- className: "bpmn-icon-space-tool",
308
- title: o("Activate the create/remove space tool"),
309
- action: {
310
- click: function(s) {
311
- i.activateSelection(s);
312
- }
313
- }
314
- },
315
- "global-connect-tool": {
316
- group: "tools",
317
- className: "bpmn-icon-connection-multi",
318
- title: o("Activate the global connect tool"),
319
- action: {
320
- click: function(s) {
321
- p.toggle(s);
322
- }
323
- }
324
- },
325
- "tool-separator": { group: "tools", separator: !0 },
326
- "create.start-event": y("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", o("Create StartEvent")),
327
- "create.intermediate-event": y(
328
- "bpmn:IntermediateThrowEvent",
329
- "event",
330
- "bpmn-icon-intermediate-event-none",
331
- o("Create Intermediate/Boundary Event")
332
- ),
333
- "create.user-task": y("bpmn:UserTask", "activity", "bpmn-icon-user-task", o("Create User Task")),
334
- "create.exclusive-gateway": y("bpmn:ExclusiveGateway", "activity", "bpmn-icon-gateway-none", o("Create Gateway")),
335
- "create.end-event": y("bpmn:EndEvent", "activity", "bpmn-icon-end-event-none", o("Create EndEvent")),
336
- // 'create.sql-task': createAction('user:MySql', 'activity', 'bpmn-icon-mysql', 'MySQL 节点'),
337
- // 'create.data-object': createAction('bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', translate('Create DataObjectReference')),
338
- // 'create.data-store': createAction('bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', translate('Create DataStoreReference')),
339
- "activity-separator": { group: "activity", separator: !0 },
340
- "create.subprocess-expanded": {
341
- group: "activity",
342
- className: "bpmn-icon-subprocess-expanded",
343
- title: o("Create expanded SubProcess"),
344
- action: {
345
- dragstart: S,
346
- click: S
347
- }
348
- },
349
- "create.participant-expanded": {
350
- group: "collaboration",
351
- className: "bpmn-icon-participant",
352
- title: o("Create Pool/Participant"),
353
- action: {
354
- dragstart: l,
355
- click: l
356
- }
357
- }
358
- // 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
359
- }), n;
360
- };
361
- P.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "moddle", "translate"];
362
- P.prototype = new j();
363
- P.prototype.constructor = P;
364
- const Ie = {
365
- __init__: ["customPalette"],
366
- customPalette: ["type", P]
367
- };
368
- function ae(n, e) {
369
- z.call(this, n, e, 3e3), n.on("autoPlace", 3e3, function(t) {
370
- const i = t.shape, r = t.source;
371
- return _e(r, i);
372
- }), this.append = function(t, i, r) {
373
- n.fire("autoPlace.start", {
374
- source: t,
375
- shape: i
376
- });
377
- const a = n.fire("autoPlace", {
378
- source: t,
379
- shape: i
380
- });
381
- console.log("hints", r, "position", a);
382
- const p = e.appendShape(t, i, a, t.parent, r);
383
- return n.fire("autoPlace.end", {
384
- source: t,
385
- shape: p
386
- }), p;
387
- };
388
- }
389
- function Pe(n) {
390
- return {
391
- top: n.y,
392
- right: n.x + (n.width || 0),
393
- bottom: n.y + (n.height || 0),
394
- left: n.x
395
- };
396
- }
397
- function we(n) {
398
- return {
399
- x: Math.round(n.x),
400
- y: Math.round(n.y)
401
- };
402
- }
403
- function ke(n) {
404
- return we({
405
- x: n.x + (n.width || 0) / 2,
406
- y: n.y + (n.height || 0) / 2
407
- });
408
- }
409
- function _e(n, e, t) {
410
- t || (t = {});
411
- const i = t.defaultDistance || 50, r = ke(n), a = Pe(n);
412
- return {
413
- x: r.x,
414
- y: a.bottom + i + e.height / 2
415
- };
416
- }
417
- const se = function() {
418
- };
419
- se.prototype = z.prototype;
420
- ae.prototype = new se();
421
- ae.prototype.constructor = z;
422
- const Me = 200, De = 100;
423
- function oe(n, e, t) {
424
- n.on("autoPlace", De, function(i) {
425
- const r = i.shape, a = i.source;
426
- return Be(a, r);
427
- }), n.on("autoPlace.end", function(i) {
428
- t.scrollToElement(i.shape);
429
- }), this.append = function(i, r, a) {
430
- n.fire("autoPlace.start", {
431
- source: i,
432
- shape: r
433
- });
434
- const p = n.fire("autoPlace", {
435
- source: i,
436
- shape: r
437
- }), o = e.appendShape(i, r, p, i.parent, a);
438
- return n.fire("autoPlace.end", {
439
- source: i,
440
- shape: o
441
- }), o;
442
- };
443
- }
444
- oe.$inject = ["eventBus", "modeling", "canvas"];
445
- function Be(n, e) {
446
- const t = Me, i = fe(n);
447
- return {
448
- x: ve(n).right + t + e.width / 2,
449
- y: i.y
450
- };
451
- }
452
- const Oe = {
453
- __init__: ["autoPlaceSelectionBehavior"],
454
- autoPlace: ["type", oe]
455
- }, Q = ["base", "task", "form", "multiInstance"], Fe = {
456
- name: "PropertiesPanel",
457
- componentName: "MyPropertiesPanel",
458
- components: {
459
- UserTaskListeners: () => import("../chunks/UserTaskListeners.Bv3BDfEI.mjs"),
460
- ElementForm: () => import("../chunks/ElementForm.CQ3PN5qj.mjs"),
461
- ElementProperties: () => import("../chunks/ElementProperties.CosfDrlW.mjs"),
462
- ElementListeners: () => import("../chunks/ElementListeners.De_PRuIm.mjs"),
463
- SignalAndMassage: () => import("../chunks/SignalAndMessage.Bb5PFX0N.mjs"),
464
- FlowCondition: () => import("../chunks/FlowCondition.Y6qEYi1T.mjs"),
465
- ElementMultiInstance: () => import("../chunks/ElementMultiInstance.DQo2wuAQ.mjs"),
466
- ElementTask: () => import("../chunks/ElementTaskConfig.Bko0kgTp.mjs"),
467
- ElementOtherConfig: () => import("../chunks/ElementOtherConfig.B1NfMTYh.mjs"),
468
- ElementBaseInfo: () => import("../chunks/ElementBaseInfo.ZADwixb5.mjs")
469
- },
470
- provide() {
471
- return {
472
- prefix: this.prefix,
473
- width: this.width,
474
- context: this.context,
475
- bpmnInstances: this.bpmnInstances
476
- };
477
- },
478
- props: {
479
- /**
480
- * 默认激活的面板
481
- */
482
- activeTabs: {
483
- type: Array,
484
- default: () => ["base", "task", "form", "multiInstance"]
485
- },
486
- /**
487
- * 使用的配置面板
488
- */
489
- useTabs: Array,
490
- /**
491
- * bpmnModeler
492
- */
493
- bpmnModeler: Object,
494
- /**
495
- * 配置上下文
496
- */
497
- context: Object,
498
- /**
499
- * 前缀
500
- */
501
- prefix: {
502
- type: String,
503
- default: "camunda"
504
- },
505
- /**
506
- * 宽度
507
- */
508
- width: {
509
- type: Number,
510
- default: 480
511
- },
512
- /**
513
- * 是否禁用编辑
514
- */
515
- idEditDisabled: {
516
- type: Boolean,
517
- default: !1
518
- },
519
- panelType: {
520
- type: String
521
- }
522
- },
523
- data() {
524
- return {
525
- element: {},
526
- bpmnInstances: {},
527
- activeTab: this.panelType === "tab" ? "base" : ["base"],
528
- elementId: "",
529
- elementType: "",
530
- conditionFormVisible: !1,
531
- // 流转条件设置
532
- formVisible: !1,
533
- // 表单配置
534
- isPanelVisible: !0
535
- };
536
- },
537
- computed: {
538
- isArray() {
539
- return Array.isArray(this.useTabs);
540
- },
541
- isNullOrUndefined() {
542
- return this.useTabs === null || this.useTabs === void 0;
543
- },
544
- isTab() {
545
- return this.panelType === "tab";
546
- }
547
- },
548
- watch: {
549
- activeTabs: {
550
- immediate: !0,
551
- handler() {
552
- this.activeTab = this.isTab ? "base" : Q;
553
- }
554
- },
555
- elementId: {
556
- handler() {
557
- this.activeTab = this.isTab ? "base" : Q;
558
- }
559
- },
560
- isTab: {
561
- immediate: !0,
562
- handler(n) {
563
- n ? this.activeTab = "base" : this.activeTab = ["base"];
564
- }
565
- }
566
- },
567
- created() {
568
- this.initModels();
569
- },
570
- methods: {
571
- initModels() {
572
- if (!this.bpmnModeler) {
573
- this.timer = setTimeout(() => this.initModels(), 10);
574
- return;
575
- }
576
- this.timer && clearTimeout(this.timer), this.bpmnInstances = R({
577
- modeler: this.bpmnModeler,
578
- modeling: this.bpmnModeler.get("modeling"),
579
- moddle: this.bpmnModeler.get("moddle"),
580
- eventBus: this.bpmnModeler.get("eventBus"),
581
- bpmnFactory: this.bpmnModeler.get("bpmnFactory"),
582
- elementFactory: this.bpmnModeler.get("elementFactory"),
583
- elementRegistry: this.bpmnModeler.get("elementRegistry"),
584
- replace: this.bpmnModeler.get("replace"),
585
- selection: this.bpmnModeler.get("selection")
586
- }), this.$emit("initModels", this.bpmnInstances), this.getActiveElement();
587
- },
588
- getActiveElement() {
589
- this.initFormOnChanged(null), this.bpmnModeler.on("import.done", () => {
590
- this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), this.initFormOnChanged(null);
591
- }), this.bpmnModeler.on("selection.changed", ({ newSelection: n }) => {
592
- this.initFormOnChanged(n[0] || null);
593
- }), this.bpmnModeler.on("element.changed", ({ element: n }) => {
594
- n && n.id === this.elementId && this.initFormOnChanged(n);
595
- });
596
- },
597
- // 初始化数据
598
- initFormOnChanged(n) {
599
- let e = n;
600
- e || (e = this.bpmnInstances.elementRegistry.find((t) => t.type === "bpmn:Process") ?? this.bpmnInstances.elementRegistry.find((t) => t.type === "bpmn:Collaboration")), e && (this.element = R(e), this.elementId = e.id, this.elementType = e.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && e.source && e.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask");
601
- }
602
- }
603
- };
604
- var Le = function() {
605
- var i, r;
606
- var e = this, t = e._self._c;
607
- return t("div", { class: ["process-panel__container", { show: e.isPanelVisible, hide: !e.isPanelVisible }], style: { width: `${e.isPanelVisible ? e.width : 34}px` }, on: { click: function(a) {
608
- e.isPanelVisible = !0;
609
- } } }, [t("div", { staticStyle: { height: "40px", "line-height": "40px" } }, [t("i", { class: ["open-properties-handel", e.isPanelVisible ? "el-icon-caret-right" : "el-icon-caret-left"], on: { click: function(a) {
610
- a.stopPropagation(), e.isPanelVisible = !e.isPanelVisible;
611
- } } }), e._v(" " + e._s(e.isPanelVisible ? (r = (i = e.element) == null ? void 0 : i.businessObject) == null ? void 0 : r.name : "") + " ")]), e.panelType === "tab" ? t("ElTabs", { directives: [{ name: "show", rawName: "v-show", value: e.isPanelVisible, expression: "isPanelVisible" }], model: { value: e.activeTab, callback: function(a) {
612
- e.activeTab = a;
613
- }, expression: "activeTab" } }, [e.isNullOrUndefined || e.isArray && e.useTabs.includes("base") ? t("ElTabPane", { attrs: { label: "常规", name: "base", lazy: "" } }, [t("ElementBaseInfo", { attrs: { id: e.elementId, "id-edit-disabled": e.idEditDisabled, type: e.elementType, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("message")) && e.elementType === "Process" ? t("ElTabPane", { attrs: { label: "消息与信号", name: "message", lazy: "" } }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("condition")) && e.conditionFormVisible ? t("ElTabPane", { attrs: { label: "流转条件", name: "condition", lazy: "" } }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("form") ? e._t("form", function() {
614
- return [(e.isNullOrUndefined || e.isArray && e.useTabs.includes("base")) && e.formVisible ? t("ElTabPane", { key: "form", attrs: { label: "表单", name: "form", lazy: "" } }, [t("ElementForm", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
615
- }, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("task") ? e._t("task", function() {
616
- return [e.elementType.indexOf("Task") !== -1 ? t("ElTabPane", { key: "task", attrs: { label: "任务", name: "task", lazy: "" } }, [t("ElementTask", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
617
- }, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("multiInstance")) && e.elementType.indexOf("Task") !== -1 ? t("ElTabPane", { key: "multiInstance", attrs: { label: "多实例", name: "multiInstance", lazy: "" } }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("listeners") ? t("ElTabPane", { key: "listeners", attrs: { label: "执行监听器", name: "listeners", lazy: "" } }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("taskListeners")) && e.elementType === "UserTask" ? t("ElTabPane", { key: "taskListeners", attrs: { label: "任务监听器", name: "taskListeners", lazy: "" } }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extensions") ? t("ElTabPane", { key: "extensions", attrs: { label: "扩展属性", name: "extensions", lazy: "" } }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("other") ? t("ElTabPane", { key: "other", attrs: { label: "其他", name: "other", lazy: "" } }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extend") ? e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e()], 2) : t("ElCollapse", { directives: [{ name: "show", rawName: "v-show", value: e.isPanelVisible, expression: "isPanelVisible" }], model: { value: e.activeTab, callback: function(a) {
618
- e.activeTab = a;
619
- }, expression: "activeTab" } }, [e.isNullOrUndefined || e.isArray && e.useTabs.includes("base") ? t("ElCollapseItem", { attrs: { name: "base" }, scopedSlots: e._u([{ key: "title", fn: function() {
620
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-info" }), e._v("常规")])];
621
- }, proxy: !0 }], null, !1, 2621733365) }, [t("ElementBaseInfo", { attrs: { id: e.elementId, "id-edit-disabled": e.idEditDisabled, type: e.elementType, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("message")) && e.elementType === "Process" ? t("ElCollapseItem", { key: "message", attrs: { name: "message" }, scopedSlots: e._u([{ key: "title", fn: function() {
622
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-comment" }), e._v("消息与信号")])];
623
- }, proxy: !0 }], null, !1, 2715634709) }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("condition")) && e.conditionFormVisible ? t("ElCollapseItem", { key: "condition", attrs: { name: "condition" }, scopedSlots: e._u([{ key: "title", fn: function() {
624
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("流转条件")])];
625
- }, proxy: !0 }], null, !1, 2203010800) }, [t("FlowCondition", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("form") ? e._t("form", function() {
626
- return [(e.isNullOrUndefined || e.isArray && e.useTabs.includes("base")) && e.formVisible ? t("ElCollapseItem", { key: "form", attrs: { name: "form" }, scopedSlots: e._u([{ key: "title", fn: function() {
627
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-order" }), e._v("表单")])];
628
- }, proxy: !0 }], null, !1, 1341048650) }, [t("ElementForm", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
629
- }, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("task") ? e._t("task", function() {
630
- return [e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "task", attrs: { name: "task" }, scopedSlots: e._u([{ key: "title", fn: function() {
631
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-claim" }), e._v("任务")])];
632
- }, proxy: !0 }], null, !1, 2144785833) }, [t("ElementTask", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
633
- }, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("multiInstance")) && e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "multiInstance", attrs: { name: "multiInstance" }, scopedSlots: e._u([{ key: "title", fn: function() {
634
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-help" }), e._v("多实例")])];
635
- }, proxy: !0 }], null, !1, 1253501895) }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("listeners") ? t("ElCollapseItem", { key: "listeners", attrs: { name: "listeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
636
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("执行监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
637
- return [t("p", [e._v("发送和退回时会触发")])];
638
- }, proxy: !0 }], null, !1, 635466666) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
639
- }, proxy: !0 }], null, !1, 579687766) }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("taskListeners")) && e.elementType === "UserTask" ? t("ElCollapseItem", { key: "taskListeners", attrs: { name: "taskListeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
640
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("任务监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
641
- return [t("p", [e._v("任务实例的创建、指派、完成、删除、更新、超时会触发")])];
642
- }, proxy: !0 }], null, !1, 1260848675) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
643
- }, proxy: !0 }], null, !1, 1038413081) }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extensions") ? t("ElCollapseItem", { key: "extensions", attrs: { name: "extensions" }, scopedSlots: e._u([{ key: "title", fn: function() {
644
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-circle-plus" }), e._v("扩展属性")])];
645
- }, proxy: !0 }], null, !1, 1854866151) }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("other") ? t("ElCollapseItem", { key: "other", attrs: { name: "other" }, scopedSlots: e._u([{ key: "title", fn: function() {
646
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
647
- }, proxy: !0 }], null, !1, 520255146) }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extend") ? e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e()], 2)], 1);
648
- }, Re = [], $e = /* @__PURE__ */ U(
649
- Fe,
650
- Le,
651
- Re,
652
- !1,
653
- null,
654
- null
655
- );
656
- const Ve = $e.exports, Ne = (n, e, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
657
- <bpmn2:definitions
658
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
659
- xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
660
- xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
661
- xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
662
- xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
663
- id="diagram_${n}"
664
- targetNamespace="${{
665
- activiti: "http://activiti.org/bpmn",
666
- camunda: "http://bpmn.io/schema/bpmn",
667
- flowable: "http://flowable.org/bpmn"
668
- }[t]}">
669
- <bpmn2:process id="${n}" name="${e}" isExecutable="true">
670
- </bpmn2:process>
671
- <bpmndi:BPMNDiagram id="BPMNDiagram_1">
672
- <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${n}">
673
- </bpmndi:BPMNPlane>
674
- </bpmndi:BPMNDiagram>
675
- </bpmn2:definitions>`);
676
- function ze(n) {
677
- return function(e, t) {
678
- return t = t || {}, e = n[e] || e, e.replace(/{([^}]+)}/g, function(i, r) {
679
- let a = t[r];
680
- return n[t[r]] !== null && n[t[r]] !== void 0 && (a = n[t[r]]), a || `{${r}}`;
681
- });
682
- };
683
- }
684
- const Ue = {
685
- // 添加部分
686
- "Append EndEvent": "追加结束事件",
687
- "Append Gateway": "追加网关",
688
- "Append Task": "追加任务",
689
- "Append Intermediate/Boundary Event": "追加中间抛出事件/边界事件",
690
- "Activate the global connect tool": "激活全局连接工具",
691
- "Append {type}": "添加 {type}",
692
- "Add Lane above": "在上面添加道",
693
- "Divide into two Lanes": "分割成两个道",
694
- "Divide into three Lanes": "分割成三个道",
695
- "Add Lane below": "在下面添加道",
696
- "Append compensation activity": "追加补偿活动",
697
- "Change type": "修改类型",
698
- "Connect using Association": "使用关联连接",
699
- "Connect using Sequence/MessageFlow or Association": "使用顺序/消息流或者关联连接",
700
- "Connect using DataInputAssociation": "使用数据输入关联连接",
701
- Remove: "移除",
702
- "Activate the hand tool": "激活抓手工具",
703
- "Activate the lasso tool": "激活套索工具",
704
- "Activate the create/remove space tool": "激活创建/删除空间工具",
705
- "Create expanded SubProcess": "创建扩展子过程",
706
- "Create IntermediateThrowEvent/BoundaryEvent": "创建中间抛出事件/边界事件",
707
- "Create Pool/Participant": "创建池/参与者",
708
- "Parallel Multi Instance": "并行多重事件",
709
- "Sequential Multi Instance": "时序多重事件",
710
- DataObjectReference: "数据对象参考",
711
- DataStoreReference: "数据存储参考",
712
- Loop: "循环",
713
- "Ad-hoc": "即席",
714
- "Create {type}": "创建 {type}",
715
- Task: "任务",
716
- "Send Task": "发送任务",
717
- "Receive Task": "接收任务",
718
- "User Task": "用户任务",
719
- "Manual Task": "手工任务",
720
- "Business Rule Task": "业务规则任务",
721
- "Service Task": "服务任务",
722
- "Script Task": "脚本任务",
723
- "Call Activity": "调用活动",
724
- "Sub Process (collapsed)": "子流程(折叠的)",
725
- "Sub Process (expanded)": "子流程(展开的)",
726
- "Start Event": "开始事件",
727
- StartEvent: "开始事件",
728
- "Intermediate Throw Event": "中间事件",
729
- "End Event": "结束事件",
730
- EndEvent: "结束事件",
731
- "Create StartEvent": "创建开始事件",
732
- "Create EndEvent": "创建结束事件",
733
- "Create Task": "创建任务",
734
- "Create User Task": "创建用户任务",
735
- "Create Gateway": "创建网关",
736
- "Create DataObjectReference": "创建数据对象",
737
- "Create DataStoreReference": "创建数据存储",
738
- "Create Group": "创建分组",
739
- "Create Intermediate/Boundary Event": "创建中间/边界事件",
740
- "Message Start Event": "消息开始事件",
741
- "Timer Start Event": "定时开始事件",
742
- "Conditional Start Event": "条件开始事件",
743
- "Signal Start Event": "信号开始事件",
744
- "Error Start Event": "错误开始事件",
745
- "Escalation Start Event": "升级开始事件",
746
- "Compensation Start Event": "补偿开始事件",
747
- "Message Start Event (non-interrupting)": "消息开始事件(非中断)",
748
- "Timer Start Event (non-interrupting)": "定时开始事件(非中断)",
749
- "Conditional Start Event (non-interrupting)": "条件开始事件(非中断)",
750
- "Signal Start Event (non-interrupting)": "信号开始事件(非中断)",
751
- "Escalation Start Event (non-interrupting)": "升级开始事件(非中断)",
752
- "Message Intermediate Catch Event": "消息中间捕获事件",
753
- "Message Intermediate Throw Event": "消息中间抛出事件",
754
- "Timer Intermediate Catch Event": "定时中间捕获事件",
755
- "Escalation Intermediate Throw Event": "升级中间抛出事件",
756
- "Conditional Intermediate Catch Event": "条件中间捕获事件",
757
- "Link Intermediate Catch Event": "链接中间捕获事件",
758
- "Link Intermediate Throw Event": "链接中间抛出事件",
759
- "Compensation Intermediate Throw Event": "补偿中间抛出事件",
760
- "Signal Intermediate Catch Event": "信号中间捕获事件",
761
- "Signal Intermediate Throw Event": "信号中间抛出事件",
762
- "Message End Event": "消息结束事件",
763
- "Escalation End Event": "定时结束事件",
764
- "Error End Event": "错误结束事件",
765
- "Cancel End Event": "取消结束事件",
766
- "Compensation End Event": "补偿结束事件",
767
- "Signal End Event": "信号结束事件",
768
- "Terminate End Event": "终止结束事件",
769
- "Message Boundary Event": "消息边界事件",
770
- "Message Boundary Event (non-interrupting)": "消息边界事件(非中断)",
771
- "Timer Boundary Event": "定时边界事件",
772
- "Timer Boundary Event (non-interrupting)": "定时边界事件(非中断)",
773
- "Escalation Boundary Event": "升级边界事件",
774
- "Escalation Boundary Event (non-interrupting)": "升级边界事件(非中断)",
775
- "Conditional Boundary Event": "条件边界事件",
776
- "Conditional Boundary Event (non-interrupting)": "条件边界事件(非中断)",
777
- "Error Boundary Event": "错误边界事件",
778
- "Cancel Boundary Event": "取消边界事件",
779
- "Signal Boundary Event": "信号边界事件",
780
- "Signal Boundary Event (non-interrupting)": "信号边界事件(非中断)",
781
- "Compensation Boundary Event": "补偿边界事件",
782
- "Exclusive Gateway": "互斥网关",
783
- "Parallel Gateway": "并行网关",
784
- "Inclusive Gateway": "相容网关",
785
- "Complex Gateway": "复杂网关",
786
- "Event based Gateway": "事件网关",
787
- Transaction: "转运",
788
- "Sub Process": "子流程",
789
- "Event Sub Process": "事件子流程",
790
- "Collapsed Pool": "折叠池",
791
- "Expanded Pool": "展开池",
792
- // Errors
793
- "no parent for {element} in {parent}": "在{parent}里,{element}没有父类",
794
- "no shape type specified": "没有指定的形状类型",
795
- "flow elements must be children of pools/participants": "流元素必须是池/参与者的子类",
796
- "out of bounds release": "out of bounds release",
797
- "more than {count} child lanes": "子道大于{count} ",
798
- "element required": "元素不能为空",
799
- "diagram not part of bpmn:Definitions": "流程图不符合bpmn规范",
800
- "no diagram to display": "没有可展示的流程图",
801
- "no process or collaboration to display": "没有可展示的流程/协作",
802
- "element {element} referenced by {referenced}#{property} not yet drawn": "由{referenced}#{property}引用的{element}元素仍未绘制",
803
- "already rendered {element}": "{element} 已被渲染",
804
- "failed to import {element}": "导入{element}失败",
805
- // 属性面板的参数
806
- Id: "编号",
807
- Name: "名称",
808
- General: "常规",
809
- Details: "详情",
810
- "Message Name": "消息名称",
811
- Message: "消息",
812
- Initiator: "创建者",
813
- "Asynchronous Continuations": "持续异步",
814
- "Asynchronous Before": "异步前",
815
- "Asynchronous After": "异步后",
816
- "Job Configuration": "工作配置",
817
- Exclusive: "排除",
818
- "Job Priority": "工作优先级",
819
- "Retry Time Cycle": "重试时间周期",
820
- Documentation: "文档",
821
- "Element Documentation": "元素文档",
822
- "History Configuration": "历史配置",
823
- "History Time To Live": "历史的生存时间",
824
- Forms: "表单",
825
- "Form Key": "表单key",
826
- "Form Fields": "表单字段",
827
- "Business Key": "业务key",
828
- "Form Field": "表单字段",
829
- ID: "编号",
830
- Type: "类型",
831
- Label: "名称",
832
- "Default Value": "默认值",
833
- "Default Flow": "默认流转路径",
834
- "Conditional Flow": "条件流转路径",
835
- "Sequence Flow": "普通流转路径",
836
- Validation: "校验",
837
- "Add Constraint": "添加约束",
838
- Config: "配置",
839
- Properties: "属性",
840
- "Add Property": "添加属性",
841
- Value: "值",
842
- Listeners: "监听器",
843
- "Execution Listener": "执行监听",
844
- "Event Type": "事件类型",
845
- "Listener Type": "监听器类型",
846
- "Java Class": "Java类",
847
- Expression: "表达式",
848
- "Must provide a value": "必须提供一个值",
849
- "Delegate Expression": "代理表达式",
850
- Script: "脚本",
851
- "Script Format": "脚本格式",
852
- "Script Type": "脚本类型",
853
- "Inline Script": "内联脚本",
854
- "External Script": "外部脚本",
855
- Resource: "资源",
856
- "Field Injection": "字段注入",
857
- Extensions: "扩展",
858
- "Input/Output": "输入/输出",
859
- "Input Parameters": "输入参数",
860
- "Output Parameters": "输出参数",
861
- Parameters: "参数",
862
- "Output Parameter": "输出参数",
863
- "Timer Definition Type": "定时器定义类型",
864
- "Timer Definition": "定时器定义",
865
- Date: "日期",
866
- Duration: "持续",
867
- Cycle: "循环",
868
- Signal: "信号",
869
- "Signal Name": "信号名称",
870
- Escalation: "升级",
871
- Error: "错误",
872
- "Link Name": "链接名称",
873
- Condition: "条件名称",
874
- "Variable Name": "变量名称",
875
- "Variable Event": "变量事件",
876
- "Specify more than one variable change event as a comma separated list.": "多个变量事件以逗号隔开",
877
- "Wait for Completion": "等待完成",
878
- "Activity Ref": "活动参考",
879
- "Version Tag": "版本标签",
880
- Executable: "可执行文件",
881
- "External Task Configuration": "扩展任务配置",
882
- "Task Priority": "任务优先级",
883
- External: "外部",
884
- Connector: "连接器",
885
- "Must configure Connector": "必须配置连接器",
886
- "Connector Id": "连接器编号",
887
- Implementation: "实现方式",
888
- "Field Injections": "字段注入",
889
- Fields: "字段",
890
- "Result Variable": "结果变量",
891
- Topic: "主题",
892
- "Configure Connector": "配置连接器",
893
- "Input Parameter": "输入参数",
894
- Assignee: "代理人",
895
- "Candidate Users": "候选用户",
896
- "Candidate Groups": "候选组",
897
- "Due Date": "到期时间",
898
- "Follow Up Date": "跟踪日期",
899
- Priority: "优先级",
900
- "The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
901
- "The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
902
- Variables: "变量",
903
- "Candidate Starter Configuration": "候选人起动器配置",
904
- "Candidate Starter Groups": "候选人起动器组",
905
- "This maps to the process definition key.": "这映射到流程定义键。",
906
- "Candidate Starter Users": "候选人起动器的用户",
907
- "Specify more than one user as a comma separated list.": "指定多个用户作为逗号分隔的列表。",
908
- "Tasklist Configuration": "Tasklist配置",
909
- Startable: "启动",
910
- "Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。",
911
- "Create element": "创建元素",
912
- "Empty Pool": "空池",
913
- Gateways: "网关",
914
- "Sub Processes": "子流程",
915
- "Append element": "追加元素",
916
- "Boundary Event": "边界事件",
917
- "Data Store Reference": "数据存储引用",
918
- "Data Object Reference": "数据对象引用",
919
- Participants: "参与者",
920
- Events: "事件",
921
- Data: "数据",
922
- TextAnnotation: "文本说明",
923
- Tasks: "任务"
924
- }, J = [
925
- {
926
- name: "commentInForm",
927
- isAttr: !0,
928
- type: "Boolean"
929
- },
930
- {
931
- name: "commentOrder",
932
- isAttr: !0,
933
- type: "Number"
934
- },
935
- {
936
- name: "commentNodeIds",
937
- isAttr: !0,
938
- type: "String"
939
- },
940
- {
941
- name: "commentLabel",
942
- isAttr: !0,
943
- type: "String"
944
- },
945
- {
946
- name: "requiredComment",
947
- isAttr: !0,
948
- type: "String"
949
- }
950
- ], ee = {
951
- name: "Camunda",
952
- uri: "http://camunda.org/schema/1.0/bpmn",
953
- prefix: "camunda",
954
- xml: {
955
- tagAlias: "lowerCase"
956
- },
957
- associations: [],
958
- types: [
959
- {
960
- name: "Definitions",
961
- isAbstract: !0,
962
- extends: ["bpmn:Definitions"],
963
- properties: [
964
- {
965
- name: "diagramRelationId",
966
- isAttr: !0,
967
- type: "String"
968
- }
969
- ]
970
- },
971
- {
972
- name: "InOutBinding",
973
- superClass: ["Element"],
974
- isAbstract: !0,
975
- properties: [
976
- {
977
- name: "source",
978
- isAttr: !0,
979
- type: "String"
980
- },
981
- {
982
- name: "sourceExpression",
983
- isAttr: !0,
984
- type: "String"
985
- },
986
- {
987
- name: "target",
988
- isAttr: !0,
989
- type: "String"
990
- },
991
- {
992
- name: "businessKey",
993
- isAttr: !0,
994
- type: "String"
995
- },
996
- {
997
- name: "local",
998
- isAttr: !0,
999
- type: "Boolean",
1000
- default: !1
1001
- },
1002
- {
1003
- name: "variables",
1004
- isAttr: !0,
1005
- type: "String"
1006
- }
1007
- ]
1008
- },
1009
- {
1010
- name: "In",
1011
- superClass: ["InOutBinding"],
1012
- meta: {
1013
- allowedIn: ["bpmn:CallActivity", "bpmn:SignalEventDefinition"]
1014
- }
1015
- },
1016
- {
1017
- name: "Out",
1018
- superClass: ["InOutBinding"],
1019
- meta: {
1020
- allowedIn: ["bpmn:CallActivity"]
1021
- }
1022
- },
1023
- {
1024
- name: "AsyncCapable",
1025
- isAbstract: !0,
1026
- extends: ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"],
1027
- properties: [
1028
- {
1029
- name: "async",
1030
- isAttr: !0,
1031
- type: "Boolean",
1032
- default: !1
1033
- },
1034
- {
1035
- name: "asyncBefore",
1036
- isAttr: !0,
1037
- type: "Boolean",
1038
- default: !1
1039
- },
1040
- {
1041
- name: "asyncAfter",
1042
- isAttr: !0,
1043
- type: "Boolean",
1044
- default: !1
1045
- },
1046
- {
1047
- name: "exclusive",
1048
- isAttr: !0,
1049
- type: "Boolean",
1050
- default: !0
1051
- }
1052
- ]
1053
- },
1054
- {
1055
- name: "JobPriorized",
1056
- isAbstract: !0,
1057
- extends: ["bpmn:Process", "camunda:AsyncCapable"],
1058
- properties: [
1059
- {
1060
- name: "jobPriority",
1061
- isAttr: !0,
1062
- type: "String"
1063
- }
1064
- ]
1065
- },
1066
- {
1067
- name: "SignalEventDefinition",
1068
- isAbstract: !0,
1069
- extends: ["bpmn:SignalEventDefinition"],
1070
- properties: [
1071
- {
1072
- name: "async",
1073
- isAttr: !0,
1074
- type: "Boolean",
1075
- default: !1
1076
- }
1077
- ]
1078
- },
1079
- {
1080
- name: "ErrorEventDefinition",
1081
- isAbstract: !0,
1082
- extends: ["bpmn:ErrorEventDefinition"],
1083
- properties: [
1084
- {
1085
- name: "errorCodeVariable",
1086
- isAttr: !0,
1087
- type: "String"
1088
- },
1089
- {
1090
- name: "errorMessageVariable",
1091
- isAttr: !0,
1092
- type: "String"
1093
- }
1094
- ]
1095
- },
1096
- {
1097
- name: "Error",
1098
- isAbstract: !0,
1099
- extends: ["bpmn:Error"],
1100
- properties: [
1101
- {
1102
- name: "camunda:errorMessage",
1103
- isAttr: !0,
1104
- type: "String"
1105
- }
1106
- ]
1107
- },
1108
- {
1109
- name: "PotentialStarter",
1110
- superClass: ["Element"],
1111
- properties: [
1112
- {
1113
- name: "resourceAssignmentExpression",
1114
- type: "bpmn:ResourceAssignmentExpression"
1115
- }
1116
- ]
1117
- },
1118
- {
1119
- name: "FormSupported",
1120
- isAbstract: !0,
1121
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
1122
- properties: [
1123
- {
1124
- name: "formHandlerClass",
1125
- isAttr: !0,
1126
- type: "String"
1127
- },
1128
- {
1129
- name: "formKey",
1130
- isAttr: !0,
1131
- type: "String"
1132
- }
1133
- ]
1134
- },
1135
- {
1136
- name: "TemplateSupported",
1137
- isAbstract: !0,
1138
- extends: ["bpmn:Process", "bpmn:FlowElement"],
1139
- properties: [
1140
- {
1141
- name: "modelerTemplate",
1142
- isAttr: !0,
1143
- type: "String"
1144
- },
1145
- {
1146
- name: "modelerTemplateVersion",
1147
- isAttr: !0,
1148
- type: "Integer"
1149
- }
1150
- ]
1151
- },
1152
- {
1153
- name: "Initiator",
1154
- isAbstract: !0,
1155
- extends: ["bpmn:StartEvent"],
1156
- properties: [
1157
- {
1158
- name: "initiator",
1159
- isAttr: !0,
1160
- type: "String"
1161
- }
1162
- ]
1163
- },
1164
- {
1165
- name: "ScriptTask",
1166
- isAbstract: !0,
1167
- extends: ["bpmn:ScriptTask"],
1168
- properties: [
1169
- {
1170
- name: "resultVariable",
1171
- isAttr: !0,
1172
- type: "String"
1173
- },
1174
- {
1175
- name: "resource",
1176
- isAttr: !0,
1177
- type: "String"
1178
- }
1179
- ]
1180
- },
1181
- {
1182
- name: "Process",
1183
- isAbstract: !0,
1184
- extends: ["bpmn:Process"],
1185
- properties: [
1186
- {
1187
- name: "candidateStarterGroups",
1188
- isAttr: !0,
1189
- type: "String"
1190
- },
1191
- {
1192
- name: "candidateStarterUsers",
1193
- isAttr: !0,
1194
- type: "String"
1195
- },
1196
- {
1197
- name: "versionTag",
1198
- isAttr: !0,
1199
- type: "String"
1200
- },
1201
- {
1202
- name: "historyTimeToLive",
1203
- isAttr: !0,
1204
- type: "String"
1205
- },
1206
- {
1207
- name: "isStartableInTasklist",
1208
- isAttr: !0,
1209
- type: "Boolean",
1210
- default: !0
1211
- }
1212
- ]
1213
- },
1214
- {
1215
- name: "EscalationEventDefinition",
1216
- isAbstract: !0,
1217
- extends: ["bpmn:EscalationEventDefinition"],
1218
- properties: [
1219
- {
1220
- name: "escalationCodeVariable",
1221
- isAttr: !0,
1222
- type: "String"
1223
- }
1224
- ]
1225
- },
1226
- {
1227
- name: "FormalExpression",
1228
- isAbstract: !0,
1229
- extends: ["bpmn:FormalExpression"],
1230
- properties: [
1231
- {
1232
- name: "resource",
1233
- isAttr: !0,
1234
- type: "String"
1235
- }
1236
- ]
1237
- },
1238
- {
1239
- name: "Assignable",
1240
- extends: ["bpmn:UserTask"],
1241
- properties: [
1242
- {
1243
- name: "assignee",
1244
- isAttr: !0,
1245
- type: "String"
1246
- },
1247
- {
1248
- name: "candidateUsers",
1249
- isAttr: !0,
1250
- type: "String"
1251
- },
1252
- {
1253
- name: "candidateGroups",
1254
- isAttr: !0,
1255
- type: "String"
1256
- },
1257
- {
1258
- name: "dueDate",
1259
- isAttr: !0,
1260
- type: "String"
1261
- },
1262
- {
1263
- name: "followUpDate",
1264
- isAttr: !0,
1265
- type: "String"
1266
- },
1267
- {
1268
- name: "priority",
1269
- isAttr: !0,
1270
- type: "String"
1271
- },
1272
- ...J
1273
- ]
1274
- },
1275
- {
1276
- name: "CallActivity",
1277
- extends: ["bpmn:CallActivity"],
1278
- properties: [
1279
- {
1280
- name: "calledElementBinding",
1281
- isAttr: !0,
1282
- type: "String",
1283
- default: "latest"
1284
- },
1285
- {
1286
- name: "calledElementVersion",
1287
- isAttr: !0,
1288
- type: "String"
1289
- },
1290
- {
1291
- name: "calledElementVersionTag",
1292
- isAttr: !0,
1293
- type: "String"
1294
- },
1295
- {
1296
- name: "calledElementTenantId",
1297
- isAttr: !0,
1298
- type: "String"
1299
- },
1300
- {
1301
- name: "caseRef",
1302
- isAttr: !0,
1303
- type: "String"
1304
- },
1305
- {
1306
- name: "caseBinding",
1307
- isAttr: !0,
1308
- type: "String",
1309
- default: "latest"
1310
- },
1311
- {
1312
- name: "caseVersion",
1313
- isAttr: !0,
1314
- type: "String"
1315
- },
1316
- {
1317
- name: "caseTenantId",
1318
- isAttr: !0,
1319
- type: "String"
1320
- },
1321
- {
1322
- name: "variableMappingClass",
1323
- isAttr: !0,
1324
- type: "String"
1325
- },
1326
- {
1327
- name: "variableMappingDelegateExpression",
1328
- isAttr: !0,
1329
- type: "String"
1330
- }
1331
- ]
1332
- },
1333
- {
1334
- name: "ServiceTaskLike",
1335
- extends: ["bpmn:ServiceTask", "bpmn:BusinessRuleTask", "bpmn:SendTask", "bpmn:MessageEventDefinition"],
1336
- properties: [
1337
- {
1338
- name: "expression",
1339
- isAttr: !0,
1340
- type: "String"
1341
- },
1342
- {
1343
- name: "class",
1344
- isAttr: !0,
1345
- type: "String"
1346
- },
1347
- {
1348
- name: "delegateExpression",
1349
- isAttr: !0,
1350
- type: "String"
1351
- },
1352
- {
1353
- name: "resultVariable",
1354
- isAttr: !0,
1355
- type: "String"
1356
- }
1357
- ]
1358
- },
1359
- {
1360
- name: "DmnCapable",
1361
- extends: ["bpmn:BusinessRuleTask"],
1362
- properties: [
1363
- {
1364
- name: "decisionRef",
1365
- isAttr: !0,
1366
- type: "String"
1367
- },
1368
- {
1369
- name: "decisionRefBinding",
1370
- isAttr: !0,
1371
- type: "String",
1372
- default: "latest"
1373
- },
1374
- {
1375
- name: "decisionRefVersion",
1376
- isAttr: !0,
1377
- type: "String"
1378
- },
1379
- {
1380
- name: "mapDecisionResult",
1381
- isAttr: !0,
1382
- type: "String",
1383
- default: "resultList"
1384
- },
1385
- {
1386
- name: "decisionRefTenantId",
1387
- isAttr: !0,
1388
- type: "String"
1389
- }
1390
- ]
1391
- },
1392
- {
1393
- name: "ExternalCapable",
1394
- extends: ["camunda:ServiceTaskLike"],
1395
- properties: [
1396
- {
1397
- name: "type",
1398
- isAttr: !0,
1399
- type: "String"
1400
- },
1401
- {
1402
- name: "topic",
1403
- isAttr: !0,
1404
- type: "String"
1405
- }
1406
- ]
1407
- },
1408
- {
1409
- name: "TaskPriorized",
1410
- extends: ["bpmn:Process", "camunda:ExternalCapable"],
1411
- properties: [
1412
- {
1413
- name: "taskPriority",
1414
- isAttr: !0,
1415
- type: "String"
1416
- }
1417
- ]
1418
- },
1419
- {
1420
- name: "Properties",
1421
- superClass: ["Element"],
1422
- meta: {
1423
- allowedIn: ["*"]
1424
- },
1425
- properties: [
1426
- {
1427
- name: "values",
1428
- type: "Property",
1429
- isMany: !0
1430
- }
1431
- ]
1432
- },
1433
- {
1434
- name: "Property",
1435
- superClass: ["Element"],
1436
- properties: [
1437
- {
1438
- name: "id",
1439
- type: "String",
1440
- isAttr: !0
1441
- },
1442
- {
1443
- name: "name",
1444
- type: "String",
1445
- isAttr: !0
1446
- },
1447
- {
1448
- name: "value",
1449
- type: "String",
1450
- isAttr: !0
1451
- }
1452
- ]
1453
- },
1454
- {
1455
- name: "Connector",
1456
- superClass: ["Element"],
1457
- meta: {
1458
- allowedIn: ["camunda:ServiceTaskLike"]
1459
- },
1460
- properties: [
1461
- {
1462
- name: "inputOutput",
1463
- type: "InputOutput"
1464
- },
1465
- {
1466
- name: "connectorId",
1467
- type: "String"
1468
- }
1469
- ]
1470
- },
1471
- {
1472
- name: "InputOutput",
1473
- superClass: ["Element"],
1474
- meta: {
1475
- allowedIn: ["bpmn:FlowNode", "camunda:Connector"]
1476
- },
1477
- properties: [
1478
- {
1479
- name: "inputOutput",
1480
- type: "InputOutput"
1481
- },
1482
- {
1483
- name: "connectorId",
1484
- type: "String"
1485
- },
1486
- {
1487
- name: "inputParameters",
1488
- isMany: !0,
1489
- type: "InputParameter"
1490
- },
1491
- {
1492
- name: "outputParameters",
1493
- isMany: !0,
1494
- type: "OutputParameter"
1495
- }
1496
- ]
1497
- },
1498
- {
1499
- name: "InputOutputParameter",
1500
- properties: [
1501
- {
1502
- name: "name",
1503
- isAttr: !0,
1504
- type: "String"
1505
- },
1506
- {
1507
- name: "value",
1508
- isBody: !0,
1509
- type: "String"
1510
- },
1511
- {
1512
- name: "definition",
1513
- type: "InputOutputParameterDefinition"
1514
- }
1515
- ]
1516
- },
1517
- {
1518
- name: "InputOutputParameterDefinition",
1519
- isAbstract: !0
1520
- },
1521
- {
1522
- name: "List",
1523
- superClass: ["InputOutputParameterDefinition"],
1524
- properties: [
1525
- {
1526
- name: "items",
1527
- isMany: !0,
1528
- type: "InputOutputParameterDefinition"
1529
- }
1530
- ]
1531
- },
1532
- {
1533
- name: "Map",
1534
- superClass: ["InputOutputParameterDefinition"],
1535
- properties: [
1536
- {
1537
- name: "entries",
1538
- isMany: !0,
1539
- type: "Entry"
1540
- }
1541
- ]
1542
- },
1543
- {
1544
- name: "Entry",
1545
- properties: [
1546
- {
1547
- name: "key",
1548
- isAttr: !0,
1549
- type: "String"
1550
- },
1551
- {
1552
- name: "value",
1553
- isBody: !0,
1554
- type: "String"
1555
- },
1556
- {
1557
- name: "definition",
1558
- type: "InputOutputParameterDefinition"
1559
- }
1560
- ]
1561
- },
1562
- {
1563
- name: "Value",
1564
- superClass: ["InputOutputParameterDefinition"],
1565
- properties: [
1566
- {
1567
- name: "id",
1568
- isAttr: !0,
1569
- type: "String"
1570
- },
1571
- {
1572
- name: "name",
1573
- isAttr: !0,
1574
- type: "String"
1575
- },
1576
- {
1577
- name: "value",
1578
- isBody: !0,
1579
- type: "String"
1580
- }
1581
- ]
1582
- },
1583
- {
1584
- name: "Script",
1585
- superClass: ["InputOutputParameterDefinition"],
1586
- properties: [
1587
- {
1588
- name: "scriptFormat",
1589
- isAttr: !0,
1590
- type: "String"
1591
- },
1592
- {
1593
- name: "resource",
1594
- isAttr: !0,
1595
- type: "String"
1596
- },
1597
- {
1598
- name: "value",
1599
- isBody: !0,
1600
- type: "String"
1601
- }
1602
- ]
1603
- },
1604
- {
1605
- name: "Field",
1606
- superClass: ["Element"],
1607
- meta: {
1608
- allowedIn: ["camunda:ServiceTaskLike", "camunda:ExecutionListener", "camunda:TaskListener"]
1609
- },
1610
- properties: [
1611
- {
1612
- name: "name",
1613
- isAttr: !0,
1614
- type: "String"
1615
- },
1616
- {
1617
- name: "expression",
1618
- type: "String"
1619
- },
1620
- {
1621
- name: "stringValue",
1622
- isAttr: !0,
1623
- type: "String"
1624
- },
1625
- {
1626
- name: "string",
1627
- type: "String"
1628
- }
1629
- ]
1630
- },
1631
- {
1632
- name: "InputParameter",
1633
- superClass: ["InputOutputParameter"]
1634
- },
1635
- {
1636
- name: "OutputParameter",
1637
- superClass: ["InputOutputParameter"]
1638
- },
1639
- {
1640
- name: "Collectable",
1641
- isAbstract: !0,
1642
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
1643
- superClass: ["camunda:AsyncCapable"],
1644
- properties: [
1645
- {
1646
- name: "collection",
1647
- isAttr: !0,
1648
- type: "String"
1649
- },
1650
- {
1651
- name: "elementVariable",
1652
- isAttr: !0,
1653
- type: "String"
1654
- }
1655
- ]
1656
- },
1657
- {
1658
- name: "FailedJobRetryTimeCycle",
1659
- superClass: ["Element"],
1660
- meta: {
1661
- allowedIn: ["camunda:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"]
1662
- },
1663
- properties: [
1664
- {
1665
- name: "body",
1666
- isBody: !0,
1667
- type: "String"
1668
- }
1669
- ]
1670
- },
1671
- {
1672
- name: "ExecutionListener",
1673
- superClass: ["Element"],
1674
- meta: {
1675
- allowedIn: [
1676
- "bpmn:Task",
1677
- "bpmn:ServiceTask",
1678
- "bpmn:UserTask",
1679
- "bpmn:BusinessRuleTask",
1680
- "bpmn:ScriptTask",
1681
- "bpmn:ReceiveTask",
1682
- "bpmn:ManualTask",
1683
- "bpmn:ExclusiveGateway",
1684
- "bpmn:SequenceFlow",
1685
- "bpmn:ParallelGateway",
1686
- "bpmn:InclusiveGateway",
1687
- "bpmn:EventBasedGateway",
1688
- "bpmn:StartEvent",
1689
- "bpmn:IntermediateCatchEvent",
1690
- "bpmn:IntermediateThrowEvent",
1691
- "bpmn:EndEvent",
1692
- "bpmn:BoundaryEvent",
1693
- "bpmn:CallActivity",
1694
- "bpmn:SubProcess",
1695
- "bpmn:Process"
1696
- ]
1697
- },
1698
- properties: [
1699
- {
1700
- name: "expression",
1701
- isAttr: !0,
1702
- type: "String"
1703
- },
1704
- {
1705
- name: "class",
1706
- isAttr: !0,
1707
- type: "String"
1708
- },
1709
- {
1710
- name: "delegateExpression",
1711
- isAttr: !0,
1712
- type: "String"
1713
- },
1714
- {
1715
- name: "event",
1716
- isAttr: !0,
1717
- type: "String"
1718
- },
1719
- {
1720
- name: "script",
1721
- type: "Script"
1722
- },
1723
- {
1724
- name: "fields",
1725
- type: "Field",
1726
- isMany: !0
1727
- }
1728
- ]
1729
- },
1730
- {
1731
- name: "TaskListener",
1732
- superClass: ["Element"],
1733
- meta: {
1734
- allowedIn: ["bpmn:UserTask"]
1735
- },
1736
- properties: [
1737
- {
1738
- name: "expression",
1739
- isAttr: !0,
1740
- type: "String"
1741
- },
1742
- {
1743
- name: "class",
1744
- isAttr: !0,
1745
- type: "String"
1746
- },
1747
- {
1748
- name: "delegateExpression",
1749
- isAttr: !0,
1750
- type: "String"
1751
- },
1752
- {
1753
- name: "event",
1754
- isAttr: !0,
1755
- type: "String"
1756
- },
1757
- {
1758
- name: "script",
1759
- type: "Script"
1760
- },
1761
- {
1762
- name: "fields",
1763
- type: "Field",
1764
- isMany: !0
1765
- },
1766
- {
1767
- name: "id",
1768
- type: "String",
1769
- isAttr: !0
1770
- },
1771
- {
1772
- name: "eventDefinitions",
1773
- type: "bpmn:TimerEventDefinition",
1774
- isMany: !0
1775
- }
1776
- ]
1777
- },
1778
- {
1779
- name: "FormProperty",
1780
- superClass: ["Element"],
1781
- meta: {
1782
- allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"]
1783
- },
1784
- properties: [
1785
- {
1786
- name: "id",
1787
- type: "String",
1788
- isAttr: !0
1789
- },
1790
- {
1791
- name: "name",
1792
- type: "String",
1793
- isAttr: !0
1794
- },
1795
- {
1796
- name: "type",
1797
- type: "String",
1798
- isAttr: !0
1799
- },
1800
- {
1801
- name: "required",
1802
- type: "String",
1803
- isAttr: !0
1804
- },
1805
- {
1806
- name: "readable",
1807
- type: "String",
1808
- isAttr: !0
1809
- },
1810
- {
1811
- name: "writable",
1812
- type: "String",
1813
- isAttr: !0
1814
- },
1815
- {
1816
- name: "variable",
1817
- type: "String",
1818
- isAttr: !0
1819
- },
1820
- {
1821
- name: "expression",
1822
- type: "String",
1823
- isAttr: !0
1824
- },
1825
- {
1826
- name: "datePattern",
1827
- type: "String",
1828
- isAttr: !0
1829
- },
1830
- {
1831
- name: "default",
1832
- type: "String",
1833
- isAttr: !0
1834
- },
1835
- {
1836
- name: "values",
1837
- type: "Value",
1838
- isMany: !0
1839
- }
1840
- ]
1841
- },
1842
- {
1843
- name: "FormData",
1844
- superClass: ["Element"],
1845
- meta: {
1846
- allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"]
1847
- },
1848
- properties: [
1849
- {
1850
- name: "fields",
1851
- type: "FormField",
1852
- isMany: !0
1853
- },
1854
- {
1855
- name: "businessKey",
1856
- type: "String",
1857
- isAttr: !0
1858
- }
1859
- ]
1860
- },
1861
- {
1862
- name: "FormField",
1863
- superClass: ["Element"],
1864
- properties: [
1865
- {
1866
- name: "id",
1867
- type: "String",
1868
- isAttr: !0
1869
- },
1870
- {
1871
- name: "label",
1872
- type: "String",
1873
- isAttr: !0
1874
- },
1875
- {
1876
- name: "type",
1877
- type: "String",
1878
- isAttr: !0
1879
- },
1880
- {
1881
- name: "datePattern",
1882
- type: "String",
1883
- isAttr: !0
1884
- },
1885
- {
1886
- name: "defaultValue",
1887
- type: "String",
1888
- isAttr: !0
1889
- },
1890
- {
1891
- name: "properties",
1892
- type: "Properties"
1893
- },
1894
- {
1895
- name: "validation",
1896
- type: "Validation"
1897
- },
1898
- {
1899
- name: "values",
1900
- type: "Value",
1901
- isMany: !0
1902
- }
1903
- ]
1904
- },
1905
- {
1906
- name: "Validation",
1907
- superClass: ["Element"],
1908
- properties: [
1909
- {
1910
- name: "constraints",
1911
- type: "Constraint",
1912
- isMany: !0
1913
- }
1914
- ]
1915
- },
1916
- {
1917
- name: "Constraint",
1918
- superClass: ["Element"],
1919
- properties: [
1920
- {
1921
- name: "name",
1922
- type: "String",
1923
- isAttr: !0
1924
- },
1925
- {
1926
- name: "config",
1927
- type: "String",
1928
- isAttr: !0
1929
- }
1930
- ]
1931
- },
1932
- {
1933
- name: "ConditionalEventDefinition",
1934
- isAbstract: !0,
1935
- extends: ["bpmn:ConditionalEventDefinition"],
1936
- properties: [
1937
- {
1938
- name: "variableName",
1939
- isAttr: !0,
1940
- type: "String"
1941
- },
1942
- {
1943
- name: "variableEvents",
1944
- isAttr: !0,
1945
- type: "String"
1946
- }
1947
- ]
1948
- }
1949
- ],
1950
- emumerations: []
1951
- }, te = {
1952
- name: "Activiti",
1953
- uri: "http://activiti.org/bpmn",
1954
- prefix: "activiti",
1955
- xml: {
1956
- tagAlias: "lowerCase"
1957
- },
1958
- associations: [],
1959
- types: [
1960
- {
1961
- name: "Definitions",
1962
- isAbstract: !0,
1963
- extends: ["bpmn:Definitions"],
1964
- properties: [
1965
- {
1966
- name: "diagramRelationId",
1967
- isAttr: !0,
1968
- type: "String"
1969
- }
1970
- ]
1971
- },
1972
- {
1973
- name: "InOutBinding",
1974
- superClass: ["Element"],
1975
- isAbstract: !0,
1976
- properties: [
1977
- {
1978
- name: "source",
1979
- isAttr: !0,
1980
- type: "String"
1981
- },
1982
- {
1983
- name: "sourceExpression",
1984
- isAttr: !0,
1985
- type: "String"
1986
- },
1987
- {
1988
- name: "target",
1989
- isAttr: !0,
1990
- type: "String"
1991
- },
1992
- {
1993
- name: "businessKey",
1994
- isAttr: !0,
1995
- type: "String"
1996
- },
1997
- {
1998
- name: "local",
1999
- isAttr: !0,
2000
- type: "Boolean",
2001
- default: !1
2002
- },
2003
- {
2004
- name: "variables",
2005
- isAttr: !0,
2006
- type: "String"
2007
- }
2008
- ]
2009
- },
2010
- {
2011
- name: "In",
2012
- superClass: ["InOutBinding"],
2013
- meta: {
2014
- allowedIn: ["bpmn:CallActivity"]
2015
- }
2016
- },
2017
- {
2018
- name: "Out",
2019
- superClass: ["InOutBinding"],
2020
- meta: {
2021
- allowedIn: ["bpmn:CallActivity"]
2022
- }
2023
- },
2024
- {
2025
- name: "AsyncCapable",
2026
- isAbstract: !0,
2027
- extends: ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"],
2028
- properties: [
2029
- {
2030
- name: "async",
2031
- isAttr: !0,
2032
- type: "Boolean",
2033
- default: !1
2034
- },
2035
- {
2036
- name: "asyncBefore",
2037
- isAttr: !0,
2038
- type: "Boolean",
2039
- default: !1
2040
- },
2041
- {
2042
- name: "asyncAfter",
2043
- isAttr: !0,
2044
- type: "Boolean",
2045
- default: !1
2046
- },
2047
- {
2048
- name: "exclusive",
2049
- isAttr: !0,
2050
- type: "Boolean",
2051
- default: !0
2052
- }
2053
- ]
2054
- },
2055
- {
2056
- name: "JobPriorized",
2057
- isAbstract: !0,
2058
- extends: ["bpmn:Process", "activiti:AsyncCapable"],
2059
- properties: [
2060
- {
2061
- name: "jobPriority",
2062
- isAttr: !0,
2063
- type: "String"
2064
- }
2065
- ]
2066
- },
2067
- {
2068
- name: "SignalEventDefinition",
2069
- isAbstract: !0,
2070
- extends: ["bpmn:SignalEventDefinition"],
2071
- properties: [
2072
- {
2073
- name: "async",
2074
- isAttr: !0,
2075
- type: "Boolean",
2076
- default: !1
2077
- }
2078
- ]
2079
- },
2080
- {
2081
- name: "ErrorEventDefinition",
2082
- isAbstract: !0,
2083
- extends: ["bpmn:ErrorEventDefinition"],
2084
- properties: [
2085
- {
2086
- name: "errorCodeVariable",
2087
- isAttr: !0,
2088
- type: "String"
2089
- },
2090
- {
2091
- name: "errorMessageVariable",
2092
- isAttr: !0,
2093
- type: "String"
2094
- }
2095
- ]
2096
- },
2097
- {
2098
- name: "Error",
2099
- isAbstract: !0,
2100
- extends: ["bpmn:Error"],
2101
- properties: [
2102
- {
2103
- name: "activiti:errorMessage",
2104
- isAttr: !0,
2105
- type: "String"
2106
- }
2107
- ]
2108
- },
2109
- {
2110
- name: "PotentialStarter",
2111
- superClass: ["Element"],
2112
- properties: [
2113
- {
2114
- name: "resourceAssignmentExpression",
2115
- type: "bpmn:ResourceAssignmentExpression"
2116
- }
2117
- ]
2118
- },
2119
- {
2120
- name: "FormSupported",
2121
- isAbstract: !0,
2122
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
2123
- properties: [
2124
- {
2125
- name: "formHandlerClass",
2126
- isAttr: !0,
2127
- type: "String"
2128
- },
2129
- {
2130
- name: "formKey",
2131
- isAttr: !0,
2132
- type: "String"
2133
- }
2134
- ]
2135
- },
2136
- {
2137
- name: "TemplateSupported",
2138
- isAbstract: !0,
2139
- extends: ["bpmn:Process", "bpmn:FlowElement"],
2140
- properties: [
2141
- {
2142
- name: "modelerTemplate",
2143
- isAttr: !0,
2144
- type: "String"
2145
- }
2146
- ]
2147
- },
2148
- {
2149
- name: "Initiator",
2150
- isAbstract: !0,
2151
- extends: ["bpmn:StartEvent"],
2152
- properties: [
2153
- {
2154
- name: "initiator",
2155
- isAttr: !0,
2156
- type: "String"
2157
- }
2158
- ]
2159
- },
2160
- {
2161
- name: "ScriptTask",
2162
- isAbstract: !0,
2163
- extends: ["bpmn:ScriptTask"],
2164
- properties: [
2165
- {
2166
- name: "resultVariable",
2167
- isAttr: !0,
2168
- type: "String"
2169
- },
2170
- {
2171
- name: "resource",
2172
- isAttr: !0,
2173
- type: "String"
2174
- }
2175
- ]
2176
- },
2177
- {
2178
- name: "Process",
2179
- isAbstract: !0,
2180
- extends: ["bpmn:Process"],
2181
- properties: [
2182
- {
2183
- name: "candidateStarterGroups",
2184
- isAttr: !0,
2185
- type: "String"
2186
- },
2187
- {
2188
- name: "candidateStarterUsers",
2189
- isAttr: !0,
2190
- type: "String"
2191
- },
2192
- {
2193
- name: "versionTag",
2194
- isAttr: !0,
2195
- type: "String"
2196
- },
2197
- {
2198
- name: "historyTimeToLive",
2199
- isAttr: !0,
2200
- type: "String"
2201
- },
2202
- {
2203
- name: "isStartableInTasklist",
2204
- isAttr: !0,
2205
- type: "Boolean",
2206
- default: !0
2207
- },
2208
- {
2209
- name: "executionListener",
2210
- isAbstract: !0,
2211
- type: "Expression"
2212
- }
2213
- ]
2214
- },
2215
- {
2216
- name: "EscalationEventDefinition",
2217
- isAbstract: !0,
2218
- extends: ["bpmn:EscalationEventDefinition"],
2219
- properties: [
2220
- {
2221
- name: "escalationCodeVariable",
2222
- isAttr: !0,
2223
- type: "String"
2224
- }
2225
- ]
2226
- },
2227
- {
2228
- name: "FormalExpression",
2229
- isAbstract: !0,
2230
- extends: ["bpmn:FormalExpression"],
2231
- properties: [
2232
- {
2233
- name: "resource",
2234
- isAttr: !0,
2235
- type: "String"
2236
- }
2237
- ]
2238
- },
2239
- {
2240
- name: "multiinstance_type",
2241
- superClass: ["Element"]
2242
- },
2243
- {
2244
- name: "multiinstance_condition",
2245
- superClass: ["Element"]
2246
- },
2247
- {
2248
- name: "Assignable",
2249
- extends: ["bpmn:UserTask"],
2250
- properties: [
2251
- {
2252
- name: "assignee",
2253
- isAttr: !0,
2254
- type: "String"
2255
- },
2256
- {
2257
- name: "candidateUsers",
2258
- isAttr: !0,
2259
- type: "String"
2260
- },
2261
- {
2262
- name: "candidateGroups",
2263
- isAttr: !0,
2264
- type: "String"
2265
- },
2266
- {
2267
- name: "dueDate",
2268
- isAttr: !0,
2269
- type: "String"
2270
- },
2271
- {
2272
- name: "followUpDate",
2273
- isAttr: !0,
2274
- type: "String"
2275
- },
2276
- {
2277
- name: "priority",
2278
- isAttr: !0,
2279
- type: "String"
2280
- },
2281
- {
2282
- name: "multiinstance_condition",
2283
- isAttr: !0,
2284
- type: "String"
2285
- },
2286
- ...J
2287
- ]
2288
- },
2289
- {
2290
- name: "CallActivity",
2291
- extends: ["bpmn:CallActivity"],
2292
- properties: [
2293
- {
2294
- name: "calledElementBinding",
2295
- isAttr: !0,
2296
- type: "String",
2297
- default: "latest"
2298
- },
2299
- {
2300
- name: "calledElementVersion",
2301
- isAttr: !0,
2302
- type: "String"
2303
- },
2304
- {
2305
- name: "calledElementVersionTag",
2306
- isAttr: !0,
2307
- type: "String"
2308
- },
2309
- {
2310
- name: "calledElementTenantId",
2311
- isAttr: !0,
2312
- type: "String"
2313
- },
2314
- {
2315
- name: "caseRef",
2316
- isAttr: !0,
2317
- type: "String"
2318
- },
2319
- {
2320
- name: "caseBinding",
2321
- isAttr: !0,
2322
- type: "String",
2323
- default: "latest"
2324
- },
2325
- {
2326
- name: "caseVersion",
2327
- isAttr: !0,
2328
- type: "String"
2329
- },
2330
- {
2331
- name: "caseTenantId",
2332
- isAttr: !0,
2333
- type: "String"
2334
- },
2335
- {
2336
- name: "variableMappingClass",
2337
- isAttr: !0,
2338
- type: "String"
2339
- },
2340
- {
2341
- name: "variableMappingDelegateExpression",
2342
- isAttr: !0,
2343
- type: "String"
2344
- }
2345
- ]
2346
- },
2347
- {
2348
- name: "ServiceTaskLike",
2349
- extends: ["bpmn:ServiceTask", "bpmn:BusinessRuleTask", "bpmn:SendTask", "bpmn:MessageEventDefinition"],
2350
- properties: [
2351
- {
2352
- name: "expression",
2353
- isAttr: !0,
2354
- type: "String"
2355
- },
2356
- {
2357
- name: "class",
2358
- isAttr: !0,
2359
- type: "String"
2360
- },
2361
- {
2362
- name: "delegateExpression",
2363
- isAttr: !0,
2364
- type: "String"
2365
- },
2366
- {
2367
- name: "resultVariable",
2368
- isAttr: !0,
2369
- type: "String"
2370
- }
2371
- ]
2372
- },
2373
- {
2374
- name: "DmnCapable",
2375
- extends: ["bpmn:BusinessRuleTask"],
2376
- properties: [
2377
- {
2378
- name: "decisionRef",
2379
- isAttr: !0,
2380
- type: "String"
2381
- },
2382
- {
2383
- name: "decisionRefBinding",
2384
- isAttr: !0,
2385
- type: "String",
2386
- default: "latest"
2387
- },
2388
- {
2389
- name: "decisionRefVersion",
2390
- isAttr: !0,
2391
- type: "String"
2392
- },
2393
- {
2394
- name: "mapDecisionResult",
2395
- isAttr: !0,
2396
- type: "String",
2397
- default: "resultList"
2398
- },
2399
- {
2400
- name: "decisionRefTenantId",
2401
- isAttr: !0,
2402
- type: "String"
2403
- }
2404
- ]
2405
- },
2406
- {
2407
- name: "ExternalCapable",
2408
- extends: ["activiti:ServiceTaskLike"],
2409
- properties: [
2410
- {
2411
- name: "type",
2412
- isAttr: !0,
2413
- type: "String"
2414
- },
2415
- {
2416
- name: "topic",
2417
- isAttr: !0,
2418
- type: "String"
2419
- }
2420
- ]
2421
- },
2422
- {
2423
- name: "TaskPriorized",
2424
- extends: ["bpmn:Process", "activiti:ExternalCapable"],
2425
- properties: [
2426
- {
2427
- name: "taskPriority",
2428
- isAttr: !0,
2429
- type: "String"
2430
- }
2431
- ]
2432
- },
2433
- {
2434
- name: "Properties",
2435
- superClass: ["Element"],
2436
- meta: {
2437
- allowedIn: ["*"]
2438
- },
2439
- properties: [
2440
- {
2441
- name: "values",
2442
- type: "Property",
2443
- isMany: !0
2444
- }
2445
- ]
2446
- },
2447
- {
2448
- name: "Property",
2449
- superClass: ["Element"],
2450
- properties: [
2451
- {
2452
- name: "id",
2453
- type: "String",
2454
- isAttr: !0
2455
- },
2456
- {
2457
- name: "name",
2458
- type: "String",
2459
- isAttr: !0
2460
- },
2461
- {
2462
- name: "value",
2463
- type: "String",
2464
- isAttr: !0
2465
- }
2466
- ]
2467
- },
2468
- {
2469
- name: "Connector",
2470
- superClass: ["Element"],
2471
- meta: {
2472
- allowedIn: ["activiti:ServiceTaskLike"]
2473
- },
2474
- properties: [
2475
- {
2476
- name: "inputOutput",
2477
- type: "InputOutput"
2478
- },
2479
- {
2480
- name: "connectorId",
2481
- type: "String"
2482
- }
2483
- ]
2484
- },
2485
- {
2486
- name: "InputOutput",
2487
- superClass: ["Element"],
2488
- meta: {
2489
- allowedIn: ["bpmn:FlowNode", "activiti:Connector"]
2490
- },
2491
- properties: [
2492
- {
2493
- name: "inputOutput",
2494
- type: "InputOutput"
2495
- },
2496
- {
2497
- name: "connectorId",
2498
- type: "String"
2499
- },
2500
- {
2501
- name: "inputParameters",
2502
- isMany: !0,
2503
- type: "InputParameter"
2504
- },
2505
- {
2506
- name: "outputParameters",
2507
- isMany: !0,
2508
- type: "OutputParameter"
2509
- }
2510
- ]
2511
- },
2512
- {
2513
- name: "InputOutputParameter",
2514
- properties: [
2515
- {
2516
- name: "name",
2517
- isAttr: !0,
2518
- type: "String"
2519
- },
2520
- {
2521
- name: "value",
2522
- isBody: !0,
2523
- type: "String"
2524
- },
2525
- {
2526
- name: "definition",
2527
- type: "InputOutputParameterDefinition"
2528
- }
2529
- ]
2530
- },
2531
- {
2532
- name: "InputOutputParameterDefinition",
2533
- isAbstract: !0
2534
- },
2535
- {
2536
- name: "List",
2537
- superClass: ["InputOutputParameterDefinition"],
2538
- properties: [
2539
- {
2540
- name: "items",
2541
- isMany: !0,
2542
- type: "InputOutputParameterDefinition"
2543
- }
2544
- ]
2545
- },
2546
- {
2547
- name: "Map",
2548
- superClass: ["InputOutputParameterDefinition"],
2549
- properties: [
2550
- {
2551
- name: "entries",
2552
- isMany: !0,
2553
- type: "Entry"
2554
- }
2555
- ]
2556
- },
2557
- {
2558
- name: "Entry",
2559
- properties: [
2560
- {
2561
- name: "key",
2562
- isAttr: !0,
2563
- type: "String"
2564
- },
2565
- {
2566
- name: "value",
2567
- isBody: !0,
2568
- type: "String"
2569
- },
2570
- {
2571
- name: "definition",
2572
- type: "InputOutputParameterDefinition"
2573
- }
2574
- ]
2575
- },
2576
- {
2577
- name: "Value",
2578
- superClass: ["InputOutputParameterDefinition"],
2579
- properties: [
2580
- {
2581
- name: "id",
2582
- isAttr: !0,
2583
- type: "String"
2584
- },
2585
- {
2586
- name: "name",
2587
- isAttr: !0,
2588
- type: "String"
2589
- },
2590
- {
2591
- name: "value",
2592
- isBody: !0,
2593
- type: "String"
2594
- }
2595
- ]
2596
- },
2597
- {
2598
- name: "Script",
2599
- superClass: ["InputOutputParameterDefinition"],
2600
- properties: [
2601
- {
2602
- name: "scriptFormat",
2603
- isAttr: !0,
2604
- type: "String"
2605
- },
2606
- {
2607
- name: "resource",
2608
- isAttr: !0,
2609
- type: "String"
2610
- },
2611
- {
2612
- name: "value",
2613
- isBody: !0,
2614
- type: "String"
2615
- }
2616
- ]
2617
- },
2618
- {
2619
- name: "Field",
2620
- superClass: ["Element"],
2621
- meta: {
2622
- allowedIn: ["activiti:ServiceTaskLike", "activiti:ExecutionListener", "activiti:TaskListener"]
2623
- },
2624
- properties: [
2625
- {
2626
- name: "name",
2627
- isAttr: !0,
2628
- type: "String"
2629
- },
2630
- {
2631
- name: "expression",
2632
- type: "String"
2633
- },
2634
- {
2635
- name: "stringValue",
2636
- isAttr: !0,
2637
- type: "String"
2638
- },
2639
- {
2640
- name: "string",
2641
- type: "String"
2642
- }
2643
- ]
2644
- },
2645
- {
2646
- name: "InputParameter",
2647
- superClass: ["InputOutputParameter"]
2648
- },
2649
- {
2650
- name: "OutputParameter",
2651
- superClass: ["InputOutputParameter"]
2652
- },
2653
- {
2654
- name: "Collectable",
2655
- isAbstract: !0,
2656
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
2657
- superClass: ["activiti:AsyncCapable"],
2658
- properties: [
2659
- {
2660
- name: "collection",
2661
- isAttr: !0,
2662
- type: "String"
2663
- },
2664
- {
2665
- name: "elementVariable",
2666
- isAttr: !0,
2667
- type: "String"
2668
- }
2669
- ]
2670
- },
2671
- {
2672
- name: "FailedJobRetryTimeCycle",
2673
- superClass: ["Element"],
2674
- meta: {
2675
- allowedIn: ["activiti:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"]
2676
- },
2677
- properties: [
2678
- {
2679
- name: "body",
2680
- isBody: !0,
2681
- type: "String"
2682
- }
2683
- ]
2684
- },
2685
- {
2686
- name: "ExecutionListener",
2687
- superClass: ["Element"],
2688
- meta: {
2689
- allowedIn: [
2690
- "bpmn:Task",
2691
- "bpmn:ServiceTask",
2692
- "bpmn:UserTask",
2693
- "bpmn:BusinessRuleTask",
2694
- "bpmn:ScriptTask",
2695
- "bpmn:ReceiveTask",
2696
- "bpmn:ManualTask",
2697
- "bpmn:ExclusiveGateway",
2698
- "bpmn:SequenceFlow",
2699
- "bpmn:ParallelGateway",
2700
- "bpmn:InclusiveGateway",
2701
- "bpmn:EventBasedGateway",
2702
- "bpmn:StartEvent",
2703
- "bpmn:IntermediateCatchEvent",
2704
- "bpmn:IntermediateThrowEvent",
2705
- "bpmn:EndEvent",
2706
- "bpmn:BoundaryEvent",
2707
- "bpmn:CallActivity",
2708
- "bpmn:SubProcess",
2709
- "bpmn:Process"
2710
- ]
2711
- },
2712
- properties: [
2713
- {
2714
- name: "expression",
2715
- isAttr: !0,
2716
- type: "String"
2717
- },
2718
- {
2719
- name: "class",
2720
- isAttr: !0,
2721
- type: "String"
2722
- },
2723
- {
2724
- name: "delegateExpression",
2725
- isAttr: !0,
2726
- type: "String"
2727
- },
2728
- {
2729
- name: "event",
2730
- isAttr: !0,
2731
- type: "String"
2732
- },
2733
- {
2734
- name: "script",
2735
- type: "Script"
2736
- },
2737
- {
2738
- name: "fields",
2739
- type: "Field",
2740
- isMany: !0
2741
- }
2742
- ]
2743
- },
2744
- {
2745
- name: "TaskListener",
2746
- superClass: ["Element"],
2747
- meta: {
2748
- allowedIn: ["bpmn:UserTask"]
2749
- },
2750
- properties: [
2751
- {
2752
- name: "expression",
2753
- isAttr: !0,
2754
- type: "String"
2755
- },
2756
- {
2757
- name: "class",
2758
- isAttr: !0,
2759
- type: "String"
2760
- },
2761
- {
2762
- name: "delegateExpression",
2763
- isAttr: !0,
2764
- type: "String"
2765
- },
2766
- {
2767
- name: "event",
2768
- isAttr: !0,
2769
- type: "String"
2770
- },
2771
- {
2772
- name: "script",
2773
- type: "Script"
2774
- },
2775
- {
2776
- name: "fields",
2777
- type: "Field",
2778
- isMany: !0
2779
- }
2780
- ]
2781
- },
2782
- {
2783
- name: "FormProperty",
2784
- superClass: ["Element"],
2785
- meta: {
2786
- allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"]
2787
- },
2788
- properties: [
2789
- {
2790
- name: "id",
2791
- type: "String",
2792
- isAttr: !0
2793
- },
2794
- {
2795
- name: "name",
2796
- type: "String",
2797
- isAttr: !0
2798
- },
2799
- {
2800
- name: "type",
2801
- type: "String",
2802
- isAttr: !0
2803
- },
2804
- {
2805
- name: "required",
2806
- type: "String",
2807
- isAttr: !0
2808
- },
2809
- {
2810
- name: "readable",
2811
- type: "String",
2812
- isAttr: !0
2813
- },
2814
- {
2815
- name: "writable",
2816
- type: "String",
2817
- isAttr: !0
2818
- },
2819
- {
2820
- name: "variable",
2821
- type: "String",
2822
- isAttr: !0
2823
- },
2824
- {
2825
- name: "expression",
2826
- type: "String",
2827
- isAttr: !0
2828
- },
2829
- {
2830
- name: "datePattern",
2831
- type: "String",
2832
- isAttr: !0
2833
- },
2834
- {
2835
- name: "default",
2836
- type: "String",
2837
- isAttr: !0
2838
- },
2839
- {
2840
- name: "values",
2841
- type: "Value",
2842
- isMany: !0
2843
- }
2844
- ]
2845
- },
2846
- {
2847
- name: "FormProperty",
2848
- superClass: ["Element"],
2849
- properties: [
2850
- {
2851
- name: "id",
2852
- type: "String",
2853
- isAttr: !0
2854
- },
2855
- {
2856
- name: "label",
2857
- type: "String",
2858
- isAttr: !0
2859
- },
2860
- {
2861
- name: "type",
2862
- type: "String",
2863
- isAttr: !0
2864
- },
2865
- {
2866
- name: "datePattern",
2867
- type: "String",
2868
- isAttr: !0
2869
- },
2870
- {
2871
- name: "defaultValue",
2872
- type: "String",
2873
- isAttr: !0
2874
- },
2875
- {
2876
- name: "properties",
2877
- type: "Properties"
2878
- },
2879
- {
2880
- name: "validation",
2881
- type: "Validation"
2882
- },
2883
- {
2884
- name: "values",
2885
- type: "Value",
2886
- isMany: !0
2887
- }
2888
- ]
2889
- },
2890
- {
2891
- name: "Validation",
2892
- superClass: ["Element"],
2893
- properties: [
2894
- {
2895
- name: "constraints",
2896
- type: "Constraint",
2897
- isMany: !0
2898
- }
2899
- ]
2900
- },
2901
- {
2902
- name: "Constraint",
2903
- superClass: ["Element"],
2904
- properties: [
2905
- {
2906
- name: "name",
2907
- type: "String",
2908
- isAttr: !0
2909
- },
2910
- {
2911
- name: "config",
2912
- type: "String",
2913
- isAttr: !0
2914
- }
2915
- ]
2916
- },
2917
- {
2918
- name: "ConditionalEventDefinition",
2919
- isAbstract: !0,
2920
- extends: ["bpmn:ConditionalEventDefinition"],
2921
- properties: [
2922
- {
2923
- name: "variableName",
2924
- isAttr: !0,
2925
- type: "String"
2926
- },
2927
- {
2928
- name: "variableEvent",
2929
- isAttr: !0,
2930
- type: "String"
2931
- }
2932
- ]
2933
- }
2934
- ],
2935
- emumerations: []
2936
- }, ne = {
2937
- name: "Flowable",
2938
- uri: "http://flowable.org/bpmn",
2939
- prefix: "flowable",
2940
- xml: {
2941
- tagAlias: "lowerCase"
2942
- },
2943
- associations: [],
2944
- emumerations: [],
2945
- types: [
2946
- {
2947
- name: "InOutBinding",
2948
- superClass: ["Element"],
2949
- isAbstract: !0,
2950
- properties: [
2951
- {
2952
- name: "source",
2953
- isAttr: !0,
2954
- type: "String"
2955
- },
2956
- {
2957
- name: "sourceExpression",
2958
- isAttr: !0,
2959
- type: "String"
2960
- },
2961
- {
2962
- name: "target",
2963
- isAttr: !0,
2964
- type: "String"
2965
- },
2966
- {
2967
- name: "businessKey",
2968
- isAttr: !0,
2969
- type: "String"
2970
- },
2971
- {
2972
- name: "local",
2973
- isAttr: !0,
2974
- type: "Boolean",
2975
- default: !1
2976
- },
2977
- {
2978
- name: "variables",
2979
- isAttr: !0,
2980
- type: "String"
2981
- }
2982
- ]
2983
- },
2984
- {
2985
- name: "In",
2986
- superClass: ["InOutBinding"],
2987
- meta: {
2988
- allowedIn: ["bpmn:CallActivity"]
2989
- }
2990
- },
2991
- {
2992
- name: "Out",
2993
- superClass: ["InOutBinding"],
2994
- meta: {
2995
- allowedIn: ["bpmn:CallActivity"]
2996
- }
2997
- },
2998
- {
2999
- name: "AsyncCapable",
3000
- isAbstract: !0,
3001
- extends: ["bpmn:Activity", "bpmn:Gateway", "bpmn:Event"],
3002
- properties: [
3003
- {
3004
- name: "async",
3005
- isAttr: !0,
3006
- type: "Boolean",
3007
- default: !1
3008
- },
3009
- {
3010
- name: "asyncBefore",
3011
- isAttr: !0,
3012
- type: "Boolean",
3013
- default: !1
3014
- },
3015
- {
3016
- name: "asyncAfter",
3017
- isAttr: !0,
3018
- type: "Boolean",
3019
- default: !1
3020
- },
3021
- {
3022
- name: "exclusive",
3023
- isAttr: !0,
3024
- type: "Boolean",
3025
- default: !0
3026
- }
3027
- ]
3028
- },
3029
- {
3030
- name: "JobPriorized",
3031
- isAbstract: !0,
3032
- extends: ["bpmn:Process", "flowable:AsyncCapable"],
3033
- properties: [
3034
- {
3035
- name: "jobPriority",
3036
- isAttr: !0,
3037
- type: "String"
3038
- }
3039
- ]
3040
- },
3041
- {
3042
- name: "SignalEventDefinition",
3043
- isAbstract: !0,
3044
- extends: ["bpmn:SignalEventDefinition"],
3045
- properties: [
3046
- {
3047
- name: "async",
3048
- isAttr: !0,
3049
- type: "Boolean",
3050
- default: !1
3051
- }
3052
- ]
3053
- },
3054
- {
3055
- name: "ErrorEventDefinition",
3056
- isAbstract: !0,
3057
- extends: ["bpmn:ErrorEventDefinition"],
3058
- properties: [
3059
- {
3060
- name: "errorCodeVariable",
3061
- isAttr: !0,
3062
- type: "String"
3063
- },
3064
- {
3065
- name: "errorMessageVariable",
3066
- isAttr: !0,
3067
- type: "String"
3068
- }
3069
- ]
3070
- },
3071
- {
3072
- name: "Error",
3073
- isAbstract: !0,
3074
- extends: ["bpmn:Error"],
3075
- properties: [
3076
- {
3077
- name: "flowable:errorMessage",
3078
- isAttr: !0,
3079
- type: "String"
3080
- }
3081
- ]
3082
- },
3083
- {
3084
- name: "PotentialStarter",
3085
- superClass: ["Element"],
3086
- properties: [
3087
- {
3088
- name: "resourceAssignmentExpression",
3089
- type: "bpmn:ResourceAssignmentExpression"
3090
- }
3091
- ]
3092
- },
3093
- {
3094
- name: "FormSupported",
3095
- isAbstract: !0,
3096
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
3097
- properties: [
3098
- {
3099
- name: "formHandlerClass",
3100
- isAttr: !0,
3101
- type: "String"
3102
- },
3103
- {
3104
- name: "formKey",
3105
- isAttr: !0,
3106
- type: "String"
3107
- },
3108
- {
3109
- name: "formType",
3110
- isAttr: !0,
3111
- type: "String"
3112
- },
3113
- {
3114
- name: "formReadOnly",
3115
- isAttr: !0,
3116
- type: "Boolean",
3117
- default: !1
3118
- },
3119
- {
3120
- name: "formInit",
3121
- isAttr: !0,
3122
- type: "Boolean",
3123
- default: !0
3124
- }
3125
- ]
3126
- },
3127
- {
3128
- name: "TemplateSupported",
3129
- isAbstract: !0,
3130
- extends: ["bpmn:Process", "bpmn:FlowElement"],
3131
- properties: [
3132
- {
3133
- name: "modelerTemplate",
3134
- isAttr: !0,
3135
- type: "String"
3136
- }
3137
- ]
3138
- },
3139
- {
3140
- name: "Initiator",
3141
- isAbstract: !0,
3142
- extends: ["bpmn:StartEvent"],
3143
- properties: [
3144
- {
3145
- name: "initiator",
3146
- isAttr: !0,
3147
- type: "String"
3148
- }
3149
- ]
3150
- },
3151
- {
3152
- name: "ScriptTask",
3153
- isAbstract: !0,
3154
- extends: ["bpmn:ScriptTask"],
3155
- properties: [
3156
- {
3157
- name: "resultVariable",
3158
- isAttr: !0,
3159
- type: "String"
3160
- },
3161
- {
3162
- name: "resource",
3163
- isAttr: !0,
3164
- type: "String"
3165
- }
3166
- ]
3167
- },
3168
- {
3169
- name: "Process",
3170
- isAbstract: !0,
3171
- extends: ["bpmn:Process"],
3172
- properties: [
3173
- {
3174
- name: "candidateStarterGroups",
3175
- isAttr: !0,
3176
- type: "String"
3177
- },
3178
- {
3179
- name: "candidateStarterUsers",
3180
- isAttr: !0,
3181
- type: "String"
3182
- },
3183
- {
3184
- name: "versionTag",
3185
- isAttr: !0,
3186
- type: "String"
3187
- },
3188
- {
3189
- name: "historyTimeToLive",
3190
- isAttr: !0,
3191
- type: "String"
3192
- },
3193
- {
3194
- name: "isStartableInTasklist",
3195
- isAttr: !0,
3196
- type: "Boolean",
3197
- default: !0
3198
- }
3199
- ]
3200
- },
3201
- {
3202
- name: "EscalationEventDefinition",
3203
- isAbstract: !0,
3204
- extends: ["bpmn:EscalationEventDefinition"],
3205
- properties: [
3206
- {
3207
- name: "escalationCodeVariable",
3208
- isAttr: !0,
3209
- type: "String"
3210
- }
3211
- ]
3212
- },
3213
- {
3214
- name: "FormalExpression",
3215
- isAbstract: !0,
3216
- extends: ["bpmn:FormalExpression"],
3217
- properties: [
3218
- {
3219
- name: "resource",
3220
- isAttr: !0,
3221
- type: "String"
3222
- }
3223
- ]
3224
- },
3225
- {
3226
- name: "Assignable",
3227
- extends: ["bpmn:UserTask"],
3228
- properties: [
3229
- {
3230
- name: "assignee",
3231
- isAttr: !0,
3232
- type: "String"
3233
- },
3234
- {
3235
- name: "candidateUsers",
3236
- isAttr: !0,
3237
- type: "String"
3238
- },
3239
- {
3240
- name: "candidateGroups",
3241
- isAttr: !0,
3242
- type: "String"
3243
- },
3244
- {
3245
- name: "dueDate",
3246
- isAttr: !0,
3247
- type: "String"
3248
- },
3249
- {
3250
- name: "followUpDate",
3251
- isAttr: !0,
3252
- type: "String"
3253
- },
3254
- {
3255
- name: "priority",
3256
- isAttr: !0,
3257
- type: "String"
3258
- },
3259
- ...J
3260
- ]
3261
- },
3262
- {
3263
- name: "CallActivity",
3264
- extends: ["bpmn:CallActivity"],
3265
- properties: [
3266
- {
3267
- name: "calledElementBinding",
3268
- isAttr: !0,
3269
- type: "String",
3270
- default: "latest"
3271
- },
3272
- {
3273
- name: "calledElementVersion",
3274
- isAttr: !0,
3275
- type: "String"
3276
- },
3277
- {
3278
- name: "calledElementVersionTag",
3279
- isAttr: !0,
3280
- type: "String"
3281
- },
3282
- {
3283
- name: "calledElementTenantId",
3284
- isAttr: !0,
3285
- type: "String"
3286
- },
3287
- {
3288
- name: "caseRef",
3289
- isAttr: !0,
3290
- type: "String"
3291
- },
3292
- {
3293
- name: "caseBinding",
3294
- isAttr: !0,
3295
- type: "String",
3296
- default: "latest"
3297
- },
3298
- {
3299
- name: "caseVersion",
3300
- isAttr: !0,
3301
- type: "String"
3302
- },
3303
- {
3304
- name: "caseTenantId",
3305
- isAttr: !0,
3306
- type: "String"
3307
- },
3308
- {
3309
- name: "variableMappingClass",
3310
- isAttr: !0,
3311
- type: "String"
3312
- },
3313
- {
3314
- name: "variableMappingDelegateExpression",
3315
- isAttr: !0,
3316
- type: "String"
3317
- }
3318
- ]
3319
- },
3320
- {
3321
- name: "ServiceTaskLike",
3322
- extends: ["bpmn:ServiceTask", "bpmn:BusinessRuleTask", "bpmn:SendTask", "bpmn:MessageEventDefinition"],
3323
- properties: [
3324
- {
3325
- name: "expression",
3326
- isAttr: !0,
3327
- type: "String"
3328
- },
3329
- {
3330
- name: "class",
3331
- isAttr: !0,
3332
- type: "String"
3333
- },
3334
- {
3335
- name: "delegateExpression",
3336
- isAttr: !0,
3337
- type: "String"
3338
- },
3339
- {
3340
- name: "resultVariable",
3341
- isAttr: !0,
3342
- type: "String"
3343
- }
3344
- ]
3345
- },
3346
- {
3347
- name: "DmnCapable",
3348
- extends: ["bpmn:BusinessRuleTask"],
3349
- properties: [
3350
- {
3351
- name: "decisionRef",
3352
- isAttr: !0,
3353
- type: "String"
3354
- },
3355
- {
3356
- name: "decisionRefBinding",
3357
- isAttr: !0,
3358
- type: "String",
3359
- default: "latest"
3360
- },
3361
- {
3362
- name: "decisionRefVersion",
3363
- isAttr: !0,
3364
- type: "String"
3365
- },
3366
- {
3367
- name: "mapDecisionResult",
3368
- isAttr: !0,
3369
- type: "String",
3370
- default: "resultList"
3371
- },
3372
- {
3373
- name: "decisionRefTenantId",
3374
- isAttr: !0,
3375
- type: "String"
3376
- }
3377
- ]
3378
- },
3379
- {
3380
- name: "ExternalCapable",
3381
- extends: ["flowable:ServiceTaskLike"],
3382
- properties: [
3383
- {
3384
- name: "type",
3385
- isAttr: !0,
3386
- type: "String"
3387
- },
3388
- {
3389
- name: "topic",
3390
- isAttr: !0,
3391
- type: "String"
3392
- }
3393
- ]
3394
- },
3395
- {
3396
- name: "TaskPriorized",
3397
- extends: ["bpmn:Process", "flowable:ExternalCapable"],
3398
- properties: [
3399
- {
3400
- name: "taskPriority",
3401
- isAttr: !0,
3402
- type: "String"
3403
- }
3404
- ]
3405
- },
3406
- {
3407
- name: "Properties",
3408
- superClass: ["Element"],
3409
- meta: {
3410
- allowedIn: ["*"]
3411
- },
3412
- properties: [
3413
- {
3414
- name: "values",
3415
- type: "Property",
3416
- isMany: !0
3417
- }
3418
- ]
3419
- },
3420
- {
3421
- name: "Property",
3422
- superClass: ["Element"],
3423
- properties: [
3424
- {
3425
- name: "id",
3426
- type: "String",
3427
- isAttr: !0
3428
- },
3429
- {
3430
- name: "name",
3431
- type: "String",
3432
- isAttr: !0
3433
- },
3434
- {
3435
- name: "value",
3436
- type: "String",
3437
- isAttr: !0
3438
- }
3439
- ]
3440
- },
3441
- {
3442
- name: "Button",
3443
- superClass: ["Element"],
3444
- meta: {
3445
- allowedIn: ["bpmn:UserTask"]
3446
- },
3447
- properties: [
3448
- {
3449
- name: "id",
3450
- type: "String",
3451
- isAttr: !0
3452
- },
3453
- {
3454
- name: "name",
3455
- type: "String",
3456
- isAttr: !0
3457
- },
3458
- {
3459
- name: "code",
3460
- type: "String",
3461
- isAttr: !0
3462
- },
3463
- {
3464
- name: "isHide",
3465
- type: "String",
3466
- isAttr: !0
3467
- },
3468
- {
3469
- name: "next",
3470
- type: "String",
3471
- isAttr: !0
3472
- },
3473
- {
3474
- name: "sort",
3475
- type: "Integer",
3476
- isAttr: !0
3477
- }
3478
- ]
3479
- },
3480
- {
3481
- name: "Assignee",
3482
- superClass: ["Element"],
3483
- meta: {
3484
- allowedIn: ["bpmn:UserTask"]
3485
- },
3486
- properties: [
3487
- {
3488
- name: "id",
3489
- type: "String",
3490
- isAttr: !0
3491
- },
3492
- {
3493
- name: "type",
3494
- type: "String",
3495
- isAttr: !0
3496
- },
3497
- {
3498
- name: "value",
3499
- type: "String",
3500
- isAttr: !0
3501
- },
3502
- {
3503
- name: "condition",
3504
- type: "String",
3505
- isAttr: !0
3506
- },
3507
- {
3508
- name: "operationType",
3509
- type: "String",
3510
- isAttr: !0
3511
- },
3512
- {
3513
- name: "sort",
3514
- type: "Integer",
3515
- isAttr: !0
3516
- }
3517
- ]
3518
- },
3519
- {
3520
- name: "Connector",
3521
- superClass: ["Element"],
3522
- meta: {
3523
- allowedIn: ["flowable:ServiceTaskLike"]
3524
- },
3525
- properties: [
3526
- {
3527
- name: "inputOutput",
3528
- type: "InputOutput"
3529
- },
3530
- {
3531
- name: "connectorId",
3532
- type: "String"
3533
- }
3534
- ]
3535
- },
3536
- {
3537
- name: "InputOutput",
3538
- superClass: ["Element"],
3539
- meta: {
3540
- allowedIn: ["bpmn:FlowNode", "flowable:Connector"]
3541
- },
3542
- properties: [
3543
- {
3544
- name: "inputOutput",
3545
- type: "InputOutput"
3546
- },
3547
- {
3548
- name: "connectorId",
3549
- type: "String"
3550
- },
3551
- {
3552
- name: "inputParameters",
3553
- isMany: !0,
3554
- type: "InputParameter"
3555
- },
3556
- {
3557
- name: "outputParameters",
3558
- isMany: !0,
3559
- type: "OutputParameter"
3560
- }
3561
- ]
3562
- },
3563
- {
3564
- name: "InputOutputParameter",
3565
- properties: [
3566
- {
3567
- name: "name",
3568
- isAttr: !0,
3569
- type: "String"
3570
- },
3571
- {
3572
- name: "value",
3573
- isBody: !0,
3574
- type: "String"
3575
- },
3576
- {
3577
- name: "definition",
3578
- type: "InputOutputParameterDefinition"
3579
- }
3580
- ]
3581
- },
3582
- {
3583
- name: "InputOutputParameterDefinition",
3584
- isAbstract: !0
3585
- },
3586
- {
3587
- name: "List",
3588
- superClass: ["InputOutputParameterDefinition"],
3589
- properties: [
3590
- {
3591
- name: "items",
3592
- isMany: !0,
3593
- type: "InputOutputParameterDefinition"
3594
- }
3595
- ]
3596
- },
3597
- {
3598
- name: "Map",
3599
- superClass: ["InputOutputParameterDefinition"],
3600
- properties: [
3601
- {
3602
- name: "entries",
3603
- isMany: !0,
3604
- type: "Entry"
3605
- }
3606
- ]
3607
- },
3608
- {
3609
- name: "Entry",
3610
- properties: [
3611
- {
3612
- name: "key",
3613
- isAttr: !0,
3614
- type: "String"
3615
- },
3616
- {
3617
- name: "value",
3618
- isBody: !0,
3619
- type: "String"
3620
- },
3621
- {
3622
- name: "definition",
3623
- type: "InputOutputParameterDefinition"
3624
- }
3625
- ]
3626
- },
3627
- {
3628
- name: "Value",
3629
- superClass: ["InputOutputParameterDefinition"],
3630
- properties: [
3631
- {
3632
- name: "id",
3633
- isAttr: !0,
3634
- type: "String"
3635
- },
3636
- {
3637
- name: "name",
3638
- isAttr: !0,
3639
- type: "String"
3640
- },
3641
- {
3642
- name: "value",
3643
- isBody: !0,
3644
- type: "String"
3645
- }
3646
- ]
3647
- },
3648
- {
3649
- name: "Script",
3650
- superClass: ["InputOutputParameterDefinition"],
3651
- properties: [
3652
- {
3653
- name: "scriptFormat",
3654
- isAttr: !0,
3655
- type: "String"
3656
- },
3657
- {
3658
- name: "resource",
3659
- isAttr: !0,
3660
- type: "String"
3661
- },
3662
- {
3663
- name: "value",
3664
- isBody: !0,
3665
- type: "String"
3666
- }
3667
- ]
3668
- },
3669
- {
3670
- name: "Field",
3671
- superClass: ["Element"],
3672
- meta: {
3673
- allowedIn: ["flowable:ServiceTaskLike", "flowable:ExecutionListener", "flowable:TaskListener", "bpmn:ServiceTask"]
3674
- },
3675
- properties: [
3676
- {
3677
- name: "name",
3678
- isAttr: !0,
3679
- type: "String"
3680
- },
3681
- {
3682
- name: "expression",
3683
- type: "String"
3684
- },
3685
- {
3686
- name: "stringValue",
3687
- isAttr: !0,
3688
- type: "String"
3689
- },
3690
- {
3691
- name: "string",
3692
- type: "String"
3693
- },
3694
- {
3695
- name: "htmlVar",
3696
- type: "Expression"
3697
- }
3698
- ]
3699
- },
3700
- {
3701
- name: "ChildField",
3702
- superClass: ["Element"],
3703
- properties: [
3704
- {
3705
- name: "id",
3706
- type: "String",
3707
- isAttr: !0
3708
- },
3709
- {
3710
- name: "name",
3711
- type: "String",
3712
- isAttr: !0
3713
- },
3714
- {
3715
- name: "type",
3716
- type: "String",
3717
- isAttr: !0
3718
- },
3719
- {
3720
- name: "required",
3721
- type: "String",
3722
- isAttr: !0
3723
- },
3724
- {
3725
- name: "readable",
3726
- type: "String",
3727
- isAttr: !0
3728
- },
3729
- {
3730
- name: "writable",
3731
- type: "String",
3732
- isAttr: !0
3733
- },
3734
- {
3735
- name: "variable",
3736
- type: "String",
3737
- isAttr: !0
3738
- },
3739
- {
3740
- name: "expression",
3741
- type: "String",
3742
- isAttr: !0
3743
- },
3744
- {
3745
- name: "datePattern",
3746
- type: "String",
3747
- isAttr: !0
3748
- },
3749
- {
3750
- name: "default",
3751
- type: "String",
3752
- isAttr: !0
3753
- },
3754
- {
3755
- name: "values",
3756
- type: "Value",
3757
- isMany: !0
3758
- }
3759
- ]
3760
- },
3761
- {
3762
- name: "InputParameter",
3763
- superClass: ["InputOutputParameter"]
3764
- },
3765
- {
3766
- name: "OutputParameter",
3767
- superClass: ["InputOutputParameter"]
3768
- },
3769
- {
3770
- name: "Collectable",
3771
- isAbstract: !0,
3772
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
3773
- superClass: ["flowable:AsyncCapable"],
3774
- properties: [
3775
- {
3776
- name: "collection",
3777
- isAttr: !0,
3778
- type: "String"
3779
- },
3780
- {
3781
- name: "elementVariable",
3782
- isAttr: !0,
3783
- type: "String"
3784
- }
3785
- ]
3786
- },
3787
- {
3788
- name: "FailedJobRetryTimeCycle",
3789
- superClass: ["Element"],
3790
- meta: {
3791
- allowedIn: ["flowable:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"]
3792
- },
3793
- properties: [
3794
- {
3795
- name: "body",
3796
- isBody: !0,
3797
- type: "String"
3798
- }
3799
- ]
3800
- },
3801
- {
3802
- name: "ExecutionListener",
3803
- superClass: ["Element"],
3804
- meta: {
3805
- allowedIn: [
3806
- "bpmn:Task",
3807
- "bpmn:ServiceTask",
3808
- "bpmn:UserTask",
3809
- "bpmn:BusinessRuleTask",
3810
- "bpmn:ScriptTask",
3811
- "bpmn:ReceiveTask",
3812
- "bpmn:ManualTask",
3813
- "bpmn:ExclusiveGateway",
3814
- "bpmn:SequenceFlow",
3815
- "bpmn:ParallelGateway",
3816
- "bpmn:InclusiveGateway",
3817
- "bpmn:EventBasedGateway",
3818
- "bpmn:StartEvent",
3819
- "bpmn:IntermediateCatchEvent",
3820
- "bpmn:IntermediateThrowEvent",
3821
- "bpmn:EndEvent",
3822
- "bpmn:BoundaryEvent",
3823
- "bpmn:CallActivity",
3824
- "bpmn:SubProcess",
3825
- "bpmn:Process"
3826
- ]
3827
- },
3828
- properties: [
3829
- {
3830
- name: "expression",
3831
- isAttr: !0,
3832
- type: "String"
3833
- },
3834
- {
3835
- name: "class",
3836
- isAttr: !0,
3837
- type: "String"
3838
- },
3839
- {
3840
- name: "delegateExpression",
3841
- isAttr: !0,
3842
- type: "String"
3843
- },
3844
- {
3845
- name: "event",
3846
- isAttr: !0,
3847
- type: "String"
3848
- },
3849
- {
3850
- name: "script",
3851
- type: "Script"
3852
- },
3853
- {
3854
- name: "fields",
3855
- type: "Field",
3856
- isMany: !0
3857
- }
3858
- ]
3859
- },
3860
- {
3861
- name: "TaskListener",
3862
- superClass: ["Element"],
3863
- meta: {
3864
- allowedIn: ["bpmn:UserTask"]
3865
- },
3866
- properties: [
3867
- {
3868
- name: "expression",
3869
- isAttr: !0,
3870
- type: "String"
3871
- },
3872
- {
3873
- name: "class",
3874
- isAttr: !0,
3875
- type: "String"
3876
- },
3877
- {
3878
- name: "delegateExpression",
3879
- isAttr: !0,
3880
- type: "String"
3881
- },
3882
- {
3883
- name: "event",
3884
- isAttr: !0,
3885
- type: "String"
3886
- },
3887
- {
3888
- name: "script",
3889
- type: "Script"
3890
- },
3891
- {
3892
- name: "fields",
3893
- type: "Field",
3894
- isMany: !0
3895
- }
3896
- ]
3897
- },
3898
- {
3899
- name: "FormProperty",
3900
- superClass: ["Element"],
3901
- meta: {
3902
- allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"]
3903
- },
3904
- properties: [
3905
- {
3906
- name: "id",
3907
- type: "String",
3908
- isAttr: !0
3909
- },
3910
- {
3911
- name: "name",
3912
- type: "String",
3913
- isAttr: !0
3914
- },
3915
- {
3916
- name: "type",
3917
- type: "String",
3918
- isAttr: !0
3919
- },
3920
- {
3921
- name: "required",
3922
- type: "String",
3923
- isAttr: !0
3924
- },
3925
- {
3926
- name: "readable",
3927
- type: "String",
3928
- isAttr: !0
3929
- },
3930
- {
3931
- name: "writable",
3932
- type: "String",
3933
- isAttr: !0
3934
- },
3935
- {
3936
- name: "variable",
3937
- type: "String",
3938
- isAttr: !0
3939
- },
3940
- {
3941
- name: "expression",
3942
- type: "String",
3943
- isAttr: !0
3944
- },
3945
- {
3946
- name: "datePattern",
3947
- type: "String",
3948
- isAttr: !0
3949
- },
3950
- {
3951
- name: "default",
3952
- type: "String",
3953
- isAttr: !0
3954
- },
3955
- {
3956
- name: "values",
3957
- type: "Value",
3958
- isMany: !0
3959
- },
3960
- {
3961
- name: "children",
3962
- type: "ChildField",
3963
- isMany: !0
3964
- },
3965
- {
3966
- name: "extensionElements",
3967
- type: "bpmn:ExtensionElements",
3968
- isMany: !0
3969
- }
3970
- ]
3971
- },
3972
- {
3973
- name: "FormData",
3974
- superClass: ["Element"],
3975
- meta: {
3976
- allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"]
3977
- },
3978
- properties: [
3979
- {
3980
- name: "fields",
3981
- type: "FormField",
3982
- isMany: !0
3983
- },
3984
- {
3985
- name: "businessKey",
3986
- type: "String",
3987
- isAttr: !0
3988
- }
3989
- ]
3990
- },
3991
- {
3992
- name: "FormField",
3993
- superClass: ["Element"],
3994
- properties: [
3995
- {
3996
- name: "id",
3997
- type: "String",
3998
- isAttr: !0
3999
- },
4000
- {
4001
- name: "label",
4002
- type: "String",
4003
- isAttr: !0
4004
- },
4005
- {
4006
- name: "type",
4007
- type: "String",
4008
- isAttr: !0
4009
- },
4010
- {
4011
- name: "datePattern",
4012
- type: "String",
4013
- isAttr: !0
4014
- },
4015
- {
4016
- name: "defaultValue",
4017
- type: "String",
4018
- isAttr: !0
4019
- },
4020
- {
4021
- name: "properties",
4022
- type: "Properties"
4023
- },
4024
- {
4025
- name: "validation",
4026
- type: "Validation"
4027
- },
4028
- {
4029
- name: "values",
4030
- type: "Value",
4031
- isMany: !0
4032
- }
4033
- ]
4034
- },
4035
- {
4036
- name: "Validation",
4037
- superClass: ["Element"],
4038
- properties: [
4039
- {
4040
- name: "constraints",
4041
- type: "Constraint",
4042
- isMany: !0
4043
- }
4044
- ]
4045
- },
4046
- {
4047
- name: "Constraint",
4048
- superClass: ["Element"],
4049
- properties: [
4050
- {
4051
- name: "name",
4052
- type: "String",
4053
- isAttr: !0
4054
- },
4055
- {
4056
- name: "config",
4057
- type: "String",
4058
- isAttr: !0
4059
- }
4060
- ]
4061
- },
4062
- {
4063
- name: "ConditionalEventDefinition",
4064
- isAbstract: !0,
4065
- extends: ["bpmn:ConditionalEventDefinition"],
4066
- properties: [
4067
- {
4068
- name: "variableName",
4069
- isAttr: !0,
4070
- type: "String"
4071
- },
4072
- {
4073
- name: "variableEvent",
4074
- isAttr: !0,
4075
- type: "String"
4076
- }
4077
- ]
4078
- },
4079
- {
4080
- name: "Condition",
4081
- superClass: ["Element"],
4082
- meta: {
4083
- allowedIn: ["bpmn:SequenceFlow"]
4084
- },
4085
- properties: [
4086
- {
4087
- name: "id",
4088
- type: "String",
4089
- isAttr: !0
4090
- },
4091
- {
4092
- name: "field",
4093
- type: "String",
4094
- isAttr: !0
4095
- },
4096
- {
4097
- name: "compare",
4098
- type: "String",
4099
- isAttr: !0
4100
- },
4101
- {
4102
- name: "value",
4103
- type: "String",
4104
- isAttr: !0
4105
- },
4106
- {
4107
- name: "logic",
4108
- type: "String",
4109
- isAttr: !0
4110
- },
4111
- {
4112
- name: "sort",
4113
- type: "Integer",
4114
- isAttr: !0
4115
- }
4116
- ]
4117
- },
4118
- {
4119
- name: "AssigneeType",
4120
- superClass: ["Element"],
4121
- properties: [
4122
- {
4123
- name: "body",
4124
- isBody: !0,
4125
- type: "String"
4126
- }
4127
- ]
4128
- },
4129
- {
4130
- name: "AssigneeGroups",
4131
- superClass: ["Element"],
4132
- properties: [
4133
- {
4134
- name: "body",
4135
- isBody: !0,
4136
- type: "String"
4137
- }
4138
- ]
4139
- },
4140
- {
4141
- name: "AssigneeUsers",
4142
- superClass: ["Element"],
4143
- properties: [
4144
- {
4145
- name: "body",
4146
- isBody: !0,
4147
- type: "String"
4148
- }
4149
- ]
4150
- },
4151
- {
4152
- name: "AssigneeRules",
4153
- superClass: ["Element"],
4154
- properties: [
4155
- {
4156
- name: "body",
4157
- isBody: !0,
4158
- type: "String"
4159
- }
4160
- ]
4161
- }
4162
- ]
4163
- }, Ge = "*";
4164
- function C(n) {
4165
- const e = this;
4166
- n.on("moddleCopy.canCopyProperty", function(t) {
4167
- const i = t.property, r = t.parent;
4168
- return e.canCopyProperty(i, r);
4169
- });
4170
- }
4171
- C.$inject = ["eventBus"];
4172
- C.prototype.canCopyProperty = function(n, e) {
4173
- if (ue(n) && !je(n, e) || E(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || le(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || E(n, "camunda:In") && !this.canHostIn(e))
4174
- return !1;
4175
- };
4176
- C.prototype.canHostInputOutput = function(n) {
4177
- if (f(n, "camunda:Connector"))
4178
- return !0;
4179
- const t = f(n, "bpmn:FlowNode");
4180
- return !(!t || le(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || E(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
4181
- };
4182
- C.prototype.canHostConnector = function(n) {
4183
- const e = f(n, "camunda:ServiceTaskLike");
4184
- return E(e, "bpmn:MessageEventDefinition") ? f(n, "bpmn:IntermediateThrowEvent") || f(n, "bpmn:EndEvent") : !0;
4185
- };
4186
- C.prototype.canHostIn = function(n) {
4187
- return f(n, "bpmn:CallActivity") ? !0 : f(n, "bpmn:SignalEventDefinition") ? f(n, "bpmn:IntermediateThrowEvent") || f(n, "bpmn:EndEvent") : !0;
4188
- };
4189
- function E(n, e) {
4190
- return n && ce(n.$instanceOf) && n.$instanceOf(e);
4191
- }
4192
- function le(n, e) {
4193
- return T(e, function(t) {
4194
- return E(n, t);
4195
- });
4196
- }
4197
- function f(n, e) {
4198
- if (!e)
4199
- return n.$parent;
4200
- if (E(n, e))
4201
- return n;
4202
- if (n.$parent)
4203
- return f(n.$parent, e);
4204
- }
4205
- function je(n, e) {
4206
- const t = n.$type && n.$model.getTypeDescriptor(n.$type), i = t && t.meta && t.meta.allowedIn;
4207
- return !i || Je(i) ? !0 : T(i, function(r) {
4208
- return f(e, r);
4209
- });
4210
- }
4211
- function Je(n) {
4212
- return n.indexOf(Ge) !== -1;
4213
- }
4214
- const Ze = {
4215
- __init__: ["camundaModdleExtension"],
4216
- camundaModdleExtension: ["type", C]
4217
- }, He = {
4218
- FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
4219
- Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4220
- Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4221
- };
4222
- function Z(n, e) {
4223
- return n && typeof n.$instanceOf == "function" && n.$instanceOf(e);
4224
- }
4225
- function qe(n) {
4226
- return n && n.length;
4227
- }
4228
- function F(n, e) {
4229
- return qe(n) && T(n, function(t) {
4230
- return Z(t, e);
4231
- });
4232
- }
4233
- function We(n, e) {
4234
- return T(e, function(t) {
4235
- return Z(n, t);
4236
- });
4237
- }
4238
- function V(n, e, t) {
4239
- const i = e.name, r = He[i.replace(/activiti:/, "")];
4240
- return i === n && We(t, r);
4241
- }
4242
- function H(n) {
4243
- n.on(
4244
- "property.clone",
4245
- function(e) {
4246
- const t = e.newElement, i = e.propertyDescriptor;
4247
- this.canCloneProperty(t, i);
4248
- },
4249
- this
4250
- );
4251
- }
4252
- H.$inject = ["eventBus"];
4253
- H.prototype.canCloneProperty = function(n, e) {
4254
- if (V("activiti:FailedJobRetryTimeCycle", e, n))
4255
- return F(n.eventDefinitions, "bpmn:TimerEventDefinition") || F(n.eventDefinitions, "bpmn:SignalEventDefinition") || Z(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4256
- if (V("activiti:Connector", e, n) || V("activiti:Field", e, n))
4257
- return F(n.eventDefinitions, "bpmn:MessageEventDefinition");
4258
- };
4259
- const Xe = {
4260
- __init__: ["ActivitiModdleExtension"],
4261
- ActivitiModdleExtension: ["type", H]
4262
- }, Ke = {
4263
- FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
4264
- Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4265
- Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4266
- };
4267
- function q(n, e) {
4268
- return n && typeof n.$instanceOf == "function" && n.$instanceOf(e);
4269
- }
4270
- function Ye(n) {
4271
- return n && n.length;
4272
- }
4273
- function L(n, e) {
4274
- return Ye(n) && T(n, function(t) {
4275
- return q(t, e);
4276
- });
4277
- }
4278
- function Qe(n, e) {
4279
- return T(e, function(t) {
4280
- return q(n, t);
4281
- });
4282
- }
4283
- function N(n, e, t) {
4284
- const i = e.name, r = Ke[i.replace(/flowable:/, "")];
4285
- return i === n && Qe(t, r);
4286
- }
4287
- function W(n) {
4288
- n.on(
4289
- "property.clone",
4290
- function(e) {
4291
- const t = e.newElement, i = e.propertyDescriptor;
4292
- this.canCloneProperty(t, i);
4293
- },
4294
- this
4295
- );
4296
- }
4297
- W.$inject = ["eventBus"];
4298
- W.prototype.canCloneProperty = function(n, e) {
4299
- if (N("flowable:FailedJobRetryTimeCycle", e, n))
4300
- return L(n.eventDefinitions, "bpmn:TimerEventDefinition") || L(n.eventDefinitions, "bpmn:SignalEventDefinition") || q(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4301
- if (N("flowable:Connector", e, n) || N("flowable:Field", e, n))
4302
- return L(n.eventDefinitions, "bpmn:MessageEventDefinition");
4303
- };
4304
- const et = {
4305
- __init__: ["FlowableModdleExtension"],
4306
- FlowableModdleExtension: ["type", W]
4307
- };
4308
- re.registerLanguage("xml", Ee);
4309
- re.registerLanguage("json", Te);
4310
- const tt = {
4311
- name: "ProcessDesigner",
4312
- components: {
4313
- HighlightJS: Ce
4314
- },
4315
- componentName: "MyProcessDesigner",
4316
- props: {
4317
- value: String,
4318
- // xml 字符串
4319
- processId: String,
4320
- processName: String,
4321
- translations: Object,
4322
- // 自定义的翻译文件
4323
- options: {
4324
- type: Object,
4325
- default: () => ({})
4326
- },
4327
- // 自定义的翻译文件
4328
- additionalModel: [Object, Array],
4329
- // 自定义model
4330
- moddleExtension: Object,
4331
- // 自定义moddle
4332
- onlyCustomizeAddi: {
4333
- type: Boolean,
4334
- default: !1
4335
- },
4336
- onlyCustomizeModdle: {
4337
- type: Boolean,
4338
- default: !1
4339
- },
4340
- simulation: {
4341
- type: Boolean,
4342
- default: !0
4343
- },
4344
- keyboard: {
4345
- type: Boolean,
4346
- default: !0
4347
- },
4348
- prefix: {
4349
- type: String,
4350
- default: "camunda"
4351
- },
4352
- events: {
4353
- type: Array,
4354
- default: () => ["element.click"]
4355
- },
4356
- headerButtonSize: {
4357
- type: String,
4358
- default: "small",
4359
- validator: (n) => ["default", "medium", "small", "mini"].indexOf(n) !== -1
4360
- },
4361
- headerButtonType: {
4362
- type: String,
4363
- default: "primary",
4364
- validator: (n) => ["default", "primary", "success", "warning", "danger", "info"].indexOf(n) !== -1
4365
- },
4366
- extendTypes: Array
4367
- },
4368
- data() {
4369
- return {
4370
- defaultZoom: 1,
4371
- previewModelVisible: !1,
4372
- simulationStatus: !1,
4373
- previewResult: "",
4374
- previewType: "xml",
4375
- recoverable: !1,
4376
- revocable: !1
4377
- };
4378
- },
4379
- computed: {
4380
- additionalModules() {
4381
- const n = [];
4382
- if (this.onlyCustomizeAddi)
4383
- return K(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
4384
- K(this.additionalModel) ? n.push(...this.additionalModel) : this.additionalModel && n.push(this.additionalModel);
4385
- const e = {
4386
- translate: ["value", ze(this.translations || Ue)]
4387
- };
4388
- return n.push(e), this.simulation && n.push(he), n.push(Ae), this.prefix === "camunda" && n.push(Ze), this.prefix === "flowable" && n.push(et), this.prefix === "activiti" && n.push(Xe), n;
4389
- },
4390
- moddleExtensions() {
4391
- const n = {};
4392
- if (this.onlyCustomizeModdle)
4393
- return this.moddleExtension || null;
4394
- if (this.moddleExtension)
4395
- for (const e in this.moddleExtension)
4396
- n[e] = this.moddleExtension[e];
4397
- return this.prefix === "activiti" && (n.activiti = {
4398
- ...te,
4399
- types: [...te.types, ...this.extendTypes || []]
4400
- }), this.prefix === "flowable" && (n.flowable = {
4401
- ...ne,
4402
- types: [...ne.types, ...this.extendTypes || []]
4403
- }), this.prefix === "camunda" && (n.camunda = {
4404
- ...ee,
4405
- types: [...ee.types, ...this.extendTypes || []]
4406
- }), n;
4407
- }
4408
- },
4409
- mounted() {
4410
- this.initBpmnModeler(), this.createNewDiagram(this.value), this.$once("hook:beforeDestroy", () => {
4411
- this.bpmnModeler && this.bpmnModeler.destroy(), this.$emit("destroy", this.bpmnModeler), this.bpmnModeler = null;
4412
- });
4413
- },
4414
- methods: {
4415
- initBpmnModeler() {
4416
- this.bpmnModeler || (this.bpmnModeler = R(
4417
- new Se({
4418
- container: this.$refs["bpmn-canvas"],
4419
- keyboard: this.keyboard ? { bindTo: document } : null,
4420
- additionalModules: this.additionalModules,
4421
- moddleExtensions: this.moddleExtensions,
4422
- ...this.options
4423
- })
4424
- ), this.$emit("init-finished", this.bpmnModeler), this.initModelListeners());
4425
- },
4426
- initModelListeners() {
4427
- const n = this.bpmnModeler.get("eventBus"), e = this;
4428
- this.events.forEach((t) => {
4429
- n.on(t, (i) => {
4430
- const r = t.replace(/\./g, "-"), a = i ? i.element : null;
4431
- e.$emit(r, a, i);
4432
- });
4433
- }), n.on("commandStack.changed", async (t) => {
4434
- try {
4435
- this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
4436
- const { xml: i } = await this.bpmnModeler.saveXML({ format: !0 });
4437
- this.$emit("commandStack-changed", t), this.$emit("input", i), this.$emit("change", i);
4438
- } catch (i) {
4439
- console.error(`[Process Designer Warn]: ${i.message || i}`);
4440
- }
4441
- }), this.bpmnModeler.on("canvas.viewbox.changed", ({ viewbox: t }) => {
4442
- this.$emit("canvas-viewbox-changed", { viewbox: t });
4443
- const { scale: i } = t;
4444
- this.defaultZoom = Math.floor(i * 100) / 100;
4445
- });
4446
- },
4447
- /* 创建新的流程图 */
4448
- async createNewDiagram(n) {
4449
- const e = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, i = n || Ne(e, t, this.prefix);
4450
- try {
4451
- const { warnings: r } = await this.bpmnModeler.importXML(i);
4452
- this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), r != null && r.length;
4453
- } catch (r) {
4454
- console.error(`[Process Designer Warn]: ${(r == null ? void 0 : r.message) || r}`);
4455
- }
4456
- },
4457
- // 下载流程图到本地
4458
- /**
4459
- * @param {string} type
4460
- * @param {*} name
4461
- */
4462
- async downloadProcess(n, e = "diagram") {
4463
- try {
4464
- const { err: i, xml: r } = await this.bpmnModeler.saveXML();
4465
- i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
4466
- const a = new X(), { definitions: p } = a.xml2js(r);
4467
- if (e = p.process._name || e, n === "xml" || n === "bpmn") {
4468
- const { href: o, filename: y } = this.setEncoded(n.toUpperCase(), e, r);
4469
- t(o, y);
4470
- } else {
4471
- const { err: o, svg: y } = await this.bpmnModeler.saveSVG();
4472
- if (o)
4473
- return console.error(o);
4474
- const { href: S, filename: l } = this.setEncoded("SVG", e, y);
4475
- t(S, l);
4476
- }
4477
- } catch (i) {
4478
- console.error(`[Process Designer Warn ]: ${i.message || i}`);
4479
- }
4480
- function t(i, r) {
4481
- if (i && r) {
4482
- const a = document.createElement("a");
4483
- a.download = r, a.href = i, a.click(), URL.revokeObjectURL(a.href);
4484
- }
4485
- }
4486
- },
4487
- // 根据所需类型进行转码并返回下载地址
4488
- setEncoded(n, e = "diagram", t) {
4489
- const i = encodeURIComponent(t);
4490
- return {
4491
- filename: `${e}.${n}`,
4492
- href: `data:application/${n === "svg" ? "text/xml" : "bpmn20-xml"};charset=UTF-8,${i}`,
4493
- data: t
4494
- };
4495
- },
4496
- // 加载本地文件
4497
- importLocalFile() {
4498
- const n = this, e = this.$refs.refFile.files[0], t = new FileReader();
4499
- t.readAsText(e), t.onload = function() {
4500
- const i = this.result;
4501
- n.createNewDiagram(i);
4502
- };
4503
- },
4504
- /* ------------------------------------------------ refs methods ------------------------------------------------------ */
4505
- downloadProcessAsXml() {
4506
- this.downloadProcess("xml");
4507
- },
4508
- downloadProcessAsBpmn() {
4509
- this.downloadProcess("bpmn");
4510
- },
4511
- downloadProcessAsSvg() {
4512
- this.downloadProcess("svg");
4513
- },
4514
- processSimulation() {
4515
- var n;
4516
- this.simulationStatus = !this.simulationStatus, this.simulation && ((n = this.bpmnModeler) == null || n.get("toggleMode").toggleMode());
4517
- },
4518
- processRedo() {
4519
- this.bpmnModeler.get("commandStack").redo();
4520
- },
4521
- processUndo() {
4522
- this.bpmnModeler.get("commandStack").undo();
4523
- },
4524
- processZoomIn(n = 0.1) {
4525
- const e = Math.floor(this.defaultZoom * 100 + n * 100) / 100;
4526
- if (e > 4)
4527
- throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");
4528
- this.defaultZoom = e, this.bpmnModeler.get("canvas").zoom(this.defaultZoom);
4529
- },
4530
- processZoomOut(n = 0.1) {
4531
- const e = Math.floor(this.defaultZoom * 100 - n * 100) / 100;
4532
- if (e < 0.2)
4533
- throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");
4534
- this.defaultZoom = e, this.bpmnModeler.get("canvas").zoom(this.defaultZoom);
4535
- },
4536
- processZoomTo(n = 1) {
4537
- if (n < 0.2)
4538
- throw new Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");
4539
- if (n > 4)
4540
- throw new Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");
4541
- this.defaultZoom = n, this.bpmnModeler.get("canvas").zoom(n);
4542
- },
4543
- processReZoom() {
4544
- this.defaultZoom = 1, this.bpmnModeler.get("canvas").zoom("fit-viewport", "auto");
4545
- },
4546
- processRestart() {
4547
- this.recoverable = !1, this.revocable = !1, this.createNewDiagram(null);
4548
- },
4549
- elementsAlign(n) {
4550
- const e = this.bpmnModeler.get("alignElements"), i = this.bpmnModeler.get("selection").get();
4551
- if (!i || i.length <= 1) {
4552
- this.$message.warning("请按住 Shift 键选择多个元素对齐");
4553
- return;
4554
- }
4555
- this.$confirm("自动对齐可能造成图形变形,是否继续?", "警告", {
4556
- confirmButtonText: "确定",
4557
- cancelButtonText: "取消",
4558
- type: "warning"
4559
- }).then(() => e.trigger(i, n));
4560
- },
4561
- /* ----------------------------- 方法结束 --------------------------------- */
4562
- previewProcessXML() {
4563
- this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: n }) => {
4564
- this.previewResult = n, this.previewType = "xml", this.previewModelVisible = !0;
4565
- });
4566
- },
4567
- previewProcessJson() {
4568
- const n = new X();
4569
- this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
4570
- const { definitions: t } = n.xml2js(e);
4571
- t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
4572
- });
4573
- }
4574
- }
4575
- };
4576
- var nt = function() {
4577
- var e = this, t = e._self._c;
4578
- return t("div", { staticClass: "my-process-designer" }, [t("div", { staticClass: "my-process-designer__header" }, [e._t("control-header", function() {
4579
- return [t("ElButtonGroup", { key: "file-control" }, [e._t("toolbar-buttons"), e.simulation ? t("ElTooltip", { attrs: { effect: "light", content: "导入流程" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-folder-opened" }, on: { click: function(i) {
4580
- return e.$refs.refFile.click();
4581
- } } }, [e._v(" 导入 ")])], 1) : e._e(), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
4582
- return [t("ElButton", { attrs: { size: e.headerButtonSize, type: "text" }, on: { click: function(i) {
4583
- return e.downloadProcessAsXml();
4584
- } } }, [e._v("下载为XML文件")]), t("br"), t("ElButton", { attrs: { size: e.headerButtonSize, type: "text" }, on: { click: function(i) {
4585
- return e.downloadProcessAsSvg();
4586
- } } }, [e._v("下载为SVG文件")]), t("br"), t("ElButton", { attrs: { size: e.headerButtonSize, type: "text" }, on: { click: function(i) {
4587
- return e.downloadProcessAsBpmn();
4588
- } } }, [e._v("下载为BPMN文件")])];
4589
- }, proxy: !0 }]) }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-download" } }, [e._v("下载")])], 1), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
4590
- return [t("ElButton", { attrs: { size: e.headerButtonSize, type: "text" }, on: { click: e.previewProcessXML } }, [e._v("预览XML")]), t("br"), t("ElButton", { attrs: { size: e.headerButtonSize, type: "text" }, on: { click: e.previewProcessJson } }, [e._v("预览JSON")])];
4591
- }, proxy: !0 }]) }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-view" } }, [e._v("预览")])], 1), e.simulation ? t("ElTooltip", { attrs: { effect: "light", content: e.simulationStatus ? "退出模拟" : "开启模拟" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-cpu" }, on: { click: e.processSimulation } }, [e._v(" 模拟 ")])], 1) : e._e()], 2), t("ElButtonGroup", { key: "align-control" }, [t("ElTooltip", { attrs: { effect: "light", content: "向左对齐" } }, [t("ElButton", { staticClass: "align align-left", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4592
- return e.elementsAlign("left");
4593
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "向右对齐" } }, [t("ElButton", { staticClass: "align align-right", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4594
- return e.elementsAlign("right");
4595
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "向上对齐" } }, [t("ElButton", { staticClass: "align align-top", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4596
- return e.elementsAlign("top");
4597
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "向下对齐" } }, [t("ElButton", { staticClass: "align align-bottom", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4598
- return e.elementsAlign("bottom");
4599
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "水平居中" } }, [t("ElButton", { staticClass: "align align-center", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4600
- return e.elementsAlign("center");
4601
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "垂直居中" } }, [t("ElButton", { staticClass: "align align-middle", attrs: { size: e.headerButtonSize, icon: "el-icon-s-data" }, on: { click: function(i) {
4602
- return e.elementsAlign("middle");
4603
- } } })], 1)], 1), t("ElButtonGroup", { key: "scale-control" }, [t("ElTooltip", { attrs: { effect: "light", content: "缩小视图" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, disabled: e.defaultZoom < 0.2, icon: "el-icon-zoom-out" }, on: { click: function(i) {
4604
- return e.processZoomOut();
4605
- } } })], 1), t("ElButton", { attrs: { size: e.headerButtonSize } }, [e._v(e._s(`${Math.floor(e.defaultZoom * 10 * 10)}%`))]), t("ElTooltip", { attrs: { effect: "light", content: "放大视图" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, disabled: e.defaultZoom > 4, icon: "el-icon-zoom-in" }, on: { click: function(i) {
4606
- return e.processZoomIn();
4607
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "重置视图并居中" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, icon: "el-icon-c-scale-to-original" }, on: { click: function(i) {
4608
- return e.processReZoom();
4609
- } } })], 1)], 1), t("ElButtonGroup", { key: "stack-control" }, [t("ElTooltip", { attrs: { effect: "light", content: "撤销" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, disabled: !e.revocable, icon: "el-icon-refresh-left" }, on: { click: function(i) {
4610
- return e.processUndo();
4611
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "恢复" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, disabled: !e.recoverable, icon: "el-icon-refresh-right" }, on: { click: function(i) {
4612
- return e.processRedo();
4613
- } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "重新绘制" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, icon: "el-icon-refresh" }, on: { click: e.processRestart } })], 1)], 1)];
4614
- }), t("input", { ref: "refFile", staticStyle: { display: "none" }, attrs: { id: "files", type: "file", accept: ".xml, .bpmn" }, on: { change: e.importLocalFile } })], 2), t("div", { staticClass: "my-process-designer__container" }, [t("div", { ref: "bpmn-canvas", staticClass: "my-process-designer__canvas flow-background-image" })]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { title: "预览", width: "60vw", height: "60vh", visible: e.previewModelVisible, "body-padding": !1, "destroy-on-close": "" }, on: { "update:visible": function(i) {
4615
- e.previewModelVisible = i;
4616
- } } }, [t("HighlightJS", { attrs: { language: e.previewType, code: e.previewResult } })], 1)], 1);
4617
- }, it = [], rt = /* @__PURE__ */ U(
4618
- tt,
4619
- nt,
4620
- it,
4621
- !1,
4622
- null,
4623
- null
4624
- );
4625
- const at = rt.exports, st = {
4626
- name: "FlowDesigner",
4627
- components: {
4628
- PropertiesPanel: Ve,
4629
- ProcessDesigner: at
4630
- },
4631
- props: {
4632
- /**
4633
- * bpmnXML
4634
- */
4635
- value: String,
4636
- /**
4637
- * 是否使用侧栏
4638
- */
4639
- usePanel: {
4640
- type: Boolean,
4641
- default: !0
4642
- },
4643
- /**
4644
- * 使用的配置面板
4645
- */
4646
- useTabs: Array,
4647
- /**
4648
- * 拓展类型
4649
- */
4650
- extendTypes: Array,
4651
- /**
4652
- * 配置上下文信息
4653
- */
4654
- context: Object,
4655
- panelType: {
4656
- type: String
4657
- }
4658
- },
4659
- data() {
4660
- return {
4661
- modeler: null,
4662
- reloadIndex: 0,
4663
- controlForm: {
4664
- processId: "",
4665
- processName: "",
4666
- simulation: !0,
4667
- labelEditing: !1,
4668
- labelVisible: !1,
4669
- prefix: "flowable",
4670
- headerButtonSize: "mini",
4671
- additionalModel: R([xe, Ie, Oe])
4672
- }
4673
- };
4674
- },
4675
- methods: {
4676
- initModeler(n) {
4677
- this.modeler = n;
4678
- },
4679
- async refresh() {
4680
- await this.$nextTick(), await this.$refs.processDesigner.createNewDiagram(this.value);
4681
- }
4682
- }
4683
- };
4684
- var ot = function() {
4685
- var e = this, t = e._self._c;
4686
- return t("div", { staticClass: "flow-designer" }, [t("ProcessDesigner", e._b({ key: `designer-${e.reloadIndex}`, ref: "processDesigner", attrs: { value: e.value, "extend-types": e.extendTypes, options: {
4687
- taskResizingEnabled: !0,
4688
- eventResizingEnabled: !0
4689
- }, keyboard: "" }, on: { input: (i) => e.$emit("input", i), "init-finished": e.initModeler }, scopedSlots: e._u([{ key: "toolbar-buttons", fn: function() {
4690
- return [e._t("toolbar-buttons", null, { modeler: e.modeler })];
4691
- }, proxy: !0 }], null, !0) }, "ProcessDesigner", e.controlForm, !1)), e.usePanel && (e.useTabs === null || e.useTabs === void 0 || e.useTabs.length > 0) ? t("PropertiesPanel", { key: `penal-${e.reloadIndex}`, staticClass: "process-panel", attrs: { "panel-type": e.panelType, "use-tabs": e.useTabs, "bpmn-modeler": e.modeler, context: e.context, prefix: e.controlForm.prefix }, scopedSlots: e._u([{ key: "task", fn: function({ id: i, bpmnInstances: r, element: a, type: p }) {
4692
- return [e._t("task", null, { id: i, bpmnInstances: r, element: a, type: p })];
4693
- } }, { key: "form", fn: function({ id: i, bpmnInstances: r, element: a, type: p }) {
4694
- return [e._t("form", null, { id: i, bpmnInstances: r, element: a, type: p })];
4695
- } }, { key: "extend", fn: function({ id: i, bpmnInstances: r, element: a, type: p }) {
4696
- return [e._t("extend", null, { id: i, bpmnInstances: r, element: a, type: p })];
4697
- } }], null, !0) }) : e._e()], 1);
4698
- }, lt = [], pt = /* @__PURE__ */ U(
4699
- st,
4700
- ot,
4701
- lt,
4702
- !1,
4703
- null,
4704
- null
4705
- );
4706
- const Ft = pt.exports;
4707
- export {
4708
- Ft as default
4709
- };
1
+ import { t as e } from "../chunks/FlowDesigner.uJYFfKpR.mjs";
2
+ export { e as default };