@notmrabhi/flowforge 0.1.52 → 0.1.53
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.
- package/dist/buildBackendPayload-4SwOp7St.js +316 -0
- package/dist/buildBackendPayload-4SwOp7St.js.map +1 -0
- package/dist/buildBackendPayload-BvrjW1uM.js +2 -0
- package/dist/buildBackendPayload-BvrjW1uM.js.map +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +163 -0
- package/dist/core.js +11 -9
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +126 -442
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,466 +1,150 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { F as
|
|
1
|
+
import { D as N, F as R, a as D, b as P, c as W, I as A, O as E, T as I, V as C, d as O, e as B, f as V, g as z, h as L, i as q, j as H, k as M, E as _, l as $, m as j, n as G, o as U, p as Y, q as J, r as K, s as Q, t as X, u as Z, v as ee, w as se, x as oe, y as ae, z as re, A as te, B as ie, C as ne } from "./index-B-D9UuLO.js";
|
|
2
|
+
import { F as ce, S as de, a as pe, u as ue } from "./SchemaBuilderDrawer-BP7aZgFe.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material";
|
|
6
6
|
import "react-icons/md";
|
|
7
|
-
import { NodeTypeRegistry as
|
|
8
|
-
import { TemplateRegistry as
|
|
9
|
-
import { F as
|
|
10
|
-
import { d as
|
|
11
|
-
import { l as
|
|
12
|
-
import { A as
|
|
13
|
-
|
|
7
|
+
import { NodeTypeRegistry as he, baseNodeDefaults as me, conditionBranchDescriptor as ge, defineNode as be, endEventDescriptor as Fe, makeSubWorkflowDescriptor as ke, nodeTypeRegistry as we, notificationDescriptor as Se, restApiDescriptor as Te, startEventDescriptor as ye, subWorkflowDescriptor as xe, webhookTriggerDescriptor as ve, webhookTriggerTemplate as Ne } from "./nodeRegistry.js";
|
|
8
|
+
import { TemplateRegistry as De, templateRegistry as Pe } from "./templateRegistry.js";
|
|
9
|
+
import { F as Ae, a as Ee, S as Ie, F as Ce, W as Oe, b as Be, c as Ve, o as ze, u as Le, w as qe } from "./templateSkeletons-f-XQQvyE.js";
|
|
10
|
+
import { d as Me } from "./messages-CO299wPN.js";
|
|
11
|
+
import { l as $e, s as je } from "./bpmn-CtfWDaOY.js";
|
|
12
|
+
import { A as Ue, b as Ye, E as Je, c as Ke, F as Qe, R as Xe, S as Ze, T as es, W as ss, e as os } from "./GatewayBranchEdge-CrgczPYJ.js";
|
|
13
|
+
import { b as rs } from "./buildBackendPayload-4SwOp7St.js";
|
|
14
|
+
class g {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.channels = /* @__PURE__ */ new Map();
|
|
16
17
|
}
|
|
17
|
-
register(
|
|
18
|
-
this.channels.set(
|
|
18
|
+
register(s, o) {
|
|
19
|
+
this.channels.set(s, o);
|
|
19
20
|
}
|
|
20
|
-
get(
|
|
21
|
-
return this.channels.get(
|
|
21
|
+
get(s) {
|
|
22
|
+
return this.channels.get(s);
|
|
22
23
|
}
|
|
23
24
|
list() {
|
|
24
|
-
return Array.from(this.channels.entries()).map(([
|
|
25
|
+
return Array.from(this.channels.entries()).map(([s, o]) => ({ key: s, ...o }));
|
|
25
26
|
}
|
|
26
|
-
has(
|
|
27
|
-
return this.channels.has(
|
|
27
|
+
has(s) {
|
|
28
|
+
return this.channels.has(s);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
function
|
|
31
|
+
const T = new g();
|
|
32
|
+
function y(e) {
|
|
32
33
|
const {
|
|
33
|
-
currentNodeId:
|
|
34
|
-
nodes:
|
|
35
|
-
getParents:
|
|
34
|
+
currentNodeId: s,
|
|
35
|
+
nodes: o,
|
|
36
|
+
getParents: t,
|
|
36
37
|
getOutputSchema: a,
|
|
37
|
-
nodePath:
|
|
38
|
-
nodeLabel:
|
|
39
|
-
getNodeId:
|
|
40
|
-
} = e,
|
|
41
|
-
if (!
|
|
42
|
-
const
|
|
43
|
-
for (const
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
label:
|
|
49
|
-
items:
|
|
38
|
+
nodePath: i,
|
|
39
|
+
nodeLabel: n,
|
|
40
|
+
getNodeId: l = (r) => r.id
|
|
41
|
+
} = e, c = o.find((r) => l(r) === s);
|
|
42
|
+
if (!c) return [];
|
|
43
|
+
const h = b(c, o, t, l), p = [];
|
|
44
|
+
for (const r of h) {
|
|
45
|
+
const d = a(r);
|
|
46
|
+
if (!d || d.length === 0) continue;
|
|
47
|
+
const u = i(r);
|
|
48
|
+
p.push({
|
|
49
|
+
label: n ? n(r) : u,
|
|
50
|
+
items: d.map((m) => f(m, u))
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
|
-
return
|
|
53
|
+
return p;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
const a = /* @__PURE__ */ new Set(),
|
|
56
|
-
for (;
|
|
57
|
-
const
|
|
58
|
-
a.has(
|
|
55
|
+
function b(e, s, o, t) {
|
|
56
|
+
const a = /* @__PURE__ */ new Set(), i = [], n = [...o(e, s)];
|
|
57
|
+
for (; n.length > 0; ) {
|
|
58
|
+
const l = n.shift(), c = t(l);
|
|
59
|
+
a.has(c) || (a.add(c), i.push(l), n.push(...o(l, s)));
|
|
59
60
|
}
|
|
60
|
-
return
|
|
61
|
+
return i;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
}
|
|
66
|
-
const I = {
|
|
67
|
-
triggerToCategory: {
|
|
68
|
-
END_USER_CREATION: "END_USER_CREATION",
|
|
69
|
-
END_USER_UPDATION: "END_USER_UPDATION",
|
|
70
|
-
DELETE_DORMANT_ACCOUNT: "DELETE_DORMANT_ACCOUNT",
|
|
71
|
-
NOTIFY_EXPIRED_PASSWORD: "NOTIFY_EXPIRED_PASSWORD"
|
|
72
|
-
},
|
|
73
|
-
schedulerEventTypes: ["DELETE_DORMANT_ACCOUNT", "NOTIFY_EXPIRED_PASSWORD"],
|
|
74
|
-
conditionPathPrefix: "startEvent.endUser",
|
|
75
|
-
defaultWorkflowCategory: "END_USER_CREATION",
|
|
76
|
-
endEventIds: {
|
|
77
|
-
success: "endEventSuccess",
|
|
78
|
-
failure: "endEventFailure",
|
|
79
|
-
rejected: "endEventRejected"
|
|
80
|
-
},
|
|
81
|
-
endEventNames: {
|
|
82
|
-
success: "Task Completed successfully",
|
|
83
|
-
failure: "User Not Created",
|
|
84
|
-
rejected: "Approval Rejected"
|
|
85
|
-
},
|
|
86
|
-
startEventId: "startEvent"
|
|
87
|
-
}, U = /* @__PURE__ */ new Set([
|
|
88
|
-
"start",
|
|
89
|
-
"end",
|
|
90
|
-
"triggerFixed",
|
|
91
|
-
"addTrigger",
|
|
92
|
-
"addStep"
|
|
93
|
-
]), B = (e) => !!e && !U.has(String(e.kind ?? ""));
|
|
94
|
-
function S(e, t) {
|
|
95
|
-
return e == null ? "" : String(e).replace(
|
|
96
|
-
/\$\{(\w+)\}/g,
|
|
97
|
-
(n, o) => Object.prototype.hasOwnProperty.call(t, o) ? String(t[o]) : n
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
function V(e, t) {
|
|
101
|
-
var s, d, i, l, f;
|
|
102
|
-
if (!e || typeof e != "object") return "";
|
|
103
|
-
const { from: n, key: o, value: a } = e;
|
|
104
|
-
return n === "literal" ? a === void 0 ? "" : String(a) : n === "task" ? String(((s = t.task) == null ? void 0 : s[o ?? ""]) ?? "") : n === "ctx" ? String(((d = t.ctx) == null ? void 0 : d[o ?? ""]) ?? "") : n === "slot" ? String(((i = t.slot) == null ? void 0 : i[o ?? ""]) ?? "") : n === "formData" ? String(((f = (l = t.slot) == null ? void 0 : l.formData) == null ? void 0 : f[o ?? ""]) ?? "") : "";
|
|
105
|
-
}
|
|
106
|
-
function M(e, t) {
|
|
107
|
-
var o, a, s;
|
|
108
|
-
const n = e == null ? void 0 : e.source;
|
|
109
|
-
if (!n) return "";
|
|
110
|
-
if (n.type === "literal")
|
|
111
|
-
return typeof n.value == "string" ? n.value : JSON.stringify(n.value ?? "");
|
|
112
|
-
if (n.type === "json" || n.type === "taskConfig") {
|
|
113
|
-
const d = n.shape || {}, i = {};
|
|
114
|
-
return Object.keys(d).forEach((l) => {
|
|
115
|
-
i[l] = V(d[l], t);
|
|
116
|
-
}), JSON.stringify(i);
|
|
117
|
-
}
|
|
118
|
-
if (n.type === "formData") {
|
|
119
|
-
if (n.passthrough) {
|
|
120
|
-
const d = new Set(n.exclude || []), i = {}, l = ((o = t.slot) == null ? void 0 : o.formData) ?? {};
|
|
121
|
-
return Object.keys(l).forEach((f) => {
|
|
122
|
-
d.has(f) || (i[f] = l[f]);
|
|
123
|
-
}), JSON.stringify(i);
|
|
124
|
-
}
|
|
125
|
-
return String(((s = (a = t.slot) == null ? void 0 : a.formData) == null ? void 0 : s[n.key ?? ""]) ?? "");
|
|
126
|
-
}
|
|
127
|
-
return "";
|
|
128
|
-
}
|
|
129
|
-
function z(e, t) {
|
|
130
|
-
if (!(!e || typeof e != "object" || !t))
|
|
131
|
-
return t.split(".").reduce((n, o) => {
|
|
132
|
-
if (!(n == null || typeof n != "object"))
|
|
133
|
-
return n[o];
|
|
134
|
-
}, e);
|
|
135
|
-
}
|
|
136
|
-
function q(e, t, n) {
|
|
137
|
-
var w;
|
|
138
|
-
const o = e.operatorMap || {}, a = e.valuesField || "groups", s = (r) => {
|
|
139
|
-
const m = o[String((r == null ? void 0 : r.operator) ?? "")] ?? "==", u = `${n}.${(r == null ? void 0 : r.key) ?? (r == null ? void 0 : r.field) ?? ""}`, E = `'${String((r == null ? void 0 : r.value) ?? "")}'`;
|
|
140
|
-
return m.startsWith(".") ? `${u}${m}(${E})` : m.startsWith("!.") ? `!${u}${m.slice(1)}(${E})` : `${u} ${m} ${E}`;
|
|
141
|
-
}, d = (r) => {
|
|
142
|
-
var T, p;
|
|
143
|
-
const m = Array.isArray(r) ? r : [];
|
|
144
|
-
if (m.length === 0) return null;
|
|
145
|
-
const u = m.map(s), y = ((T = m[0]) == null ? void 0 : T.connector) === "or" || ((p = m[0]) == null ? void 0 : p.logicalOperator) === "OR" ? "||" : "&&";
|
|
146
|
-
return u.join(` ${y} `);
|
|
147
|
-
}, i = [];
|
|
148
|
-
let l = 1;
|
|
149
|
-
const f = (r, m) => {
|
|
150
|
-
i.push({
|
|
151
|
-
id: `rule${l}`,
|
|
152
|
-
inputEntries: [
|
|
153
|
-
{
|
|
154
|
-
id: `rule${l}InputEntry1`,
|
|
155
|
-
text: r ? `\${(${r})}` : ""
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
outputEntries: [
|
|
159
|
-
{
|
|
160
|
-
id: `rule${l}OutputEntry1`,
|
|
161
|
-
text: `"${m}"`
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
}), l += 1;
|
|
165
|
-
}, h = Array.isArray((w = t == null ? void 0 : t.formData) == null ? void 0 : w.groupBlocks) ? t.formData.groupBlocks : [];
|
|
166
|
-
if (h.length > 0)
|
|
167
|
-
return h.forEach((r) => {
|
|
168
|
-
const m = Array.isArray(r == null ? void 0 : r[a]) ? r[a] : [], u = d(r == null ? void 0 : r.conditions);
|
|
169
|
-
m.forEach((E) => f(u, E));
|
|
170
|
-
}), i;
|
|
171
|
-
const g = (t == null ? void 0 : t.formData) ?? {}, v = g._conditionConfig ?? g.conditionConfig;
|
|
172
|
-
return v && typeof v == "object" && Object.keys(v).forEach((r) => {
|
|
173
|
-
const m = v[r], u = d(m), E = Object.prototype.hasOwnProperty.call(g, r) ? g[r] : z(g, r);
|
|
174
|
-
Array.isArray(E) ? E.forEach((y) => {
|
|
175
|
-
const T = typeof y == "object" && y !== null ? y.value ?? y.label ?? y : y;
|
|
176
|
-
f(u, T);
|
|
177
|
-
}) : E != null && E !== "" ? f(u, E) : u && f(u, "");
|
|
178
|
-
}), i;
|
|
179
|
-
}
|
|
180
|
-
function H(e, t, n) {
|
|
181
|
-
return {
|
|
182
|
-
mappings: [],
|
|
183
|
-
name: e.tableName,
|
|
184
|
-
decision: {
|
|
185
|
-
id: e.tableName,
|
|
186
|
-
name: e.tableName,
|
|
187
|
-
decisionTable: {
|
|
188
|
-
id: `decisionTable_${e.tableName}`,
|
|
189
|
-
hitPolicy: e.hitPolicy || "FIRST",
|
|
190
|
-
inputs: [
|
|
191
|
-
{
|
|
192
|
-
id: `input_${e.tableName}`,
|
|
193
|
-
inputExpression: {
|
|
194
|
-
id: `inputExpr_${e.tableName}`,
|
|
195
|
-
typeRef: "string",
|
|
196
|
-
text: e.inputExpr
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
outputs: (e.outputs || []).map((o) => ({
|
|
201
|
-
id: o.id,
|
|
202
|
-
label: o.label,
|
|
203
|
-
typeRef: o.typeRef || "string",
|
|
204
|
-
name: o.name
|
|
205
|
-
})),
|
|
206
|
-
rules: q(e, t, n)
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
function J(e, t, n, o) {
|
|
212
|
-
var E, y, T;
|
|
213
|
-
const a = (E = t == null ? void 0 : t.ui) == null ? void 0 : E.bpmnEmit;
|
|
214
|
-
if (!a)
|
|
215
|
-
return {
|
|
216
|
-
serviceTasks: [
|
|
217
|
-
{
|
|
218
|
-
id: e.id,
|
|
219
|
-
name: (t == null ? void 0 : t.name) || e.descriptorType,
|
|
220
|
-
configuration: Array.isArray(t == null ? void 0 : t.configuration) ? t.configuration : [],
|
|
221
|
-
input: e.formData || {}
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
gateways: [],
|
|
225
|
-
callActivities: [],
|
|
226
|
-
templateFlows: [],
|
|
227
|
-
dmn: null,
|
|
228
|
-
bpmnEntry: e.id,
|
|
229
|
-
bpmnExit: e.id,
|
|
230
|
-
outgoingConditions: {},
|
|
231
|
-
endsNeeded: /* @__PURE__ */ new Set()
|
|
232
|
-
};
|
|
233
|
-
const s = {
|
|
234
|
-
id: e.id,
|
|
235
|
-
endFailure: o.endEventIds.failure,
|
|
236
|
-
endRejected: o.endEventIds.rejected,
|
|
237
|
-
endSuccess: o.endEventIds.success
|
|
238
|
-
}, d = { task: t, slot: e, ctx: n }, i = (a.serviceTasks || []).map((p) => ({
|
|
239
|
-
id: S(p.idTemplate, s),
|
|
240
|
-
name: p.name,
|
|
241
|
-
flowableClass: p.flowableClass,
|
|
242
|
-
extensionElements: {
|
|
243
|
-
fields: (p.extensionFields || []).map((b) => ({
|
|
244
|
-
name: b.name,
|
|
245
|
-
stringValue: M(b, d)
|
|
246
|
-
}))
|
|
247
|
-
}
|
|
248
|
-
}));
|
|
249
|
-
let l = null;
|
|
250
|
-
const f = [];
|
|
251
|
-
a.gateway && (l = S(a.gateway.idTemplate, s), s.gateway = l, f.push({ id: l, name: a.gateway.name }));
|
|
252
|
-
const h = /* @__PURE__ */ new Set(), g = (a.templateFlows || []).map((p) => {
|
|
253
|
-
const b = S(p.from, s), N = S(p.to, s);
|
|
254
|
-
return N === o.endEventIds.failure && h.add(o.endEventIds.failure), N === o.endEventIds.rejected && h.add(o.endEventIds.rejected), {
|
|
255
|
-
id: p.idTemplate ? S(p.idTemplate, s) : `${b}-to-${N}`,
|
|
256
|
-
sourceRef: b,
|
|
257
|
-
targetRef: N,
|
|
258
|
-
conditionExpression: p.condition ? S(p.condition, s) : null
|
|
259
|
-
};
|
|
260
|
-
}), v = [], w = a.dmnEmit ? H(a.dmnEmit, e, o.conditionPathPrefix) : null, r = ((y = i[0]) == null ? void 0 : y.id) ?? e.id, m = l ?? ((T = i[i.length - 1]) == null ? void 0 : T.id) ?? e.id, u = {};
|
|
261
|
-
return Object.keys(a.outgoingConditions || {}).forEach((p) => {
|
|
262
|
-
u[p] = S(
|
|
263
|
-
a.outgoingConditions[p],
|
|
264
|
-
s
|
|
265
|
-
);
|
|
266
|
-
}), {
|
|
267
|
-
serviceTasks: i,
|
|
268
|
-
gateways: f,
|
|
269
|
-
callActivities: v,
|
|
270
|
-
templateFlows: g,
|
|
271
|
-
dmn: w,
|
|
272
|
-
bpmnEntry: r,
|
|
273
|
-
bpmnExit: m,
|
|
274
|
-
outgoingConditions: u,
|
|
275
|
-
endsNeeded: h
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
function te(e) {
|
|
279
|
-
var C, x, A, $;
|
|
280
|
-
const { state: t, tasksByKey: n, context: o, config: a } = e, s = {
|
|
281
|
-
...I,
|
|
282
|
-
...a ?? {},
|
|
283
|
-
triggerToCategory: { ...I.triggerToCategory, ...(a == null ? void 0 : a.triggerToCategory) ?? {} },
|
|
284
|
-
schedulerEventTypes: (a == null ? void 0 : a.schedulerEventTypes) ?? I.schedulerEventTypes,
|
|
285
|
-
endEventIds: { ...I.endEventIds, ...(a == null ? void 0 : a.endEventIds) ?? {} },
|
|
286
|
-
endEventNames: { ...I.endEventNames, ...(a == null ? void 0 : a.endEventNames) ?? {} }
|
|
287
|
-
}, d = Array.isArray(t == null ? void 0 : t.slots) ? t.slots : [], i = d.find((c) => c.kind === "triggerFixed"), l = (C = i == null ? void 0 : i.nodeData) == null ? void 0 : C.eventType, f = ((x = i == null ? void 0 : i.nodeData) == null ? void 0 : x.type) || "event", h = (A = i == null ? void 0 : i.nodeData) == null ? void 0 : A.sources, g = Array.isArray(h) ? h.map(
|
|
288
|
-
(c) => typeof c == "string" ? c : (c == null ? void 0 : c.value) ?? (c == null ? void 0 : c.key) ?? ""
|
|
289
|
-
).filter(Boolean) : [], v = s.triggerToCategory[l ?? ""] ?? s.defaultWorkflowCategory, r = !!l && s.schedulerEventTypes.includes(l) ? ["SCHEDULER"] : g, u = d.filter(B).map((c) => ({
|
|
290
|
-
slot: c,
|
|
291
|
-
emit: J(c, n[c.descriptorType ?? ""] ?? {}, o, s)
|
|
292
|
-
})), E = [], y = [], T = [], p = [], b = [], N = /* @__PURE__ */ new Set();
|
|
293
|
-
u.forEach(({ emit: c }) => {
|
|
294
|
-
E.push(...c.serviceTasks), y.push(...c.gateways), T.push(...c.callActivities), p.push(...c.templateFlows), c.dmn && b.push(c.dmn), c.endsNeeded.forEach((D) => N.add(D));
|
|
295
|
-
});
|
|
296
|
-
const R = [];
|
|
297
|
-
if (u.length > 0) {
|
|
298
|
-
R.push({
|
|
299
|
-
id: `${s.startEventId}-to-${u[0].emit.bpmnEntry}`,
|
|
300
|
-
sourceRef: s.startEventId,
|
|
301
|
-
targetRef: u[0].emit.bpmnEntry,
|
|
302
|
-
conditionExpression: null
|
|
303
|
-
});
|
|
304
|
-
for (let D = 0; D < u.length - 1; D += 1) {
|
|
305
|
-
const F = u[D].emit, O = u[D + 1].emit, j = F.outgoingConditions.success ?? F.outgoingConditions.pass ?? F.outgoingConditions.approved ?? null;
|
|
306
|
-
R.push({
|
|
307
|
-
id: `${F.bpmnExit}-to-${O.bpmnEntry}`,
|
|
308
|
-
sourceRef: F.bpmnExit,
|
|
309
|
-
targetRef: O.bpmnEntry,
|
|
310
|
-
conditionExpression: j
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
const c = u[u.length - 1].emit;
|
|
314
|
-
R.push({
|
|
315
|
-
id: `${c.bpmnExit}-to-${s.endEventIds.success}`,
|
|
316
|
-
sourceRef: c.bpmnExit,
|
|
317
|
-
targetRef: s.endEventIds.success,
|
|
318
|
-
conditionExpression: null
|
|
319
|
-
});
|
|
320
|
-
} else
|
|
321
|
-
R.push({
|
|
322
|
-
id: `${s.startEventId}-to-${s.endEventIds.success}`,
|
|
323
|
-
sourceRef: s.startEventId,
|
|
324
|
-
targetRef: s.endEventIds.success,
|
|
325
|
-
conditionExpression: null
|
|
326
|
-
});
|
|
327
|
-
const k = [
|
|
328
|
-
{
|
|
329
|
-
id: s.endEventIds.success,
|
|
330
|
-
name: s.endEventNames.success,
|
|
331
|
-
executionListener: null
|
|
332
|
-
},
|
|
333
|
-
...N.has(s.endEventIds.failure) ? [{ id: s.endEventIds.failure, name: s.endEventNames.failure }] : [],
|
|
334
|
-
...N.has(s.endEventIds.rejected) ? [{ id: s.endEventIds.rejected, name: s.endEventNames.rejected }] : []
|
|
335
|
-
], P = {
|
|
336
|
-
id: s.startEventId,
|
|
337
|
-
name: "Start",
|
|
338
|
-
...f === "event" ? {
|
|
339
|
-
messageEventDefinition: {
|
|
340
|
-
messageRef: `msg_${(l || "EVENT").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`
|
|
341
|
-
}
|
|
342
|
-
} : {}
|
|
343
|
-
};
|
|
344
|
-
return {
|
|
345
|
-
canvasState: {
|
|
346
|
-
slots: d,
|
|
347
|
-
branches: (t == null ? void 0 : t.branches) ?? {}
|
|
348
|
-
},
|
|
349
|
-
bpmn: {
|
|
350
|
-
customerId: `${o.customerKey}`,
|
|
351
|
-
workflowCategory: v,
|
|
352
|
-
sources: r,
|
|
353
|
-
process: {
|
|
354
|
-
name: o.workflowName,
|
|
355
|
-
isExecutable: "true"
|
|
356
|
-
},
|
|
357
|
-
startEvent: P,
|
|
358
|
-
endEvent: k,
|
|
359
|
-
sequenceFlows: [...R, ...p],
|
|
360
|
-
exclusiveGateways: y,
|
|
361
|
-
serviceTasks: E,
|
|
362
|
-
callActivities: T
|
|
363
|
-
},
|
|
364
|
-
...f === "event" ? {
|
|
365
|
-
message: {
|
|
366
|
-
id: `msg_${(l || "event").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`,
|
|
367
|
-
name: `msg_${(l || "event").toLowerCase()}_${r.length > 0 ? r.join("_").toLowerCase() : "default"}_${o.customerKey}`
|
|
368
|
-
},
|
|
369
|
-
dmns: b
|
|
370
|
-
} : {
|
|
371
|
-
eventConfig: [
|
|
372
|
-
{
|
|
373
|
-
eventType: l,
|
|
374
|
-
config: {
|
|
375
|
-
type: l,
|
|
376
|
-
...(($ = i == null ? void 0 : i.nodeData) == null ? void 0 : $.scheduler) ?? {}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
]
|
|
380
|
-
}
|
|
381
|
-
};
|
|
63
|
+
function f(e, s) {
|
|
64
|
+
const o = `${s}.${e.key}`, t = e.description ?? (e.sample !== void 0 && e.sample !== null ? String(e.sample) : void 0), a = { label: e.label, path: o };
|
|
65
|
+
return t !== void 0 && (a.description = t), e.children && e.children.length > 0 && (a.children = e.children.map((i) => f(i, o))), a;
|
|
382
66
|
}
|
|
383
67
|
export {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
68
|
+
Ue as ActionNode,
|
|
69
|
+
Ye as ApprovalNode,
|
|
70
|
+
N as DynamicFormRenderer,
|
|
71
|
+
Je as EdgeWithPlusLabel,
|
|
72
|
+
Ke as EndNode,
|
|
73
|
+
R as FF,
|
|
74
|
+
ce as FIELD_TYPE_OPTIONS,
|
|
75
|
+
Qe as FilterNode,
|
|
76
|
+
Ae as FlowForgeCanvas,
|
|
77
|
+
Ee as FlowForgeHeader,
|
|
78
|
+
D as FlowForgeRegistry,
|
|
79
|
+
P as FlowForm,
|
|
80
|
+
W as FormulaInput,
|
|
81
|
+
A as InfiniteSelectField,
|
|
82
|
+
he as NodeTypeRegistry,
|
|
83
|
+
E as OptionsResolversProvider,
|
|
84
|
+
Xe as RestApiNode,
|
|
85
|
+
de as SchemaBuilder,
|
|
86
|
+
pe as SchemaBuilderDrawer,
|
|
87
|
+
Ze as StartNode,
|
|
88
|
+
Ie as SubWorkflowPreviewDrawer,
|
|
89
|
+
I as TablePickerField,
|
|
90
|
+
De as TemplateRegistry,
|
|
91
|
+
es as TriggerNode,
|
|
92
|
+
C as VariablePicker,
|
|
93
|
+
O as VariablePickerProvider,
|
|
94
|
+
ss as WebhookTriggerNode,
|
|
95
|
+
Ce as WorkflowCanvas,
|
|
96
|
+
Oe as WorkflowExecutionHistory,
|
|
97
|
+
Be as WorkflowTemplateLibrary,
|
|
98
|
+
Ve as accessRequestSkeleton,
|
|
99
|
+
B as astHasRefs,
|
|
100
|
+
V as astToTokens,
|
|
101
|
+
me as baseNodeDefaults,
|
|
102
|
+
rs as buildBackendPayload,
|
|
103
|
+
z as buildEvaluationPayload,
|
|
104
|
+
L as buildFieldConfig,
|
|
105
|
+
q as buildFormulaPath,
|
|
106
|
+
H as buildSelectStyles,
|
|
107
|
+
M as buildValidationSchema,
|
|
108
|
+
y as buildVariableGroups,
|
|
109
|
+
os as builtInNodeTypes,
|
|
110
|
+
ge as conditionBranchDescriptor,
|
|
111
|
+
_ as dataSourceRegistry,
|
|
112
|
+
Me as defaultFlowForgeMessages,
|
|
113
|
+
be as defineNode,
|
|
114
|
+
Fe as endEventDescriptor,
|
|
115
|
+
$ as errorTextStyle,
|
|
116
|
+
j as extractLabel,
|
|
117
|
+
G as fieldRegistry,
|
|
118
|
+
U as hasFormulaTokens,
|
|
119
|
+
Y as helperTextStyle,
|
|
120
|
+
J as inputStyle,
|
|
121
|
+
K as isFormula,
|
|
122
|
+
$e as loadWorkflowFromBpmn,
|
|
123
|
+
ke as makeSubWorkflowDescriptor,
|
|
124
|
+
we as nodeTypeRegistry,
|
|
125
|
+
T as notificationChannelRegistry,
|
|
126
|
+
Se as notificationDescriptor,
|
|
127
|
+
ze as offboardingSkeleton,
|
|
128
|
+
Q as parseToAST,
|
|
129
|
+
Te as restApiDescriptor,
|
|
130
|
+
je as saveWorkflowToBpmn,
|
|
131
|
+
X as serializeAST,
|
|
132
|
+
Z as serializeASTAsConfig,
|
|
133
|
+
ee as serializeConditionExpressions,
|
|
134
|
+
ye as startEventDescriptor,
|
|
135
|
+
se as stripFormulaTokens,
|
|
136
|
+
xe as subWorkflowDescriptor,
|
|
137
|
+
Pe as templateRegistry,
|
|
138
|
+
oe as tokenize,
|
|
139
|
+
ae as unwrapFormula,
|
|
140
|
+
re as useDynamicOptions,
|
|
141
|
+
ue as useFlowForm,
|
|
142
|
+
te as useOptionsResolvers,
|
|
143
|
+
ie as useVariablePickerContext,
|
|
144
|
+
Le as userOnboardingSkeleton,
|
|
145
|
+
qe as webhookIntegrationSkeleton,
|
|
146
|
+
ve as webhookTriggerDescriptor,
|
|
147
|
+
Ne as webhookTriggerTemplate,
|
|
148
|
+
ne as wrapFormula
|
|
465
149
|
};
|
|
466
150
|
//# sourceMappingURL=index.js.map
|