@uipath/maestro-builder-sdk 6.124.10 → 6.124.11
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/decompile.js +36 -8
- package/dist/flow-sdk.d.ts +14 -1
- package/dist/flow-sdk.js +44 -4
- package/dist/serialize.js +1 -1
- 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:1314-1337` | 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:1742-1757` | 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:1338-1741` | 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-1313` | 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:1758-1797` | 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:1326` |
|
|
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:1028-1049` |
|
|
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:1173-1182` |
|
|
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:1732-1740` |
|
|
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:1183-1197` |
|
|
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:1592-1632` |
|
|
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:1364-1371` |
|
|
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:1148-1172` |
|
|
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:1449-1517` |
|
|
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:1673-1685` |
|
|
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:1327-1336` |
|
|
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:1372-1401` |
|
|
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:1136-1147` |
|
|
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:1356-1363` |
|
|
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:1633-1672` |
|
|
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:1686-1721` |
|
|
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:1093-1135` |
|
|
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:1303-1312` |
|
|
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:1552-1591` |
|
|
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:980-1019` |
|
|
1223
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1237-1281` |
|
|
1224
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1282-1302` |
|
|
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:1402-1427` |
|
|
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:1050-1092` |
|
|
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:1198-1236` |
|
|
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:1428-1448` |
|
|
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:1518-1537` |
|
|
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:1722-1731` |
|
|
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:1538-1551` |
|
|
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/decompile.js
CHANGED
|
@@ -1779,13 +1779,17 @@ function commonPostDominator(targets, ipdom) {
|
|
|
1779
1779
|
* (edge accounting, #1125): the fold recreates each one. A fork whose arms
|
|
1780
1780
|
* never meet again and each end (`unjoinedFork`) is a `.parallel(...)` whose
|
|
1781
1781
|
* arms all end, which serialize writes with no merge node (#1267); it folds the
|
|
1782
|
-
* same way, and nothing follows it.
|
|
1782
|
+
* same way, and nothing follows it. A fork that leaves a trigger
|
|
1783
|
+
* (`fromTrigger`: the flow's body and an entry point's prefix) and whose arms
|
|
1784
|
+
* never meet, not all of them ending, is a `.stepToList(<port>, …)` before any
|
|
1785
|
+
* step beside the path the walk continues on (#2254), as `sideListFanOut` spells
|
|
1786
|
+
* the same fan-out off a step's port. Any other fork has no builder spelling.
|
|
1783
1787
|
* Like the same shape mid-flow (`region`), it throws under `bestEffort: false`,
|
|
1784
1788
|
* and otherwise keeps the first arm behind a `TODO: unstructured fan-out`
|
|
1785
1789
|
* marker. Only the kept first edge is accounted; the others are reported as
|
|
1786
1790
|
* dropped at the marker.
|
|
1787
1791
|
*/
|
|
1788
|
-
function forkRegion(edges, stop, scope, ipdom, ctx, refInto) {
|
|
1792
|
+
function forkRegion(edges, stop, scope, ipdom, ctx, refInto, fromTrigger = false) {
|
|
1789
1793
|
if (edges.length <= 1)
|
|
1790
1794
|
return edgeRegion(edges[0], stop, scope, ipdom, ctx, refInto);
|
|
1791
1795
|
const targets = edges.map((e) => e.targetNodeId);
|
|
@@ -1803,6 +1807,14 @@ function forkRegion(edges, stop, scope, ipdom, ctx, refInto) {
|
|
|
1803
1807
|
ctx.graph.accounted.add(e);
|
|
1804
1808
|
return [parallelSeg(undefined, undefined, targets, scope, ipdom, ctx, refInto, undefined, edges[0].sourceNodeId).seg];
|
|
1805
1809
|
}
|
|
1810
|
+
// A trigger's arms that never meet, not every one of them ending: a side
|
|
1811
|
+
// list off the trigger's port, before any step, then the walk goes on down
|
|
1812
|
+
// the last arm (#2254) — the trigger twin of `sideListFanOut`.
|
|
1813
|
+
const sides = fromTrigger && stopBehind === undefined ? sideListArms(edges, stop, scope, ctx, ipdom, refInto) : undefined;
|
|
1814
|
+
if (sides) {
|
|
1815
|
+
ctx.graph.accounted.add(sides.main);
|
|
1816
|
+
return [...sides.segs, ...region(sides.main.targetNodeId, stop, scope, ipdom, ctx, refInto)];
|
|
1817
|
+
}
|
|
1806
1818
|
const why = stopBehind !== undefined ? terminateBehindStepWhy(stopBehind) : '';
|
|
1807
1819
|
if (ctx.o.bestEffort === false)
|
|
1808
1820
|
throw new Error(`decompile: unstructured fan-out (${edges.length} edges)${why}.`);
|
|
@@ -2534,12 +2546,28 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
|
|
|
2534
2546
|
*/
|
|
2535
2547
|
function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
|
|
2536
2548
|
const edges = scopeSuccEdges(ctx.graph, node.id, scope);
|
|
2537
|
-
|
|
2538
|
-
|
|
2549
|
+
if (ctx.graph.primaryOutcomePort(node.id) !== undefined)
|
|
2550
|
+
return undefined;
|
|
2551
|
+
const sides = sideListArms(edges, stop, scope, ctx, ipdom, refInto);
|
|
2552
|
+
return sides && { segs: sides.segs, cursor: follow(ctx.graph, node.id, sides.main.targetNodeId) };
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* The side lists of a fan-out off ONE port whose arms never meet: every edge but
|
|
2556
|
+
* the last as `.stepToList(<port>, …)` (each such edge accounted), and `main`,
|
|
2557
|
+
* the edge the walk continues down, which the caller accounts. Shared by a step's
|
|
2558
|
+
* fan-out (`sideListFanOut`) and a trigger's (`forkRegion`, #2254), where the
|
|
2559
|
+
* side list comes before any step and leaves the trigger.
|
|
2560
|
+
*
|
|
2561
|
+
* `undefined` when there are not exactly two edges (a port takes one side list,
|
|
2562
|
+
* PORT_ALREADY_ROUTED, so a third arm has nowhere to go), when they leave more
|
|
2563
|
+
* than one port, when an arm goes straight into the enclosing loop's handle, or
|
|
2564
|
+
* when an arm would walk past the region's `stop` the last arm does not reach.
|
|
2565
|
+
*/
|
|
2566
|
+
function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
|
|
2539
2567
|
if (edges.length !== 2)
|
|
2540
2568
|
return undefined;
|
|
2541
2569
|
const port = edges[0].sourcePort;
|
|
2542
|
-
if (edges.some((e) => e.sourcePort !== port)
|
|
2570
|
+
if (edges.some((e) => e.sourcePort !== port))
|
|
2543
2571
|
return undefined;
|
|
2544
2572
|
const main = edges[edges.length - 1];
|
|
2545
2573
|
const mainReach = forwardReach([main.targetNodeId], scope, ctx.graph);
|
|
@@ -2560,7 +2588,7 @@ function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
|
|
|
2560
2588
|
return undefined;
|
|
2561
2589
|
segs.push(`.stepToList(${tsLiteral(port)}, ${armCb('p', body)})`);
|
|
2562
2590
|
}
|
|
2563
|
-
return { segs,
|
|
2591
|
+
return { segs, main };
|
|
2564
2592
|
}
|
|
2565
2593
|
/** A branch/switch node's arm labels (the designer edge text), when non-default. */
|
|
2566
2594
|
function armLabels(node) {
|
|
@@ -3402,7 +3430,7 @@ export function decompile(flow, options = {}) {
|
|
|
3402
3430
|
const ipdom = firsts.length
|
|
3403
3431
|
? postDominators(firsts.length > 1 ? startId : firsts[0].targetNodeId, scope, graph)
|
|
3404
3432
|
: new Map();
|
|
3405
|
-
const bodySegs = firsts.length ? forkRegion(firsts, EXIT, scope, ipdom, ctx) : [];
|
|
3433
|
+
const bodySegs = firsts.length ? forkRegion(firsts, EXIT, scope, ipdom, ctx, undefined, true) : [];
|
|
3406
3434
|
// Additional roots decompile to .entryPoint(...): scoped inputs from the
|
|
3407
3435
|
// globals bound to them, and a prefix region that hands off into the shared
|
|
3408
3436
|
// body — the shared nodes are in ctx.emitted by now, so the walk naturally
|
|
@@ -3516,7 +3544,7 @@ function entryPointSeg(t, scope, ipdom, ctx, isDefault = false) {
|
|
|
3516
3544
|
// A prefix that forks needs post-dominators over ITS nodes, which the root's
|
|
3517
3545
|
// map (computed from the default trigger) does not cover.
|
|
3518
3546
|
const epIpdom = firsts.length > 1 ? postDominators(t.id, scope, ctx.graph) : ipdom;
|
|
3519
|
-
const prefixSegs = firsts.length ? forkRegion(firsts, EXIT, scope, epIpdom, ctx) : [];
|
|
3547
|
+
const prefixSegs = firsts.length ? forkRegion(firsts, EXIT, scope, epIpdom, ctx, undefined, true) : [];
|
|
3520
3548
|
const optArgText = optParts.length ? `, { ${optParts.join(', ')} }` : (prefixSegs.length ? ', undefined' : '');
|
|
3521
3549
|
const prefix = prefixSegs.length ? `, ${armCb('b', prefixSegs)}` : '';
|
|
3522
3550
|
return `.entryPoint(${tsLiteral(t.id)}, ${factory}${optArgText}${prefix})`;
|
package/dist/flow-sdk.d.ts
CHANGED
|
@@ -975,6 +975,8 @@ declare class StepList {
|
|
|
975
975
|
* rather than emitted and silently dropped downstream.
|
|
976
976
|
*/
|
|
977
977
|
private portSource;
|
|
978
|
+
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
|
|
979
|
+
private refuseTaken;
|
|
978
980
|
/**
|
|
979
981
|
* Run a step list from a named PORT of the step this follows — the general form
|
|
980
982
|
* of an error handler, and the reason `.onError()` needs no machinery of its own.
|
|
@@ -998,7 +1000,18 @@ declare class StepList {
|
|
|
998
1000
|
* .step('parse', script({ … })) // ← still the SUCCESS path
|
|
999
1001
|
* ```
|
|
1000
1002
|
*
|
|
1001
|
-
*
|
|
1003
|
+
* Before any step of the flow body or of an `.entryPoint()` prefix, the body
|
|
1004
|
+
* leaves the TRIGGER's `'output'` port instead, beside the path the list goes
|
|
1005
|
+
* on with. That is a trigger with two edges to steps that never meet again:
|
|
1006
|
+
*
|
|
1007
|
+
* ```ts
|
|
1008
|
+
* flow('f').openTails().trigger(manual())
|
|
1009
|
+
* .stepToList('output', (p) => p.step('left', script({ … }))) // start -> left
|
|
1010
|
+
* .step('right', script({ … })) // start -> right
|
|
1011
|
+
* ```
|
|
1012
|
+
*
|
|
1013
|
+
* @param port - The port of the preceding step to leave from, e.g. `'error'`
|
|
1014
|
+
* (`'output'`, the trigger's, when no step precedes it).
|
|
1002
1015
|
* @param bodyFn - Receives a sub-builder for the path that port leads to.
|
|
1003
1016
|
* @returns This builder, so calls chain.
|
|
1004
1017
|
* @see stepToRef
|
package/dist/flow-sdk.js
CHANGED
|
@@ -221,6 +221,16 @@ export function dim(width, height) {
|
|
|
221
221
|
*/
|
|
222
222
|
export const STICKY_NOTE_COLORS = ['yellow', 'pink', 'blue', 'green', 'white'];
|
|
223
223
|
// ─── Builder ────────────────────────────────────────────────────────────────
|
|
224
|
+
/**
|
|
225
|
+
* The step lists that start at a trigger — the flow's own body and each
|
|
226
|
+
* `.entryPoint()` prefix — mapped to that trigger's port (`'output'`). Only on
|
|
227
|
+
* these may a `.stepToList()` come before any step: it then leaves the trigger,
|
|
228
|
+
* beside the path the list continues on, which is how a trigger with two edges
|
|
229
|
+
* to steps that never meet again is spelled (#2254). An arm or a loop body has
|
|
230
|
+
* no step before it to leave. Kept off the class so the public declarations do
|
|
231
|
+
* not grow a member nobody calls.
|
|
232
|
+
*/
|
|
233
|
+
const TRIGGER_HEADED = new WeakMap();
|
|
224
234
|
/** Collects a sequence of steps. Used for the flow body and each branch/loop arm. */
|
|
225
235
|
class StepList {
|
|
226
236
|
steps = [];
|
|
@@ -424,6 +434,18 @@ class StepList {
|
|
|
424
434
|
i--;
|
|
425
435
|
}
|
|
426
436
|
const source = this.steps[i];
|
|
437
|
+
// At the head of a list that starts at a trigger, the edge leaves the
|
|
438
|
+
// trigger. A trigger has the one port, so any other port is refused.
|
|
439
|
+
const headPort = TRIGGER_HEADED.get(this);
|
|
440
|
+
if (!source && headPort !== undefined) {
|
|
441
|
+
if (port !== headPort) {
|
|
442
|
+
throw new CompileRefusal('PORT_NO_SOURCE_STEP', `${called} leaves a port of the step BEFORE it, and there is no previous step. Before any step only the trigger's `
|
|
443
|
+
+ `${JSON.stringify(headPort)} port can be left: .stepToList(${JSON.stringify(headPort)}, (p) => …) starts a second path at the trigger. `
|
|
444
|
+
+ `Otherwise put the step whose ${JSON.stringify(port)} port you mean first.`);
|
|
445
|
+
}
|
|
446
|
+
this.refuseTaken(attached, port, called, 'the trigger');
|
|
447
|
+
return { name: 'the trigger', owner: 'the trigger' };
|
|
448
|
+
}
|
|
427
449
|
// A container (`.loop()` or `.doWhile()`) is a legal source for the error
|
|
428
450
|
// port. Both definitions set `supportsErrorHandling: true`, and the platform
|
|
429
451
|
// routes it: a body step throwing inside a measured run left the instance
|
|
@@ -438,12 +460,17 @@ class StepList {
|
|
|
438
460
|
+ ' — a branch, parallel, terminate or return has no port to leave from; a .loop() or .doWhile() has one '
|
|
439
461
|
+ "only for 'error'.");
|
|
440
462
|
}
|
|
463
|
+
const owner = `step "${source.name}"`;
|
|
464
|
+
this.refuseTaken(attached, port, called, owner);
|
|
465
|
+
return { name: source.name, owner };
|
|
466
|
+
}
|
|
467
|
+
/** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
|
|
468
|
+
refuseTaken(attached, port, called, owner) {
|
|
441
469
|
const taken = attached.some((s) => (s.kind === 'stepToList' || s.kind === 'stepToRef') && s.port === port);
|
|
442
470
|
if (taken) {
|
|
443
|
-
throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on
|
|
471
|
+
throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port. A port takes exactly ONE outgoing edge `
|
|
444
472
|
+ `(the definition says so: maxConnections: 1), so put everything that path needs in one place.`);
|
|
445
473
|
}
|
|
446
|
-
return source;
|
|
447
474
|
}
|
|
448
475
|
/**
|
|
449
476
|
* Run a step list from a named PORT of the step this follows — the general form
|
|
@@ -468,7 +495,18 @@ class StepList {
|
|
|
468
495
|
* .step('parse', script({ … })) // ← still the SUCCESS path
|
|
469
496
|
* ```
|
|
470
497
|
*
|
|
471
|
-
*
|
|
498
|
+
* Before any step of the flow body or of an `.entryPoint()` prefix, the body
|
|
499
|
+
* leaves the TRIGGER's `'output'` port instead, beside the path the list goes
|
|
500
|
+
* on with. That is a trigger with two edges to steps that never meet again:
|
|
501
|
+
*
|
|
502
|
+
* ```ts
|
|
503
|
+
* flow('f').openTails().trigger(manual())
|
|
504
|
+
* .stepToList('output', (p) => p.step('left', script({ … }))) // start -> left
|
|
505
|
+
* .step('right', script({ … })) // start -> right
|
|
506
|
+
* ```
|
|
507
|
+
*
|
|
508
|
+
* @param port - The port of the preceding step to leave from, e.g. `'error'`
|
|
509
|
+
* (`'output'`, the trigger's, when no step precedes it).
|
|
472
510
|
* @param bodyFn - Receives a sub-builder for the path that port leads to.
|
|
473
511
|
* @returns This builder, so calls chain.
|
|
474
512
|
* @see stepToRef
|
|
@@ -493,7 +531,7 @@ class StepList {
|
|
|
493
531
|
h.errorSource = prev.name;
|
|
494
532
|
bodyFn?.(h);
|
|
495
533
|
if (h.steps.length === 0) {
|
|
496
|
-
throw new CompileRefusal('PORT_EMPTY_PATH', `${called} on
|
|
534
|
+
throw new CompileRefusal('PORT_EMPTY_PATH', `${called} on ${prev.owner} has an empty ${noun}. An edge to nothing is worse than none — `
|
|
497
535
|
+ `the path still leaves the main flow. Return a value, terminate the run, or do the compensating work.`);
|
|
498
536
|
}
|
|
499
537
|
this.steps.push({ kind: 'stepToList', port, body: h.steps });
|
|
@@ -884,6 +922,7 @@ class FlowBuilder extends StepList {
|
|
|
884
922
|
constructor(_id) {
|
|
885
923
|
super();
|
|
886
924
|
this._id = _id;
|
|
925
|
+
TRIGGER_HEADED.set(this, 'output');
|
|
887
926
|
this._name = _id;
|
|
888
927
|
}
|
|
889
928
|
/**
|
|
@@ -1067,6 +1106,7 @@ class FlowBuilder extends StepList {
|
|
|
1067
1106
|
inputs.push({ name, ...varDeclOf('input', name, value) });
|
|
1068
1107
|
}
|
|
1069
1108
|
const b = new StepList();
|
|
1109
|
+
TRIGGER_HEADED.set(b, 'output');
|
|
1070
1110
|
prefixFn?.(b);
|
|
1071
1111
|
// A key the options type does not name is kept as written, so the
|
|
1072
1112
|
// serializer refuses it (FLOW_UNKNOWN_OPTION) instead of dropping it.
|
package/dist/serialize.js
CHANGED
|
@@ -3132,7 +3132,7 @@ function serializeFlow(built, opts, scopeLayout) {
|
|
|
3132
3132
|
}
|
|
3133
3133
|
}
|
|
3134
3134
|
else if (step.kind === 'stepToList') {
|
|
3135
|
-
tails = emitPortList(step, lastAction ?? '?', tails, scope, parentId, loopExits);
|
|
3135
|
+
tails = emitPortList(step, lastAction ?? tails[0]?.node ?? '?', tails, scope, parentId, loopExits);
|
|
3136
3136
|
}
|
|
3137
3137
|
else if (step.kind === 'stepSwitch') {
|
|
3138
3138
|
// The action, then EVERY exit it declares as an arm — no tacit tail.
|
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.11",
|
|
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": "0b448e1f428f388337994691c97be736a75984df"
|
|
132
132
|
}
|