@web-utils/component 2.8.15 → 2.8.16

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