@uipath/maestro-builder-sdk 6.124.12 → 6.124.13
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 +5 -5
- package/dist/api-members.md +29 -29
- package/dist/check.js +2 -2
- package/dist/decompile.js +18 -9
- package/dist/flow-sdk.d.ts +15 -4
- package/dist/flow-sdk.js +18 -5
- package/dist/serialize.d.ts +13 -0
- package/dist/serialize.js +48 -0
- package/package.json +2 -2
package/dist/api-index.md
CHANGED
|
@@ -67,7 +67,7 @@ could hand you spans for a version you do not have.
|
|
|
67
67
|
| `apiWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:53-87` | Actions | Invoke a deployed API workflow — a coded workflow published to Orchestrator, run as a serverless job rather than by a… |
|
|
68
68
|
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:125-236` | Option shapes | 9 field(s) |
|
|
69
69
|
| `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:146-254` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
|
|
70
|
-
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:
|
|
70
|
+
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1325-1348` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
|
|
71
71
|
| `AskedField` | interface | `dist/core/actions.d.ts:258-277` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
|
|
72
72
|
| `at` | function | `dist/flow-sdk.d.ts:620-649` | Flow construction | A node's layout at a canvas position — the short form of a NodeLayout for the `nodes` map of FlowBuilder.layout. |
|
|
73
73
|
| `batchTransform` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:55-89` | Actions | Add AI-generated columns to a CSV — the platform's **Batch transform** node, `uipath.pattern.batch-transform` (service… |
|
|
@@ -152,11 +152,11 @@ could hand you spans for a version you do not have.
|
|
|
152
152
|
| `FilterCondition` | type | `dist/nodes/transform/flow/spec.d.ts:10-11` | Supporting types | Comparison a filter rule applies to a field. |
|
|
153
153
|
| `FilterMatch` | type | `dist/nodes/transform/flow/spec.d.ts:8-9` | Supporting types | How a filter combines its rules: every rule must match, or any one. |
|
|
154
154
|
| `FilterRule` | interface | `dist/nodes/transform/flow/spec.d.ts:12-24` | Supporting types | 3 field(s) |
|
|
155
|
-
| `flow` | function | `dist/flow-sdk.d.ts:
|
|
155
|
+
| `flow` | function | `dist/flow-sdk.d.ts:1753-1768` | Flow construction | Start building a flow with the given id. |
|
|
156
156
|
| `FlowAction` | class | `dist/core/node-classes.d.ts:171-177` | Supporting types | A node placed as a step — pass an instance to `.step(name, …)`. |
|
|
157
157
|
| `FlowActionSpec` | type | `dist/flow-sdk.d.ts:61-62` | Supporting types | What `.step()` accepts here: the shared actions plus this SDK's subflow. |
|
|
158
158
|
| `FlowActionSpecs` | interface | `dist/core/actions.d.ts:959-1000` | Supporting types | Every action kind, keyed by kind, to the body of its spec — the arm's fields other than `kind`. |
|
|
159
|
-
| `FlowBuilder` | class | `dist/flow-sdk.d.ts:
|
|
159
|
+
| `FlowBuilder` | class | `dist/flow-sdk.d.ts:1349-1752` | Builders | 15 member(s) |
|
|
160
160
|
| `FlowLayout` | interface | `dist/flow-sdk.d.ts:736-749` | Supporting types | Designer layout for a flow, keyed by AUTHOR-level ids: node entries by step name (plus the trigger id and `end`), edge… |
|
|
161
161
|
| `FlowMetadata` | interface | `dist/nodes/script/flow/spec.d.ts:63-95` | Actions | The instance metadata, as a script function's second parameter sees it. |
|
|
162
162
|
| `FlowNode` | class | `dist/core/node-classes.d.ts:135-170` | Supporting types | The abstract root of every definition-backed node the builder can place. |
|
|
@@ -273,12 +273,12 @@ could hand you spans for a version you do not have.
|
|
|
273
273
|
| `ShownField` | interface | `dist/core/actions.d.ts:242-257` | Supporting types | A value the reviewer READS: shown on the form, filled in from the flow. |
|
|
274
274
|
| `StartingPrompt` | interface | `dist/nodes/trigger/flow/spec.d.ts:52-63` | Supporting types | One suggestion the chat shows before the user types: a chip labelled `displayPrompt` that sends `actualPrompt` to the… |
|
|
275
275
|
| `Step` | type | `dist/flow-sdk.d.ts:484-604` | Supporting types | |
|
|
276
|
-
| `StepList` | class | `dist/flow-sdk.d.ts:816-
|
|
276
|
+
| `StepList` | class | `dist/flow-sdk.d.ts:816-1324` | Builders | Collects a sequence of steps. |
|
|
277
277
|
| `StepOptions` | interface | `dist/flow-sdk.d.ts:313-346` | Option shapes | The options of `.step()`: the NodeOptions, plus `draft` for a node the canvas saved unfinished. |
|
|
278
278
|
| `STICKY_NOTE_COLORS` | const | `dist/flow-sdk.d.ts:689-694` | Flow construction | The designer's sticky-note palette. |
|
|
279
279
|
| `StickyNote` | interface | `dist/flow-sdk.d.ts:701-735` | Supporting types | A canvas sticky note — free text pinned to the diagram, for the humans reading it. |
|
|
280
280
|
| `StickyNoteColor` | type | `dist/flow-sdk.d.ts:695-700` | Supporting types | A sticky note's swatch. |
|
|
281
|
-
| `subflow` | function | `dist/flow-sdk.d.ts:
|
|
281
|
+
| `subflow` | function | `dist/flow-sdk.d.ts:1769-1808` | Flow construction | Run another flow as one step, and read back what it returns. |
|
|
282
282
|
| `SubflowSpec` | interface | `dist/flow-sdk.d.ts:53-60` | Supporting types | A step that runs a child flow. |
|
|
283
283
|
| `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-54` | Actions | Summarize a document with citations — the platform's **Summarize** node. |
|
|
284
284
|
| `SummarizeInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:9-41` | Option shapes | 3 field(s) |
|
package/dist/api-members.md
CHANGED
|
@@ -78,7 +78,7 @@ not find it either.
|
|
|
78
78
|
| `app` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1684-1685` |
|
|
79
79
|
| `appSystemName` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:205-210` |
|
|
80
80
|
| `appVersion` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1662-1663` |
|
|
81
|
-
| `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:
|
|
81
|
+
| `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1337` |
|
|
82
82
|
| `assignee` | property | `HitlRecipient` | `dist/nodes/hitl/flow/spec.d.ts:54-69` |
|
|
83
83
|
| `assignmentCriteria` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:897-903` |
|
|
84
84
|
| `async` | property | `OrchestratorAsyncOpts` | `dist/bpmn/bpmn-sdk.d.ts:1555-1559` |
|
|
@@ -115,14 +115,14 @@ not find it either.
|
|
|
115
115
|
| `body` | property | `TypedContextRow` | `dist/bpmn/typed-node.d.ts:221-226` |
|
|
116
116
|
| `body` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:252-253` |
|
|
117
117
|
| `boundaryEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2638-2645` |
|
|
118
|
-
| `branch` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
118
|
+
| `branch` | method | `StepList` | `dist/flow-sdk.d.ts:1039-1060` |
|
|
119
119
|
| `branches` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:25-30` |
|
|
120
|
-
| `break` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
120
|
+
| `break` | method | `StepList` | `dist/flow-sdk.d.ts:1184-1193` |
|
|
121
121
|
| `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:476-477` |
|
|
122
122
|
| `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:458-462` |
|
|
123
123
|
| `build` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:4064-4073` |
|
|
124
124
|
| `build` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2181-2186` |
|
|
125
|
-
| `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
125
|
+
| `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1743-1751` |
|
|
126
126
|
| `businessEvent` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2170-2180` |
|
|
127
127
|
| `businessEvent` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:85-92` |
|
|
128
128
|
| `businessEvents` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1232-1233` |
|
|
@@ -207,7 +207,7 @@ not find it either.
|
|
|
207
207
|
| `contextRows` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1890-1897` |
|
|
208
208
|
| `contextRows` | property | `ExtensionPayload` | `dist/bpmn/bpmn-sdk.d.ts:772-795` |
|
|
209
209
|
| `contextVerbatim` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1970-1975` |
|
|
210
|
-
| `continue` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
210
|
+
| `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1194-1208` |
|
|
211
211
|
| `contribute` | method | `FlowNode` | `dist/core/node-classes.d.ts:153-162` |
|
|
212
212
|
| `controlType` | property | `FormFieldSettings` | `dist/core/actions.d.ts:204-208` |
|
|
213
213
|
| `conversationalAgent` | property | `FlowActionSpecs` | `dist/nodes/agent/flow/spec.d.ts:460-463` |
|
|
@@ -251,7 +251,7 @@ not find it either.
|
|
|
251
251
|
| `definition` | method | `NodeCatalog` | `dist/core/node-catalog.d.ts:13-14` |
|
|
252
252
|
| `definition` | property | `NodeContribution` | `dist/core/node-classes.d.ts:120-121` |
|
|
253
253
|
| `definitions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:794-799` |
|
|
254
|
-
| `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
254
|
+
| `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1603-1643` |
|
|
255
255
|
| `delay` | property | `FlowActionSpecs` | `dist/nodes/delay/flow/spec.d.ts:38-41` |
|
|
256
256
|
| `dependsOn` | property | `LookupSpec` | `dist/core/lookups.d.ts:34-35` |
|
|
257
257
|
| `deployment` | property | `CaseDocumentExtractionSpec` | `dist/case/case-sdk.d.ts:632-637` |
|
|
@@ -274,7 +274,7 @@ not find it either.
|
|
|
274
274
|
| `description` | property | `CustomGuardrail` | `dist/core/actions.d.ts:381` |
|
|
275
275
|
| `description` | property | `EscalationRef` | `dist/core/actions.d.ts:859-860` |
|
|
276
276
|
| `description` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:328` |
|
|
277
|
-
| `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
277
|
+
| `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1375-1382` |
|
|
278
278
|
| `description` | property | `FormFieldSettings` | `dist/core/actions.d.ts:219-220` |
|
|
279
279
|
| `description` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:569` |
|
|
280
280
|
| `description` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:216-223` |
|
|
@@ -324,7 +324,7 @@ not find it either.
|
|
|
324
324
|
| `documentExtraction` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1550-1568` |
|
|
325
325
|
| `documentExtractionSaved` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1033-1034` |
|
|
326
326
|
| `documentId` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:90-91` |
|
|
327
|
-
| `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
327
|
+
| `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1159-1183` |
|
|
328
328
|
| `draft` | property | `BranchOptions` | `dist/flow-sdk.d.ts:352-362` |
|
|
329
329
|
| `draft` | property | `StepOptions` | `dist/flow-sdk.d.ts:318-332` |
|
|
330
330
|
| `dueDate` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:50-51` |
|
|
@@ -358,7 +358,7 @@ not find it either.
|
|
|
358
358
|
| `entry` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:1060` |
|
|
359
359
|
| `entry` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1052` |
|
|
360
360
|
| `entryPoint` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1023-1024` |
|
|
361
|
-
| `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
361
|
+
| `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1460-1528` |
|
|
362
362
|
| `entryPointId` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1976-1981` |
|
|
363
363
|
| `entryPointId` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1853-1857` |
|
|
364
364
|
| `entryPointId` | property | `ProcessMetadata` | `dist/bpmn/bpmn-sdk.d.ts:678-690` |
|
|
@@ -579,7 +579,7 @@ not find it either.
|
|
|
579
579
|
| `inOuts` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:287-288` |
|
|
580
580
|
| `inOuts` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:311-312` |
|
|
581
581
|
| `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2036-2082` |
|
|
582
|
-
| `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
582
|
+
| `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1684-1696` |
|
|
583
583
|
| `input` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1653-1654` |
|
|
584
584
|
| `input` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1517-1518` |
|
|
585
585
|
| `input` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3601-3628` |
|
|
@@ -673,7 +673,7 @@ not find it either.
|
|
|
673
673
|
| `kind` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:55` |
|
|
674
674
|
| `kind` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:166-167` |
|
|
675
675
|
| `kValue` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:609-610` |
|
|
676
|
-
| `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:
|
|
676
|
+
| `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1338-1347` |
|
|
677
677
|
| `label` | property | `AskedField` | `dist/core/actions.d.ts:262-263` |
|
|
678
678
|
| `label` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:1055` |
|
|
679
679
|
| `label` | property | `ContextIndexRef` | `dist/core/actions.d.ts:953-957` |
|
|
@@ -693,7 +693,7 @@ not find it either.
|
|
|
693
693
|
| `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1236-1237` |
|
|
694
694
|
| `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:790-791` |
|
|
695
695
|
| `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2015-2035` |
|
|
696
|
-
| `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
696
|
+
| `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1383-1412` |
|
|
697
697
|
| `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:386-418` |
|
|
698
698
|
| `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
|
|
699
699
|
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:474-475` |
|
|
@@ -708,7 +708,7 @@ not find it either.
|
|
|
708
708
|
| `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:89-100` |
|
|
709
709
|
| `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:441-442` |
|
|
710
710
|
| `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:1069-1070` |
|
|
711
|
-
| `loop` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
711
|
+
| `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1147-1158` |
|
|
712
712
|
| `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-68` |
|
|
713
713
|
| `marksCaseComplete` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:457` |
|
|
714
714
|
| `marksStageComplete` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:424` |
|
|
@@ -811,7 +811,7 @@ not find it either.
|
|
|
811
811
|
| `name` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2227-2228` |
|
|
812
812
|
| `name` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:327` |
|
|
813
813
|
| `name` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1861-1862` |
|
|
814
|
-
| `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
814
|
+
| `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1367-1374` |
|
|
815
815
|
| `name` | property | `FlowOpts` | `dist/bpmn/bpmn-sdk.d.ts:2019-2020` |
|
|
816
816
|
| `name` | property | `GatewayOpts` | `dist/bpmn/bpmn-sdk.d.ts:988-989` |
|
|
817
817
|
| `name` | property | `HandlerOpts` | `dist/bpmn/bpmn-sdk.d.ts:2122-2123` |
|
|
@@ -886,7 +886,7 @@ not find it either.
|
|
|
886
886
|
| `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3865-3873` |
|
|
887
887
|
| `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3874-3882` |
|
|
888
888
|
| `openTails` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:809-814` |
|
|
889
|
-
| `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
889
|
+
| `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1644-1683` |
|
|
890
890
|
| `operation` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:37` |
|
|
891
891
|
| `operation` | property | `CarriedConnectorOperation` | `dist/core/carried-connector-operation.d.ts:62-63` |
|
|
892
892
|
| `operation` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:691-692` |
|
|
@@ -908,7 +908,7 @@ not find it either.
|
|
|
908
908
|
| `outcomes` | property | `HumanTaskForm` | `dist/bpmn/human-task-form.d.ts:87-91` |
|
|
909
909
|
| `outcomes` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:313-314` |
|
|
910
910
|
| `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2083-2091` |
|
|
911
|
-
| `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
911
|
+
| `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1697-1732` |
|
|
912
912
|
| `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:97` |
|
|
913
913
|
| `output` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3629-3637` |
|
|
914
914
|
| `outputColumns` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:50-54` |
|
|
@@ -950,7 +950,7 @@ not find it either.
|
|
|
950
950
|
| `pageRange` | property | `DynamicExtractInputs` | `dist/nodes/document/flow/spec.d.ts:94-95` |
|
|
951
951
|
| `pageRange` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:205-206` |
|
|
952
952
|
| `parallel` | property | `LoopOptions` | `dist/flow-sdk.d.ts:451-452` |
|
|
953
|
-
| `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
953
|
+
| `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1104-1146` |
|
|
954
954
|
| `parallelGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2655-2664` |
|
|
955
955
|
| `parameters` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1818-1819` |
|
|
956
956
|
| `parameters` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1413-1414` |
|
|
@@ -1088,7 +1088,7 @@ not find it either.
|
|
|
1088
1088
|
| `retryBackoff` | property | `TaskRetryPolicy` | `dist/case/case-sdk.d.ts:957-958` |
|
|
1089
1089
|
| `retryBackoffType` | property | `TaskRetryPolicy` | `dist/case/case-sdk.d.ts:965-966` |
|
|
1090
1090
|
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:119-133` |
|
|
1091
|
-
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1091
|
+
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:1314-1323` |
|
|
1092
1092
|
| `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:35-40` |
|
|
1093
1093
|
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:617-640` |
|
|
1094
1094
|
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:219-235` |
|
|
@@ -1132,7 +1132,7 @@ not find it either.
|
|
|
1132
1132
|
| `schemaVersion` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3956-3985` |
|
|
1133
1133
|
| `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:774-780` |
|
|
1134
1134
|
| `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1935-1964` |
|
|
1135
|
-
| `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1135
|
+
| `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1563-1602` |
|
|
1136
1136
|
| `scope` | property | `EscalationRecipient` | `dist/case/case-sdk.d.ts:188` |
|
|
1137
1137
|
| `scopes` | property | `GuardrailSelector` | `dist/core/actions.d.ts:327` |
|
|
1138
1138
|
| `script` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1035-1036` |
|
|
@@ -1219,11 +1219,11 @@ not find it either.
|
|
|
1219
1219
|
| `steps` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:784` |
|
|
1220
1220
|
| `steps` | property | `StepList` | `dist/flow-sdk.d.ts:818` |
|
|
1221
1221
|
| `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:861-903` |
|
|
1222
|
-
| `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1223
|
-
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1224
|
-
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1222
|
+
| `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:984-1030` |
|
|
1223
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1248-1292` |
|
|
1224
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1293-1313` |
|
|
1225
1225
|
| `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:792-793` |
|
|
1226
|
-
| `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1226
|
+
| `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1413-1438` |
|
|
1227
1227
|
| `storageBucket` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:88-89` |
|
|
1228
1228
|
| `strategy` | property | `LookupSpec` | `dist/core/lookups.d.ts:33` |
|
|
1229
1229
|
| `style` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:1162-1163` |
|
|
@@ -1236,7 +1236,7 @@ not find it either.
|
|
|
1236
1236
|
| `subType` | property | `VarSpec` | `dist/flow-sdk.d.ts:96-97` |
|
|
1237
1237
|
| `summarize` | property | `FlowActionSpecs` | `dist/nodes/ai-patterns/flow/spec.d.ts:60-63` |
|
|
1238
1238
|
| `summary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:1144-1145` |
|
|
1239
|
-
| `switch` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1239
|
+
| `switch` | method | `StepList` | `dist/flow-sdk.d.ts:1061-1103` |
|
|
1240
1240
|
| `systemPrompt` | property | `ConversationalAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:57-62` |
|
|
1241
1241
|
| `systemPrompt` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:194-243` |
|
|
1242
1242
|
| `systemPrompt` | property | `VoiceAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:151-156` |
|
|
@@ -1262,7 +1262,7 @@ not find it either.
|
|
|
1262
1262
|
| `temperature` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:304-305` |
|
|
1263
1263
|
| `temperature` | property | `VoiceSettings` | `dist/nodes/agent/flow/spec.d.ts:138-139` |
|
|
1264
1264
|
| `terminate` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:915-916` |
|
|
1265
|
-
| `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1265
|
+
| `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1209-1247` |
|
|
1266
1266
|
| `threshold` | property | `ContextIndexRef` | `dist/core/actions.d.ts:949-950` |
|
|
1267
1267
|
| `timeCycle` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:286-287` |
|
|
1268
1268
|
| `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:92-118` |
|
|
@@ -1287,11 +1287,11 @@ not find it either.
|
|
|
1287
1287
|
| `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:785-787` |
|
|
1288
1288
|
| `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2125-2133` |
|
|
1289
1289
|
| `trigger` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:195-196` |
|
|
1290
|
-
| `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1290
|
+
| `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1439-1459` |
|
|
1291
1291
|
| `trigger` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:836-883` |
|
|
1292
1292
|
| `triggeredByEvent` | property | `SubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1233-1234` |
|
|
1293
1293
|
| `triggerId` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:802-808` |
|
|
1294
|
-
| `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1294
|
+
| `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1529-1548` |
|
|
1295
1295
|
| `triggerOptions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:788-789` |
|
|
1296
1296
|
| `triggers` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1234-1235` |
|
|
1297
1297
|
| `triggers` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:1185-1186` |
|
|
@@ -1365,7 +1365,7 @@ not find it either.
|
|
|
1365
1365
|
| `value` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:250-251` |
|
|
1366
1366
|
| `values` | property | `DataFabricCreateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:143-148` |
|
|
1367
1367
|
| `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2092-2124` |
|
|
1368
|
-
| `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1368
|
+
| `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1733-1742` |
|
|
1369
1369
|
| `var` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3592-3600` |
|
|
1370
1370
|
| `var` | property | `TaskOutputBinding` | `dist/case/case-sdk.d.ts:1004-1005` |
|
|
1371
1371
|
| `var` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:296-297` |
|
|
@@ -1392,7 +1392,7 @@ not find it either.
|
|
|
1392
1392
|
| `version` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:693-694` |
|
|
1393
1393
|
| `version` | property | `EventSubscription` | `dist/core/actions.d.ts:1259` |
|
|
1394
1394
|
| `version` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1869-1870` |
|
|
1395
|
-
| `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1395
|
+
| `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1549-1562` |
|
|
1396
1396
|
| `version` | property | `NodeOptions` | `dist/flow-sdk.d.ts:256-263` |
|
|
1397
1397
|
| `version` | property | `TriggerMeta` | `dist/core/connectors.d.ts:139` |
|
|
1398
1398
|
| `version` | property | `TriggerOptions` | `dist/core/actions.d.ts:1216-1217` |
|
package/dist/check.js
CHANGED
|
@@ -849,8 +849,8 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
849
849
|
if (exit !== undefined && seenExit.has(exit.port)) {
|
|
850
850
|
diags.push({
|
|
851
851
|
level: 'error', code: 'STEP_SWITCH_EXIT_DUP', step: s0.name,
|
|
852
|
-
message: `.stepSwitch("${s0.name}") has two arms for ${JSON.stringify(c.value)}.
|
|
853
|
-
+ `
|
|
852
|
+
message: `.stepSwitch("${s0.name}") has two arms for ${JSON.stringify(c.value)}. Each value has one `
|
|
853
|
+
+ `exit port and one arm, so put everything that exit needs in one arm.`,
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
856
|
else if (exit !== undefined) {
|
package/dist/decompile.js
CHANGED
|
@@ -1810,7 +1810,9 @@ function forkRegion(edges, stop, scope, ipdom, ctx, refInto, fromTrigger = false
|
|
|
1810
1810
|
// A trigger's arms that never meet, not every one of them ending: a side
|
|
1811
1811
|
// list off the trigger's port, before any step, then the walk goes on down
|
|
1812
1812
|
// the last arm (#2254) — the trigger twin of `sideListFanOut`.
|
|
1813
|
-
|
|
1813
|
+
// A Terminate behind a step only rules out the `.parallel` fold (an arm
|
|
1814
|
+
// there must start with it, TERMINATE_NOT_ARM_HEAD); a side list may end in one.
|
|
1815
|
+
const sides = fromTrigger ? sideListArms(edges, stop, scope, ctx, ipdom, refInto) : undefined;
|
|
1814
1816
|
if (sides) {
|
|
1815
1817
|
ctx.graph.accounted.add(sides.main);
|
|
1816
1818
|
return [...sides.segs, ...region(sides.main.targetNodeId, stop, scope, ipdom, ctx, refInto)];
|
|
@@ -2498,8 +2500,9 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
|
|
|
2498
2500
|
flagDropped(node, ctx, segs);
|
|
2499
2501
|
return segs;
|
|
2500
2502
|
}
|
|
2501
|
-
// Arms that never meet
|
|
2502
|
-
|
|
2503
|
+
// Arms that never meet and do not fold to a `.parallel`: side lists off the one port.
|
|
2504
|
+
// A Terminate behind a step rules out only the `.parallel` fold above.
|
|
2505
|
+
const sides = sideListFanOut(node, stop, scope, ctx, ipdom, refInto);
|
|
2503
2506
|
if (sides) {
|
|
2504
2507
|
segs.push(...sides.segs);
|
|
2505
2508
|
cursor = sides.cursor;
|
|
@@ -2538,8 +2541,10 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
|
|
|
2538
2541
|
* does reach a step of the last arm's path ends in `.stepToRef(...)`, the edge
|
|
2539
2542
|
* the file has.
|
|
2540
2543
|
*
|
|
2541
|
-
*
|
|
2542
|
-
*
|
|
2544
|
+
* Three or more arms are as many side lists, every one but the last.
|
|
2545
|
+
*
|
|
2546
|
+
* `undefined`, so the caller keeps its marker, when the edges leave more than
|
|
2547
|
+
* one port, from a human task (whose ports a side list may not rewire), when
|
|
2543
2548
|
* an arm goes straight into the enclosing loop's handle, or when an arm would
|
|
2544
2549
|
* walk past the region's `stop` the last arm does not reach (the enclosing
|
|
2545
2550
|
* construct emits that node).
|
|
@@ -2558,13 +2563,14 @@ function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
|
|
|
2558
2563
|
* fan-out (`sideListFanOut`) and a trigger's (`forkRegion`, #2254), where the
|
|
2559
2564
|
* side list comes before any step and leaves the trigger.
|
|
2560
2565
|
*
|
|
2561
|
-
*
|
|
2562
|
-
*
|
|
2563
|
-
*
|
|
2566
|
+
* Any number of arms: a port takes as many side lists as its definition allows
|
|
2567
|
+
* edges, and a forward port (`success`, a trigger's `output`) sets no limit.
|
|
2568
|
+
*
|
|
2569
|
+
* `undefined` when there is one edge, when they leave more than one port, when an arm goes straight into the enclosing loop's handle, or
|
|
2564
2570
|
* when an arm would walk past the region's `stop` the last arm does not reach.
|
|
2565
2571
|
*/
|
|
2566
2572
|
function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
|
|
2567
|
-
if (edges.length
|
|
2573
|
+
if (edges.length < 2)
|
|
2568
2574
|
return undefined;
|
|
2569
2575
|
const port = edges[0].sourcePort;
|
|
2570
2576
|
if (edges.some((e) => e.sourcePort !== port))
|
|
@@ -2587,6 +2593,9 @@ function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
|
|
|
2587
2593
|
if (body.length === 0)
|
|
2588
2594
|
return undefined;
|
|
2589
2595
|
segs.push(`.stepToList(${tsLiteral(port)}, ${armCb('p', body)})`);
|
|
2596
|
+
// A later arm that reaches a step this one printed hands control to it by name.
|
|
2597
|
+
for (const n of forwardReach([e.targetNodeId], scope, ctx.graph))
|
|
2598
|
+
into.add(n);
|
|
2590
2599
|
}
|
|
2591
2600
|
return { segs, main };
|
|
2592
2601
|
}
|
package/dist/flow-sdk.d.ts
CHANGED
|
@@ -970,12 +970,16 @@ declare class StepList {
|
|
|
970
970
|
* guards, so `steps.at(-1)` would refuse a second port-edge on the same step —
|
|
971
971
|
* and would attach `.stepToRef('error', …)` to the wrong thing.
|
|
972
972
|
*
|
|
973
|
-
*
|
|
974
|
-
* `maxConnections: 1`), so a second
|
|
975
|
-
*
|
|
973
|
+
* The `error` port takes exactly one outgoing edge (every definition that
|
|
974
|
+
* declares it says so: `maxConnections: 1`), so a second handler on it is
|
|
975
|
+
* refused here, where the author wrote it. Any other port takes as many side
|
|
976
|
+
* lists as its definition allows edges — a forward port (`success`, a
|
|
977
|
+
* trigger's `output`) sets no limit, so the canvas can draw several edges
|
|
978
|
+
* from it (#2254). Serialize checks every port against its definition's
|
|
979
|
+
* `maxConnections` (`assertPortConnectionLimits`).
|
|
976
980
|
*/
|
|
977
981
|
private portSource;
|
|
978
|
-
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `
|
|
982
|
+
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves the `error` port of `owner`. */
|
|
979
983
|
private refuseTaken;
|
|
980
984
|
/**
|
|
981
985
|
* Run a step list from a named PORT of the step this follows — the general form
|
|
@@ -1010,6 +1014,13 @@ declare class StepList {
|
|
|
1010
1014
|
* .step('right', script({ … })) // start -> right
|
|
1011
1015
|
* ```
|
|
1012
1016
|
*
|
|
1017
|
+
* A second `.stepToList()` on the same port adds a second path; it does not
|
|
1018
|
+
* replace or extend the first. A forward port (`success`, a trigger's `output`)
|
|
1019
|
+
* takes any number: two calls on `'success'` followed by `.step('next', …)`
|
|
1020
|
+
* compile to three edges out of the step, three paths that run in parallel. To run
|
|
1021
|
+
* steps one after another on one path, chain them inside ONE body. The `error`
|
|
1022
|
+
* port takes one edge: a second list on it is refused (PORT_ALREADY_ROUTED).
|
|
1023
|
+
*
|
|
1013
1024
|
* @param port - The port of the preceding step to leave from, e.g. `'error'`
|
|
1014
1025
|
* (`'output'`, the trigger's, when no step precedes it).
|
|
1015
1026
|
* @param bodyFn - Receives a sub-builder for the path that port leads to.
|
package/dist/flow-sdk.js
CHANGED
|
@@ -422,9 +422,13 @@ class StepList {
|
|
|
422
422
|
* guards, so `steps.at(-1)` would refuse a second port-edge on the same step —
|
|
423
423
|
* and would attach `.stepToRef('error', …)` to the wrong thing.
|
|
424
424
|
*
|
|
425
|
-
*
|
|
426
|
-
* `maxConnections: 1`), so a second
|
|
427
|
-
*
|
|
425
|
+
* The `error` port takes exactly one outgoing edge (every definition that
|
|
426
|
+
* declares it says so: `maxConnections: 1`), so a second handler on it is
|
|
427
|
+
* refused here, where the author wrote it. Any other port takes as many side
|
|
428
|
+
* lists as its definition allows edges — a forward port (`success`, a
|
|
429
|
+
* trigger's `output`) sets no limit, so the canvas can draw several edges
|
|
430
|
+
* from it (#2254). Serialize checks every port against its definition's
|
|
431
|
+
* `maxConnections` (`assertPortConnectionLimits`).
|
|
428
432
|
*/
|
|
429
433
|
portSource(port, called) {
|
|
430
434
|
let i = this.steps.length - 1;
|
|
@@ -464,11 +468,13 @@ class StepList {
|
|
|
464
468
|
this.refuseTaken(attached, port, called, owner);
|
|
465
469
|
return { name: source.name, owner };
|
|
466
470
|
}
|
|
467
|
-
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `
|
|
471
|
+
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves the `error` port of `owner`. */
|
|
468
472
|
refuseTaken(attached, port, called, owner) {
|
|
473
|
+
if (port !== 'error')
|
|
474
|
+
return;
|
|
469
475
|
const taken = attached.some((s) => (s.kind === 'stepToList' || s.kind === 'stepToRef') && s.port === port);
|
|
470
476
|
if (taken) {
|
|
471
|
-
throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port.
|
|
477
|
+
throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port. The error port takes exactly ONE outgoing edge `
|
|
472
478
|
+ `(the definition says so: maxConnections: 1), so put everything that path needs in one place.`);
|
|
473
479
|
}
|
|
474
480
|
}
|
|
@@ -505,6 +511,13 @@ class StepList {
|
|
|
505
511
|
* .step('right', script({ … })) // start -> right
|
|
506
512
|
* ```
|
|
507
513
|
*
|
|
514
|
+
* A second `.stepToList()` on the same port adds a second path; it does not
|
|
515
|
+
* replace or extend the first. A forward port (`success`, a trigger's `output`)
|
|
516
|
+
* takes any number: two calls on `'success'` followed by `.step('next', …)`
|
|
517
|
+
* compile to three edges out of the step, three paths that run in parallel. To run
|
|
518
|
+
* steps one after another on one path, chain them inside ONE body. The `error`
|
|
519
|
+
* port takes one edge: a second list on it is refused (PORT_ALREADY_ROUTED).
|
|
520
|
+
*
|
|
508
521
|
* @param port - The port of the preceding step to leave from, e.g. `'error'`
|
|
509
522
|
* (`'output'`, the trigger's, when no step precedes it).
|
|
510
523
|
* @param bodyFn - Receives a sub-builder for the path that port leads to.
|
package/dist/serialize.d.ts
CHANGED
|
@@ -301,6 +301,19 @@ export declare function serializeForCheck(built: BuiltFlow, opts?: SerializeOpts
|
|
|
301
301
|
* @throws Error naming each node whose configuration Studio Web would show empty.
|
|
302
302
|
*/
|
|
303
303
|
export declare function assertConnectorConfigurationRestorable(flow: any): void;
|
|
304
|
+
/**
|
|
305
|
+
* No port carries more edges than its definition's `constraints.maxConnections`
|
|
306
|
+
* allows — the rule `validate` and the canvas apply to a source handle.
|
|
307
|
+
*
|
|
308
|
+
* A port with no limit (a step's `success`, a trigger's `output`) takes any
|
|
309
|
+
* number of edges, which is how several `.stepToList()` side lists leave one
|
|
310
|
+
* port (#2254). The limit sits on the definition, so it is read there and not
|
|
311
|
+
* assumed per port name; the builder refuses the common case, a second
|
|
312
|
+
* `.onError()`, where the author wrote it.
|
|
313
|
+
*
|
|
314
|
+
* @throws CompileRefusal PORT_ALREADY_ROUTED naming each port over its limit.
|
|
315
|
+
*/
|
|
316
|
+
export declare function assertPortConnectionLimits(flow: any): void;
|
|
304
317
|
/**
|
|
305
318
|
* Node ids and edge ids are each one namespace over the WHOLE file: the root
|
|
306
319
|
* and every `subflows` entry. Pack flattens subflows into one BPMN document, so
|
package/dist/serialize.js
CHANGED
|
@@ -3823,6 +3823,7 @@ function serializeFlow(built, opts, scopeLayout) {
|
|
|
3823
3823
|
// each call site remembering it (flow-builder-sdk#865/#866).
|
|
3824
3824
|
assertBindingPlaceholdersResolve(flow, unboundDrafts);
|
|
3825
3825
|
assertFileWideIdsUnique(flow);
|
|
3826
|
+
assertPortConnectionLimits(flow);
|
|
3826
3827
|
assertConnectorConfigurationRestorable(flow);
|
|
3827
3828
|
connectionConnectors(flow, standInConnections);
|
|
3828
3829
|
return flow;
|
|
@@ -3873,6 +3874,53 @@ export function assertConnectorConfigurationRestorable(flow) {
|
|
|
3873
3874
|
+ `save drops its bodyParameters (flow-builder-sdk#936). Emit { essentialConfiguration } only.`);
|
|
3874
3875
|
}
|
|
3875
3876
|
}
|
|
3877
|
+
/**
|
|
3878
|
+
* No port carries more edges than its definition's `constraints.maxConnections`
|
|
3879
|
+
* allows — the rule `validate` and the canvas apply to a source handle.
|
|
3880
|
+
*
|
|
3881
|
+
* A port with no limit (a step's `success`, a trigger's `output`) takes any
|
|
3882
|
+
* number of edges, which is how several `.stepToList()` side lists leave one
|
|
3883
|
+
* port (#2254). The limit sits on the definition, so it is read there and not
|
|
3884
|
+
* assumed per port name; the builder refuses the common case, a second
|
|
3885
|
+
* `.onError()`, where the author wrote it.
|
|
3886
|
+
*
|
|
3887
|
+
* @throws CompileRefusal PORT_ALREADY_ROUTED naming each port over its limit.
|
|
3888
|
+
*/
|
|
3889
|
+
export function assertPortConnectionLimits(flow) {
|
|
3890
|
+
const defs = new Map();
|
|
3891
|
+
for (const d of Array.isArray(flow?.definitions) ? flow.definitions : [])
|
|
3892
|
+
defs.set(`${d?.nodeType}@${d?.version}`, d);
|
|
3893
|
+
const scopes = [flow, ...Object.values(flow?.subflows ?? {})];
|
|
3894
|
+
const over = [];
|
|
3895
|
+
for (const scope of scopes) {
|
|
3896
|
+
const nodes = new Map((Array.isArray(scope?.nodes) ? scope.nodes : []).map((n) => [n?.id, n]));
|
|
3897
|
+
const counts = new Map();
|
|
3898
|
+
for (const e of Array.isArray(scope?.edges) ? scope.edges : []) {
|
|
3899
|
+
const k = `${e?.sourceNodeId}\0${e?.sourcePort}`;
|
|
3900
|
+
counts.set(k, (counts.get(k) ?? 0) + 1);
|
|
3901
|
+
}
|
|
3902
|
+
for (const [k, count] of counts) {
|
|
3903
|
+
if (count < 2)
|
|
3904
|
+
continue;
|
|
3905
|
+
const [nodeId, port] = k.split('\0');
|
|
3906
|
+
const node = nodes.get(nodeId);
|
|
3907
|
+
const def = node ? defs.get(`${node.type}@${node.typeVersion}`) : undefined;
|
|
3908
|
+
let max;
|
|
3909
|
+
for (const g of Array.isArray(def?.handleConfiguration) ? def.handleConfiguration : []) {
|
|
3910
|
+
for (const h of Array.isArray(g?.handles) ? g.handles : []) {
|
|
3911
|
+
if (h?.type === 'source' && h.id === port && typeof h.constraints?.maxConnections === 'number')
|
|
3912
|
+
max = h.constraints.maxConnections;
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
if (max !== undefined && count > max)
|
|
3916
|
+
over.push(`node "${nodeId}" port "${port}" has ${count} edges (its definition allows ${max})`);
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
if (over.length) {
|
|
3920
|
+
throw new CompileRefusal('PORT_ALREADY_ROUTED', `a port carries more outgoing edges than its definition allows: ${over.join('; ')}. `
|
|
3921
|
+
+ 'Put everything that path needs in one side list.');
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3876
3924
|
/**
|
|
3877
3925
|
* Node ids and edge ids are each one namespace over the WHOLE file: the root
|
|
3878
3926
|
* and every `subflows` entry. Pack flattens subflows into one BPMN document, so
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.124.
|
|
3
|
+
"version": "6.124.13",
|
|
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",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"@types/node": "^22.7.0",
|
|
129
129
|
"esbuild": "^0.28.1"
|
|
130
130
|
},
|
|
131
|
-
"gitref": "
|
|
131
|
+
"gitref": "b207ef69dc14bfd4031e662dc9ae5becc96a27c5"
|
|
132
132
|
}
|