@uipath/maestro-builder-sdk 6.86.3 → 6.86.4
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/api-index.md +75 -75
- package/dist/api-members.md +340 -340
- package/dist/bpmn/bpmn-sdk.d.ts +13 -3
- package/dist/bpmn/bpmn-sdk.js +0 -2
- package/dist/bpmn/check.js +16 -0
- package/dist/bpmn/decompile.js +15 -1
- package/dist/core/refusals.d.ts +1 -1
- package/dist/core/refusals.js +1 -1
- package/package.json +2 -2
package/dist/bpmn/bpmn-sdk.d.ts
CHANGED
|
@@ -122,7 +122,12 @@ export type BpmnNode = {
|
|
|
122
122
|
name?: string;
|
|
123
123
|
attachedTo: string;
|
|
124
124
|
cancelActivity: boolean;
|
|
125
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Absent for a boundary with no event definition: a deployed process can carry
|
|
127
|
+
* one, and the builder keeps it as written. The platform never fires it, so
|
|
128
|
+
* `check` warns (BPMN_BOUNDARY_NO_EVENT).
|
|
129
|
+
*/
|
|
130
|
+
event?: EventDef;
|
|
126
131
|
/** A `uipath:activity` payload on the boundary — see {@link ExtensionPayload}. */
|
|
127
132
|
payload?: ExtensionPayload;
|
|
128
133
|
} | {
|
|
@@ -774,8 +779,13 @@ export interface ThrowOpts {
|
|
|
774
779
|
/**
|
|
775
780
|
* Options for `.boundaryEvent()`: the activity it attaches to, whether it
|
|
776
781
|
* interrupts that activity, and the event definition — exactly one of
|
|
777
|
-
* `message` / `timer` / `error` (checked in the order error, timer, message
|
|
778
|
-
*
|
|
782
|
+
* `message` / `timer` / `error` (checked in the order error, timer, message).
|
|
783
|
+
*
|
|
784
|
+
* None at all writes a `bpmn:boundaryEvent` with no event definition. The platform
|
|
785
|
+
* never triggers such a boundary (the local engine treats it as a catch-all error
|
|
786
|
+
* boundary, which production does not), so `check` warns (BPMN_BOUNDARY_NO_EVENT); the builder
|
|
787
|
+
* still writes it, because deployed processes carry the shape and
|
|
788
|
+
* `uip maestro bpmn validate` accepts it, so a decompiled one has to compile back.
|
|
779
789
|
*/
|
|
780
790
|
export interface BoundaryOpts {
|
|
781
791
|
/** Display name the designer shows on the event. */
|
package/dist/bpmn/bpmn-sdk.js
CHANGED
|
@@ -796,8 +796,6 @@ class ScopeBuilder {
|
|
|
796
796
|
event = { type: 'timer', timer: normTimer(opts.timer) };
|
|
797
797
|
else if (opts.message !== undefined)
|
|
798
798
|
event = { type: 'message', messageRef: this._defs.messageRef(opts.message) };
|
|
799
|
-
else
|
|
800
|
-
throw new CompileRefusal('BPMN_BOUNDARY_NO_EVENT', `boundaryEvent "${id}" needs one of { message, timer, error }.`);
|
|
801
799
|
return this.push({
|
|
802
800
|
kind: 'boundaryEvent',
|
|
803
801
|
id,
|
package/dist/bpmn/check.js
CHANGED
|
@@ -1360,6 +1360,22 @@ inEventSubProcess = false) {
|
|
|
1360
1360
|
// An unknown target is the serializer's BOUNDARY_UNATTACHED.
|
|
1361
1361
|
if (target && !isActivityNode(target))
|
|
1362
1362
|
diags.push({ level: 'error', code: 'BOUNDARY_NOT_ACTIVITY', message: `Boundary event "${n.id}" must attach to an activity, not "${target.kind}".`, where: n.id });
|
|
1363
|
+
// No definition means the platform never triggers it: PO.BpmnEngine arms it as a
|
|
1364
|
+
// timer with no props, and its error routing only considers error boundaries. So
|
|
1365
|
+
// its path is dead in production. (The local engine still runs it as a catch-all
|
|
1366
|
+
// error boundary, a legacy V1-port behaviour — #1826.) A warning,
|
|
1367
|
+
// not an error: deployed processes carry the shape and `uip maestro bpmn
|
|
1368
|
+
// validate` accepts it, so refusing it would stop a brownfield process from
|
|
1369
|
+
// compiling back over an element the edit did not touch.
|
|
1370
|
+
if (n.event === undefined)
|
|
1371
|
+
diags.push({
|
|
1372
|
+
level: 'warning',
|
|
1373
|
+
code: 'BPMN_BOUNDARY_NO_EVENT',
|
|
1374
|
+
message: `Boundary event "${n.id}" has no event definition, so the platform never fires it and the path after it ` +
|
|
1375
|
+
'never runs (the local engine runs it as a catch-all error boundary, so a local run can pass where ' +
|
|
1376
|
+
'production does not). Give it one of `message`, `timer` or `error`, or remove it.',
|
|
1377
|
+
where: n.id,
|
|
1378
|
+
});
|
|
1363
1379
|
}
|
|
1364
1380
|
// A timer event definition needs one of duration/date/cycle.
|
|
1365
1381
|
// An error START event only means something inside an event sub-process: that is
|
package/dist/bpmn/decompile.js
CHANGED
|
@@ -1338,6 +1338,20 @@ function labelKeptFlows(lift, into = new Set()) {
|
|
|
1338
1338
|
function isEventSubProcess(el) {
|
|
1339
1339
|
return el.$type === 'bpmn:SubProcess' && el.triggeredByEvent === true;
|
|
1340
1340
|
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Whether the builder, in a `sequence` scope, implies an edge OUT of this element to
|
|
1343
|
+
* the statement written after it — the mirror of `opensPath` in bpmn-sdk.ts. An end
|
|
1344
|
+
* event, a gateway, a boundary event and an event sub-process never do, so a flow
|
|
1345
|
+
* out of one of them must be written explicitly. A boundary the lift leaves flat (one
|
|
1346
|
+
* with no event definition, say) was implied anyway, and the recompile refused the
|
|
1347
|
+
* element after it with BPMN_SEQUENCE_NO_INCOMING.
|
|
1348
|
+
*/
|
|
1349
|
+
function opensPathInSequence(el) {
|
|
1350
|
+
const kind = localName(el.$type);
|
|
1351
|
+
if (kind === 'endEvent' || kind === 'boundaryEvent' || kind.endsWith('Gateway'))
|
|
1352
|
+
return false;
|
|
1353
|
+
return !isEventSubProcess(el);
|
|
1354
|
+
}
|
|
1341
1355
|
/** An element an arm may contain: something with one way in and one way out, or an end. */
|
|
1342
1356
|
function isArmNode(el) {
|
|
1343
1357
|
const kind = localName(el.$type);
|
|
@@ -1872,7 +1886,7 @@ function emitScopeNested(chain, container, depth, indent, summary, relabel, sequ
|
|
|
1872
1886
|
// statement IS the successor, the edge may be relabelled (or already carries the
|
|
1873
1887
|
// derived id), and it carries no label. Otherwise it is written here, before the
|
|
1874
1888
|
// next statement, so the builder does not imply a second one beside it.
|
|
1875
|
-
if (sequence && fresh && (relabel || derivableFlow(f)) && !labelledImpliedFlow([f], false))
|
|
1889
|
+
if (sequence && fresh && opensPathInSequence(el) && (relabel || derivableFlow(f)) && !labelledImpliedFlow([f], false))
|
|
1876
1890
|
implyFlow(plan, f);
|
|
1877
1891
|
else if (sequence)
|
|
1878
1892
|
writeNow([f]);
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare const REFUSALS: {
|
|
|
67
67
|
readonly BOUNDARY_UNATTACHED: "lowering";
|
|
68
68
|
readonly BPMN_BINDING_READ_BEFORE_DECLARED: "lowering";
|
|
69
69
|
readonly BPMN_BINDING_RESOURCE_KEY_CONFLICT: "lowering";
|
|
70
|
-
readonly BPMN_BOUNDARY_NO_EVENT: "
|
|
70
|
+
readonly BPMN_BOUNDARY_NO_EVENT: "lint";
|
|
71
71
|
readonly BPMN_BRANCH_EMPTY_ARMS: "lowering";
|
|
72
72
|
readonly BPMN_BRANCH_NOWHERE_TO_GO: "lowering";
|
|
73
73
|
readonly BPMN_BRANCH_NO_ARMS: "lowering";
|
package/dist/core/refusals.js
CHANGED
|
@@ -116,7 +116,7 @@ export const REFUSALS = {
|
|
|
116
116
|
BOUNDARY_UNATTACHED: 'lowering',
|
|
117
117
|
BPMN_BINDING_READ_BEFORE_DECLARED: 'lowering',
|
|
118
118
|
BPMN_BINDING_RESOURCE_KEY_CONFLICT: 'lowering',
|
|
119
|
-
BPMN_BOUNDARY_NO_EVENT: '
|
|
119
|
+
BPMN_BOUNDARY_NO_EVENT: 'lint',
|
|
120
120
|
BPMN_BRANCH_EMPTY_ARMS: 'lowering',
|
|
121
121
|
BPMN_BRANCH_NOWHERE_TO_GO: 'lowering',
|
|
122
122
|
BPMN_BRANCH_NO_ARMS: 'lowering',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.86.
|
|
3
|
+
"version": "6.86.4",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"@types/node": "^22.7.0",
|
|
104
104
|
"esbuild": "^0.28.1"
|
|
105
105
|
},
|
|
106
|
-
"gitref": "
|
|
106
|
+
"gitref": "63df9d1690c00f6a84b8760327ca2ab69deef72e"
|
|
107
107
|
}
|