@aranzatech/diagrams-bpmn 0.2.14 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +34 -4
  2. package/dist/{catalog-xOMF2ifW.d.cts → catalog-DAGDhO-D.d.cts} +1 -1
  3. package/dist/{catalog-CK3_4cOb.d.ts → catalog-Q1QmKLDD.d.ts} +1 -1
  4. package/dist/{chunk-YUE5EM3W.js → chunk-334WN4JZ.js} +276 -107
  5. package/dist/chunk-334WN4JZ.js.map +1 -0
  6. package/dist/chunk-77L6O76M.js +3 -0
  7. package/dist/chunk-77L6O76M.js.map +1 -0
  8. package/dist/{chunk-QSMP34CT.js → chunk-CPFUQM6H.js} +80 -44
  9. package/dist/chunk-CPFUQM6H.js.map +1 -0
  10. package/dist/chunk-FFWJA5BV.js +163 -0
  11. package/dist/chunk-FFWJA5BV.js.map +1 -0
  12. package/dist/{chunk-FBTGIYZS.js → chunk-JEGYVEJO.js} +80 -3
  13. package/dist/{chunk-FBTGIYZS.js.map → chunk-JEGYVEJO.js.map} +1 -1
  14. package/dist/chunk-TB6V4S5N.js +104 -0
  15. package/dist/chunk-TB6V4S5N.js.map +1 -0
  16. package/dist/{chunk-IMW6RG6F.js → chunk-X54NHLBA.js} +43 -190
  17. package/dist/chunk-X54NHLBA.js.map +1 -0
  18. package/dist/{chunk-UAWLUDKC.js → chunk-YAYZW45I.js} +481 -26
  19. package/dist/chunk-YAYZW45I.js.map +1 -0
  20. package/dist/edges/index.cjs +78 -42
  21. package/dist/edges/index.cjs.map +1 -1
  22. package/dist/edges/index.js +1 -1
  23. package/dist/elements/index.cjs +78 -0
  24. package/dist/elements/index.cjs.map +1 -1
  25. package/dist/elements/index.d.cts +24 -5
  26. package/dist/elements/index.d.ts +24 -5
  27. package/dist/elements/index.js +1 -1
  28. package/dist/elk-QT7H4252.js +6 -0
  29. package/dist/elk-QT7H4252.js.map +1 -0
  30. package/dist/extensions/index.cjs +108 -0
  31. package/dist/extensions/index.cjs.map +1 -0
  32. package/dist/extensions/index.d.cts +145 -0
  33. package/dist/extensions/index.d.ts +145 -0
  34. package/dist/extensions/index.js +4 -0
  35. package/dist/extensions/index.js.map +1 -0
  36. package/dist/index.cjs +1067 -358
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +7 -5
  39. package/dist/index.d.ts +7 -5
  40. package/dist/index.js +7 -5
  41. package/dist/index.js.map +1 -1
  42. package/dist/layout/index.cjs +1396 -749
  43. package/dist/layout/index.cjs.map +1 -1
  44. package/dist/layout/index.d.cts +10 -4
  45. package/dist/layout/index.d.ts +10 -4
  46. package/dist/layout/index.js +543 -104
  47. package/dist/layout/index.js.map +1 -1
  48. package/dist/modeling/index.cjs +490 -23
  49. package/dist/modeling/index.cjs.map +1 -1
  50. package/dist/modeling/index.d.cts +81 -6
  51. package/dist/modeling/index.d.ts +81 -6
  52. package/dist/modeling/index.js +1 -1
  53. package/dist/nodes/index.cjs +42 -188
  54. package/dist/nodes/index.cjs.map +1 -1
  55. package/dist/nodes/index.d.cts +1 -1
  56. package/dist/nodes/index.d.ts +1 -1
  57. package/dist/nodes/index.js +1 -1
  58. package/dist/types-BX_o95GC.d.cts +40 -0
  59. package/dist/{types-y-ZbX-ff.d.cts → types-BYN4Zuee.d.cts} +15 -1
  60. package/dist/{types-y-ZbX-ff.d.ts → types-BYN4Zuee.d.ts} +15 -1
  61. package/dist/{types-jIDz306Y.d.cts → types-CggktCqr.d.cts} +4 -1
  62. package/dist/types-D7zel9dq.d.ts +40 -0
  63. package/dist/{types-DG5yPKld.d.ts → types-DmDODKlh.d.ts} +4 -1
  64. package/dist/validation/index.cjs +81 -125
  65. package/dist/validation/index.cjs.map +1 -1
  66. package/dist/validation/index.d.cts +22 -5
  67. package/dist/validation/index.d.ts +22 -5
  68. package/dist/validation/index.js +82 -126
  69. package/dist/validation/index.js.map +1 -1
  70. package/dist/xml/index.cjs +319 -49
  71. package/dist/xml/index.cjs.map +1 -1
  72. package/dist/xml/index.d.cts +5 -3
  73. package/dist/xml/index.d.ts +5 -3
  74. package/dist/xml/index.js +2 -1
  75. package/package.json +6 -1
  76. package/dist/chunk-IMW6RG6F.js.map +0 -1
  77. package/dist/chunk-QSMP34CT.js.map +0 -1
  78. package/dist/chunk-UAWLUDKC.js.map +0 -1
  79. package/dist/chunk-YUE5EM3W.js.map +0 -1
  80. package/dist/guards-C70uIY_O.d.cts +0 -16
  81. package/dist/guards-foB6XIfZ.d.ts +0 -16
@@ -0,0 +1,6 @@
1
+ export { bpmnElkLayout } from './chunk-FFWJA5BV.js';
2
+ import './chunk-YAYZW45I.js';
3
+ import './chunk-RLAJNRF2.js';
4
+ import './chunk-L5Z22RLX.js';
5
+ //# sourceMappingURL=elk-QT7H4252.js.map
6
+ //# sourceMappingURL=elk-QT7H4252.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"elk-QT7H4252.js"}
@@ -0,0 +1,108 @@
1
+ 'use strict';
2
+
3
+ // src/xml/aranza-descriptor.ts
4
+ var ARANZA_DESCRIPTOR = {
5
+ name: "Aranza",
6
+ uri: "http://aranzatech.io/schema/bpmn-extension/1.0",
7
+ prefix: "aranza",
8
+ xml: { tagAlias: "lowerCase" },
9
+ types: [
10
+ {
11
+ name: "TaskConfig",
12
+ superClass: ["Element"],
13
+ properties: [
14
+ { name: "priority", isAttr: true, type: "String" },
15
+ { name: "owner", isAttr: true, type: "String" },
16
+ { name: "sla", isAttr: true, type: "String" },
17
+ // Aranza connector execution config (resolved at runtime by the Flowable delegate)
18
+ { name: "implementation", isAttr: true, type: "String" },
19
+ { name: "connectorInstanceId", isAttr: true, type: "String" },
20
+ { name: "connectorId", isAttr: true, type: "String" },
21
+ { name: "connectorAction", isAttr: true, type: "String" },
22
+ { name: "connectorParamsJson", isAttr: true, type: "String" },
23
+ { name: "httpMethod", isAttr: true, type: "String" },
24
+ { name: "endpoint", isAttr: true, type: "String" },
25
+ { name: "operationRef", isAttr: true, type: "String" },
26
+ { name: "connector", isAttr: true, type: "String" },
27
+ { name: "action", isAttr: true, type: "String" },
28
+ // Flowable implementation hints stored for round-trip fidelity
29
+ { name: "flowableType", isAttr: true, type: "String" },
30
+ { name: "flowableDelegateExpression", isAttr: true, type: "String" },
31
+ // BusinessRuleTask: reference to a DMN decision table id
32
+ { name: "decisionRef", isAttr: true, type: "String" },
33
+ // UserTask: form key resolved to a FormDefinition name at runtime
34
+ { name: "formKey", isAttr: true, type: "String" },
35
+ // UserTask: Flowable task assignment — comma-separated ids
36
+ { name: "candidateUsers", isAttr: true, type: "String" },
37
+ { name: "candidateGroups", isAttr: true, type: "String" },
38
+ // UserTask: scheduling + skip expression
39
+ { name: "dueDate", isAttr: true, type: "String" },
40
+ { name: "skipExpression", isAttr: true, type: "String" },
41
+ { name: "businessCalendarName", isAttr: true, type: "String" }
42
+ ]
43
+ },
44
+ {
45
+ // BusinessRuleTask: simplified inline decision table (JSON-serialized)
46
+ name: "InlineDecision",
47
+ superClass: ["Element"],
48
+ properties: [
49
+ { name: "hitPolicy", isAttr: true, type: "String" },
50
+ { name: "tableJson", isAttr: true, type: "String" }
51
+ ]
52
+ },
53
+ {
54
+ // MessageFlow: payload schema + correlation key for executable BPMN
55
+ name: "MessageFlowConfig",
56
+ superClass: ["Element"],
57
+ properties: [
58
+ { name: "payloadSchema", isAttr: true, type: "String" },
59
+ { name: "correlationKey", isAttr: true, type: "String" }
60
+ ]
61
+ }
62
+ ],
63
+ enumerations: [],
64
+ associations: []
65
+ };
66
+
67
+ // src/extensions/types.ts
68
+ function hasText(value) {
69
+ return typeof value === "string" && value.trim().length > 0;
70
+ }
71
+ function getBpmnTaskExecutionExtensions(data) {
72
+ const result = {};
73
+ if (data.priority) result.priority = data.priority;
74
+ if (hasText(data.owner)) result.owner = data.owner;
75
+ if (hasText(data.sla)) result.sla = data.sla;
76
+ if (hasText(data.connector)) result.connector = data.connector;
77
+ if (hasText(data.action)) result.action = data.action;
78
+ if (hasText(data.flowableType)) result.flowableType = data.flowableType;
79
+ if (hasText(data.flowableDelegateExpression)) {
80
+ result.flowableDelegateExpression = data.flowableDelegateExpression;
81
+ }
82
+ if (data.serviceConfig && Object.keys(data.serviceConfig).length > 0) {
83
+ result.serviceConfig = data.serviceConfig;
84
+ }
85
+ if (hasText(data.decisionRef)) result.decisionRef = data.decisionRef;
86
+ if (data.inlineDecisionTable) result.inlineDecisionTable = data.inlineDecisionTable;
87
+ if (hasText(data.formKey)) result.formKey = data.formKey;
88
+ if (hasText(data.candidateUsers)) result.candidateUsers = data.candidateUsers;
89
+ if (hasText(data.candidateGroups)) result.candidateGroups = data.candidateGroups;
90
+ if (hasText(data.dueDate)) result.dueDate = data.dueDate;
91
+ if (hasText(data.skipExpression)) result.skipExpression = data.skipExpression;
92
+ if (hasText(data.businessCalendarName)) {
93
+ result.businessCalendarName = data.businessCalendarName;
94
+ }
95
+ return Object.keys(result).length > 0 ? result : void 0;
96
+ }
97
+ function getBpmnMessageFlowExecutionExtensions(data) {
98
+ const result = {};
99
+ if (hasText(data.payloadSchema)) result.payloadSchema = data.payloadSchema;
100
+ if (hasText(data.correlationKey)) result.correlationKey = data.correlationKey;
101
+ return Object.keys(result).length > 0 ? result : void 0;
102
+ }
103
+
104
+ exports.ARANZA_DESCRIPTOR = ARANZA_DESCRIPTOR;
105
+ exports.getBpmnMessageFlowExecutionExtensions = getBpmnMessageFlowExecutionExtensions;
106
+ exports.getBpmnTaskExecutionExtensions = getBpmnTaskExecutionExtensions;
107
+ //# sourceMappingURL=index.cjs.map
108
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/xml/aranza-descriptor.ts","../../src/extensions/types.ts"],"names":[],"mappings":";;;AAaO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,IAAA,EAAM,QAAA;AAAA,EACN,GAAA,EAAK,gDAAA;AAAA,EACL,MAAA,EAAQ,QAAA;AAAA,EACR,GAAA,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A;AAC/D,EAAA,OAAO,OAAO,IAAA,CAAK,MAAM,CAAA,CAAE,MAAA,GAAS,IAAI,MAAA,GAAS,MAAA;AACnD","file":"index.cjs","sourcesContent":["/**\n * bpmn-moddle package descriptor for the AranzaFlows extension namespace.\n *\n * Registered as { aranza: ARANZA_DESCRIPTOR } when constructing BpmnModdle so\n * that aranza:TaskConfig elements can be created and parsed via extensionElements.\n *\n * XML shape:\n * <bpmn:userTask id=\"Task_1\" name=\"Review\">\n * <bpmn:extensionElements>\n * <aranza:taskConfig priority=\"critical\" owner=\"ops-team\" sla=\"PT4H\" />\n * </bpmn:extensionElements>\n * </bpmn:userTask>\n */\nexport const ARANZA_DESCRIPTOR = {\n name: \"Aranza\",\n uri: \"http://aranzatech.io/schema/bpmn-extension/1.0\",\n prefix: \"aranza\",\n xml: { tagAlias: \"lowerCase\" },\n types: [\n {\n name: \"TaskConfig\",\n superClass: [\"Element\"],\n properties: [\n { name: \"priority\", isAttr: true, type: \"String\" },\n { name: \"owner\", isAttr: true, type: \"String\" },\n { name: \"sla\", isAttr: true, type: \"String\" },\n // Aranza connector execution config (resolved at runtime by the Flowable delegate)\n { name: \"implementation\", isAttr: true, type: \"String\" },\n { name: \"connectorInstanceId\", isAttr: true, type: \"String\" },\n { name: \"connectorId\", isAttr: true, type: \"String\" },\n { name: \"connectorAction\", isAttr: true, type: \"String\" },\n { name: \"connectorParamsJson\", isAttr: true, type: \"String\" },\n { name: \"httpMethod\", isAttr: true, type: \"String\" },\n { name: \"endpoint\", isAttr: true, type: \"String\" },\n { name: \"operationRef\", isAttr: true, type: \"String\" },\n { name: \"connector\", isAttr: true, type: \"String\" },\n { name: \"action\", isAttr: true, type: \"String\" },\n // Flowable implementation hints stored for round-trip fidelity\n { name: \"flowableType\", isAttr: true, type: \"String\" },\n { name: \"flowableDelegateExpression\", isAttr: true, type: \"String\" },\n // BusinessRuleTask: reference to a DMN decision table id\n { name: \"decisionRef\", isAttr: true, type: \"String\" },\n // UserTask: form key resolved to a FormDefinition name at runtime\n { name: \"formKey\", isAttr: true, type: \"String\" },\n // UserTask: Flowable task assignment — comma-separated ids\n { name: \"candidateUsers\", isAttr: true, type: \"String\" },\n { name: \"candidateGroups\", isAttr: true, type: \"String\" },\n // UserTask: scheduling + skip expression\n { name: \"dueDate\", isAttr: true, type: \"String\" },\n { name: \"skipExpression\", isAttr: true, type: \"String\" },\n { name: \"businessCalendarName\", isAttr: true, type: \"String\" },\n ],\n },\n {\n // BusinessRuleTask: simplified inline decision table (JSON-serialized)\n name: \"InlineDecision\",\n superClass: [\"Element\"],\n properties: [\n { name: \"hitPolicy\", isAttr: true, type: \"String\" },\n { name: \"tableJson\", isAttr: true, type: \"String\" },\n ],\n },\n {\n // MessageFlow: payload schema + correlation key for executable BPMN\n name: \"MessageFlowConfig\",\n superClass: [\"Element\"],\n properties: [\n { name: \"payloadSchema\", isAttr: true, type: \"String\" },\n { name: \"correlationKey\", isAttr: true, type: \"String\" },\n ],\n },\n ],\n enumerations: [],\n associations: [],\n} as const;\n","import type {\n BpmnEdgeData,\n BpmnNodeData,\n BpmnServiceTaskConfig,\n InlineDecisionTable,\n} from \"../elements/types\";\n\nexport type BpmnExecutionEngine = \"flowable\";\n\nexport interface BpmnAranzaTaskExtensions {\n priority?: \"critical\" | \"high\" | \"medium\" | \"low\";\n owner?: string;\n sla?: string;\n connector?: string;\n action?: string;\n}\n\nexport interface BpmnFlowableTaskExtensions {\n flowableType?: string;\n flowableDelegateExpression?: string;\n decisionRef?: string;\n formKey?: string;\n candidateUsers?: string;\n candidateGroups?: string;\n dueDate?: string;\n skipExpression?: string;\n businessCalendarName?: string;\n}\n\nexport interface BpmnTaskExecutionExtensions\n extends BpmnAranzaTaskExtensions, BpmnFlowableTaskExtensions {\n serviceConfig?: BpmnServiceTaskConfig;\n inlineDecisionTable?: InlineDecisionTable;\n}\n\nexport interface BpmnMessageFlowExecutionExtensions {\n payloadSchema?: string;\n correlationKey?: string;\n}\n\nexport interface BpmnFlowableExportOptions {\n enabled?: boolean;\n backendUrlTemplate?: string;\n serviceTaskConfigs?: Record<string, BpmnServiceTaskConfig | undefined>;\n connectorResponseVariableName?: string;\n decisionResponseVariableName?: string;\n}\n\nfunction hasText(value: unknown): value is string {\n return typeof value === \"string\" && value.trim().length > 0;\n}\n\nexport function getBpmnTaskExecutionExtensions(\n data: Pick<\n BpmnNodeData,\n | \"priority\"\n | \"owner\"\n | \"sla\"\n | \"connector\"\n | \"action\"\n | \"flowableType\"\n | \"flowableDelegateExpression\"\n | \"serviceConfig\"\n | \"decisionRef\"\n | \"inlineDecisionTable\"\n | \"formKey\"\n | \"candidateUsers\"\n | \"candidateGroups\"\n | \"dueDate\"\n | \"skipExpression\"\n | \"businessCalendarName\"\n >,\n): BpmnTaskExecutionExtensions | undefined {\n const result: BpmnTaskExecutionExtensions = {};\n\n if (data.priority) result.priority = data.priority;\n if (hasText(data.owner)) result.owner = data.owner;\n if (hasText(data.sla)) result.sla = data.sla;\n if (hasText(data.connector)) result.connector = data.connector;\n if (hasText(data.action)) result.action = data.action;\n if (hasText(data.flowableType)) result.flowableType = data.flowableType;\n if (hasText(data.flowableDelegateExpression)) {\n result.flowableDelegateExpression = data.flowableDelegateExpression;\n }\n if (data.serviceConfig && Object.keys(data.serviceConfig).length > 0) {\n result.serviceConfig = data.serviceConfig;\n }\n if (hasText(data.decisionRef)) result.decisionRef = data.decisionRef;\n if (data.inlineDecisionTable) result.inlineDecisionTable = data.inlineDecisionTable;\n if (hasText(data.formKey)) result.formKey = data.formKey;\n if (hasText(data.candidateUsers)) result.candidateUsers = data.candidateUsers;\n if (hasText(data.candidateGroups)) result.candidateGroups = data.candidateGroups;\n if (hasText(data.dueDate)) result.dueDate = data.dueDate;\n if (hasText(data.skipExpression)) result.skipExpression = data.skipExpression;\n if (hasText(data.businessCalendarName)) {\n result.businessCalendarName = data.businessCalendarName;\n }\n\n return Object.keys(result).length > 0 ? result : undefined;\n}\n\nexport function getBpmnMessageFlowExecutionExtensions(\n data: Pick<BpmnEdgeData, \"payloadSchema\" | \"correlationKey\">,\n): BpmnMessageFlowExecutionExtensions | undefined {\n const result: BpmnMessageFlowExecutionExtensions = {};\n if (hasText(data.payloadSchema)) result.payloadSchema = data.payloadSchema;\n if (hasText(data.correlationKey)) result.correlationKey = data.correlationKey;\n return Object.keys(result).length > 0 ? result : undefined;\n}\n"]}
@@ -0,0 +1,145 @@
1
+ export { B as BpmnAranzaTaskExtensions, a as BpmnExecutionEngine, b as BpmnFlowableExportOptions, c as BpmnFlowableTaskExtensions, d as BpmnMessageFlowExecutionExtensions, e as BpmnTaskExecutionExtensions, g as getBpmnMessageFlowExecutionExtensions, f as getBpmnTaskExecutionExtensions } from '../types-BX_o95GC.cjs';
2
+ import '../types-BYN4Zuee.cjs';
3
+
4
+ /**
5
+ * bpmn-moddle package descriptor for the AranzaFlows extension namespace.
6
+ *
7
+ * Registered as { aranza: ARANZA_DESCRIPTOR } when constructing BpmnModdle so
8
+ * that aranza:TaskConfig elements can be created and parsed via extensionElements.
9
+ *
10
+ * XML shape:
11
+ * <bpmn:userTask id="Task_1" name="Review">
12
+ * <bpmn:extensionElements>
13
+ * <aranza:taskConfig priority="critical" owner="ops-team" sla="PT4H" />
14
+ * </bpmn:extensionElements>
15
+ * </bpmn:userTask>
16
+ */
17
+ declare const ARANZA_DESCRIPTOR: {
18
+ readonly name: "Aranza";
19
+ readonly uri: "http://aranzatech.io/schema/bpmn-extension/1.0";
20
+ readonly prefix: "aranza";
21
+ readonly xml: {
22
+ readonly tagAlias: "lowerCase";
23
+ };
24
+ readonly types: readonly [{
25
+ readonly name: "TaskConfig";
26
+ readonly superClass: readonly ["Element"];
27
+ readonly properties: readonly [{
28
+ readonly name: "priority";
29
+ readonly isAttr: true;
30
+ readonly type: "String";
31
+ }, {
32
+ readonly name: "owner";
33
+ readonly isAttr: true;
34
+ readonly type: "String";
35
+ }, {
36
+ readonly name: "sla";
37
+ readonly isAttr: true;
38
+ readonly type: "String";
39
+ }, {
40
+ readonly name: "implementation";
41
+ readonly isAttr: true;
42
+ readonly type: "String";
43
+ }, {
44
+ readonly name: "connectorInstanceId";
45
+ readonly isAttr: true;
46
+ readonly type: "String";
47
+ }, {
48
+ readonly name: "connectorId";
49
+ readonly isAttr: true;
50
+ readonly type: "String";
51
+ }, {
52
+ readonly name: "connectorAction";
53
+ readonly isAttr: true;
54
+ readonly type: "String";
55
+ }, {
56
+ readonly name: "connectorParamsJson";
57
+ readonly isAttr: true;
58
+ readonly type: "String";
59
+ }, {
60
+ readonly name: "httpMethod";
61
+ readonly isAttr: true;
62
+ readonly type: "String";
63
+ }, {
64
+ readonly name: "endpoint";
65
+ readonly isAttr: true;
66
+ readonly type: "String";
67
+ }, {
68
+ readonly name: "operationRef";
69
+ readonly isAttr: true;
70
+ readonly type: "String";
71
+ }, {
72
+ readonly name: "connector";
73
+ readonly isAttr: true;
74
+ readonly type: "String";
75
+ }, {
76
+ readonly name: "action";
77
+ readonly isAttr: true;
78
+ readonly type: "String";
79
+ }, {
80
+ readonly name: "flowableType";
81
+ readonly isAttr: true;
82
+ readonly type: "String";
83
+ }, {
84
+ readonly name: "flowableDelegateExpression";
85
+ readonly isAttr: true;
86
+ readonly type: "String";
87
+ }, {
88
+ readonly name: "decisionRef";
89
+ readonly isAttr: true;
90
+ readonly type: "String";
91
+ }, {
92
+ readonly name: "formKey";
93
+ readonly isAttr: true;
94
+ readonly type: "String";
95
+ }, {
96
+ readonly name: "candidateUsers";
97
+ readonly isAttr: true;
98
+ readonly type: "String";
99
+ }, {
100
+ readonly name: "candidateGroups";
101
+ readonly isAttr: true;
102
+ readonly type: "String";
103
+ }, {
104
+ readonly name: "dueDate";
105
+ readonly isAttr: true;
106
+ readonly type: "String";
107
+ }, {
108
+ readonly name: "skipExpression";
109
+ readonly isAttr: true;
110
+ readonly type: "String";
111
+ }, {
112
+ readonly name: "businessCalendarName";
113
+ readonly isAttr: true;
114
+ readonly type: "String";
115
+ }];
116
+ }, {
117
+ readonly name: "InlineDecision";
118
+ readonly superClass: readonly ["Element"];
119
+ readonly properties: readonly [{
120
+ readonly name: "hitPolicy";
121
+ readonly isAttr: true;
122
+ readonly type: "String";
123
+ }, {
124
+ readonly name: "tableJson";
125
+ readonly isAttr: true;
126
+ readonly type: "String";
127
+ }];
128
+ }, {
129
+ readonly name: "MessageFlowConfig";
130
+ readonly superClass: readonly ["Element"];
131
+ readonly properties: readonly [{
132
+ readonly name: "payloadSchema";
133
+ readonly isAttr: true;
134
+ readonly type: "String";
135
+ }, {
136
+ readonly name: "correlationKey";
137
+ readonly isAttr: true;
138
+ readonly type: "String";
139
+ }];
140
+ }];
141
+ readonly enumerations: readonly [];
142
+ readonly associations: readonly [];
143
+ };
144
+
145
+ export { ARANZA_DESCRIPTOR };
@@ -0,0 +1,145 @@
1
+ export { B as BpmnAranzaTaskExtensions, a as BpmnExecutionEngine, b as BpmnFlowableExportOptions, c as BpmnFlowableTaskExtensions, d as BpmnMessageFlowExecutionExtensions, e as BpmnTaskExecutionExtensions, g as getBpmnMessageFlowExecutionExtensions, f as getBpmnTaskExecutionExtensions } from '../types-D7zel9dq.js';
2
+ import '../types-BYN4Zuee.js';
3
+
4
+ /**
5
+ * bpmn-moddle package descriptor for the AranzaFlows extension namespace.
6
+ *
7
+ * Registered as { aranza: ARANZA_DESCRIPTOR } when constructing BpmnModdle so
8
+ * that aranza:TaskConfig elements can be created and parsed via extensionElements.
9
+ *
10
+ * XML shape:
11
+ * <bpmn:userTask id="Task_1" name="Review">
12
+ * <bpmn:extensionElements>
13
+ * <aranza:taskConfig priority="critical" owner="ops-team" sla="PT4H" />
14
+ * </bpmn:extensionElements>
15
+ * </bpmn:userTask>
16
+ */
17
+ declare const ARANZA_DESCRIPTOR: {
18
+ readonly name: "Aranza";
19
+ readonly uri: "http://aranzatech.io/schema/bpmn-extension/1.0";
20
+ readonly prefix: "aranza";
21
+ readonly xml: {
22
+ readonly tagAlias: "lowerCase";
23
+ };
24
+ readonly types: readonly [{
25
+ readonly name: "TaskConfig";
26
+ readonly superClass: readonly ["Element"];
27
+ readonly properties: readonly [{
28
+ readonly name: "priority";
29
+ readonly isAttr: true;
30
+ readonly type: "String";
31
+ }, {
32
+ readonly name: "owner";
33
+ readonly isAttr: true;
34
+ readonly type: "String";
35
+ }, {
36
+ readonly name: "sla";
37
+ readonly isAttr: true;
38
+ readonly type: "String";
39
+ }, {
40
+ readonly name: "implementation";
41
+ readonly isAttr: true;
42
+ readonly type: "String";
43
+ }, {
44
+ readonly name: "connectorInstanceId";
45
+ readonly isAttr: true;
46
+ readonly type: "String";
47
+ }, {
48
+ readonly name: "connectorId";
49
+ readonly isAttr: true;
50
+ readonly type: "String";
51
+ }, {
52
+ readonly name: "connectorAction";
53
+ readonly isAttr: true;
54
+ readonly type: "String";
55
+ }, {
56
+ readonly name: "connectorParamsJson";
57
+ readonly isAttr: true;
58
+ readonly type: "String";
59
+ }, {
60
+ readonly name: "httpMethod";
61
+ readonly isAttr: true;
62
+ readonly type: "String";
63
+ }, {
64
+ readonly name: "endpoint";
65
+ readonly isAttr: true;
66
+ readonly type: "String";
67
+ }, {
68
+ readonly name: "operationRef";
69
+ readonly isAttr: true;
70
+ readonly type: "String";
71
+ }, {
72
+ readonly name: "connector";
73
+ readonly isAttr: true;
74
+ readonly type: "String";
75
+ }, {
76
+ readonly name: "action";
77
+ readonly isAttr: true;
78
+ readonly type: "String";
79
+ }, {
80
+ readonly name: "flowableType";
81
+ readonly isAttr: true;
82
+ readonly type: "String";
83
+ }, {
84
+ readonly name: "flowableDelegateExpression";
85
+ readonly isAttr: true;
86
+ readonly type: "String";
87
+ }, {
88
+ readonly name: "decisionRef";
89
+ readonly isAttr: true;
90
+ readonly type: "String";
91
+ }, {
92
+ readonly name: "formKey";
93
+ readonly isAttr: true;
94
+ readonly type: "String";
95
+ }, {
96
+ readonly name: "candidateUsers";
97
+ readonly isAttr: true;
98
+ readonly type: "String";
99
+ }, {
100
+ readonly name: "candidateGroups";
101
+ readonly isAttr: true;
102
+ readonly type: "String";
103
+ }, {
104
+ readonly name: "dueDate";
105
+ readonly isAttr: true;
106
+ readonly type: "String";
107
+ }, {
108
+ readonly name: "skipExpression";
109
+ readonly isAttr: true;
110
+ readonly type: "String";
111
+ }, {
112
+ readonly name: "businessCalendarName";
113
+ readonly isAttr: true;
114
+ readonly type: "String";
115
+ }];
116
+ }, {
117
+ readonly name: "InlineDecision";
118
+ readonly superClass: readonly ["Element"];
119
+ readonly properties: readonly [{
120
+ readonly name: "hitPolicy";
121
+ readonly isAttr: true;
122
+ readonly type: "String";
123
+ }, {
124
+ readonly name: "tableJson";
125
+ readonly isAttr: true;
126
+ readonly type: "String";
127
+ }];
128
+ }, {
129
+ readonly name: "MessageFlowConfig";
130
+ readonly superClass: readonly ["Element"];
131
+ readonly properties: readonly [{
132
+ readonly name: "payloadSchema";
133
+ readonly isAttr: true;
134
+ readonly type: "String";
135
+ }, {
136
+ readonly name: "correlationKey";
137
+ readonly isAttr: true;
138
+ readonly type: "String";
139
+ }];
140
+ }];
141
+ readonly enumerations: readonly [];
142
+ readonly associations: readonly [];
143
+ };
144
+
145
+ export { ARANZA_DESCRIPTOR };
@@ -0,0 +1,4 @@
1
+ import '../chunk-77L6O76M.js';
2
+ export { ARANZA_DESCRIPTOR, getBpmnMessageFlowExecutionExtensions, getBpmnTaskExecutionExtensions } from '../chunk-TB6V4S5N.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}