@uipath/skills 1.207.0-preview.2083 → 1.207.0-preview.2100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/package.json +1 -1
  2. package/skills/uipath-maestro-bpmn/SKILL.md +11 -9
  3. package/skills/uipath-maestro-bpmn/examples/ContractRegistry.bpmn.ts +9 -9
  4. package/skills/uipath-maestro-bpmn/examples/InvoiceApproval.bpmn.ts +4 -0
  5. package/skills/uipath-maestro-bpmn/examples/InvoiceEscalation.bpmn.ts +12 -8
  6. package/skills/uipath-maestro-bpmn/references/bpmn-runtime.md +69 -37
  7. package/skills/uipath-maestro-bpmn/references/connectors.md +5 -3
  8. package/skills/uipath-maestro-bpmn/references/draft-skeleton.md +12 -11
  9. package/skills/uipath-maestro-bpmn/references/patterns/ai-decision-review-guide.md +5 -5
  10. package/skills/uipath-maestro-bpmn/references/patterns/approval-chain-guide.md +2 -2
  11. package/skills/uipath-maestro-bpmn/references/patterns/composing-guide.md +3 -3
  12. package/skills/uipath-maestro-bpmn/references/patterns/external-wait-guide.md +5 -5
  13. package/skills/uipath-maestro-bpmn/references/patterns/high-volume-batch-guide.md +2 -2
  14. package/skills/uipath-maestro-bpmn/references/patterns/queue-distribution-guide.md +13 -10
  15. package/skills/uipath-maestro-bpmn/references/patterns/smart-triage-guide.md +4 -4
  16. package/skills/uipath-maestro-case/SKILL.md +1 -0
  17. package/skills/uipath-maestro-case/references/case-runtime.md +45 -0
  18. package/skills/uipath-maestro-flow/references/extract-document-node.md +7 -7
  19. package/skills/uipath-maestro-flow/references/ixp.md +1 -1
  20. package/skills/uipath-solution/references/activate-and-manage.md +2 -2
  21. package/skills/uipath-solution/references/pack-and-deploy.md +1 -1
  22. package/version-manifest.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2083",
3
+ "version": "1.207.0-preview.2100",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -20,19 +20,21 @@ need, then let TypeScript and `bpmn check` provide the detailed contract.
20
20
  2. Seed an existing process, or the stub `bpmn init` wrote, with `bpmn decompile`; never hand-write the skeleton (Workflow step 4).
21
21
  3. Leave a `.preserve({ … })` call that `decompile` wrote alone; it carries state nothing else derives (Workflow step 4).
22
22
  4. Run `uip maestro bpmn check <Name>.bpmn.ts --source` before every compile, and fix every error it prints first (Workflow step 5). `check` lints the SDK source only; it never replaces `validate`.
23
+ Author every expression as `=js:` ([exceptions](references/bpmn-runtime.md#variables-and-the-process-contract)).
23
24
  5. After each compile of a new process, run `format`, then `refresh`, then `validate`, in that order (Workflow steps 6–7).
24
- After a `merge` into an existing process, run `refresh` and `validate` only; run `format` only when `refresh` or `validate` reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, because it lays out the whole diagram again and drops the user's pools, lanes, colors and placement; after that `format`, run `refresh` and `validate` again and, unless the report was `No diagrams found`, tell the user the canvas layout was reset ([Brownfield](references/bpmn-runtime.md#brownfield-editing)).
25
+ After a `merge` into an existing process, run `refresh` and `validate` only; run `format` without `--relayout` only when `refresh` or `validate` reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, then `refresh` and `validate` again. On a CLI whose `format --help` lists no `--relayout`, plain `format` lays out the whole diagram again and drops the user's pools, lanes, colors and placement: unless the report was `No diagrams found`, tell the user the canvas layout was reset ([Brownfield](references/bpmn-runtime.md#brownfield-editing)).
25
26
  6. A different target system (Document Understanding → agent, Outlook → Gmail) changes a node's type and binding, not the graph; reshape only when the process differs.
26
27
  7. You author the process; you never take part in it. Where a step reasons, classifies or extracts at run time, place and bind the node that does it (a UiPath agent, Document Understanding, a business rule); never do that work while authoring or hardcode its result. A bare "agent" in a request means a UiPath agent, never you.
27
28
  8. Build a design you are given (an approved SDD, a BPMN diagram, an image) 1:1: every item a node, every connector a flow, each rule on the element the design names for it, each stated default kept (a value the design calls unknown until assessed stays unknown, never `false` or available). Never merge, drop or collapse its nodes on your own, for example into one script task; ask first. A gap in the design is a question for the user, never a step you invent; add only what it needs to compile or validate (start and end events, a join). A retry loop the design draws becomes the activity's `retry` option (rule 9). In a draft, ask at the gate and name each addition in its reply; in a build, name each on the final report's `Assumed:` line. When the request says nobody will answer, take the most literal reading of the design and name each choice the same way. An image needs a confirmed inventory first: read [Authoring from an image](references/image-transcription-guide.md).
28
29
  9. Retry a failing activity with its `retry` option ([Retry](references/bpmn-runtime.md#events-and-timers)), never a drawn loop of gateways, timers or `.goto()`.
29
30
  10. Pick an Orchestrator node by the target's `ProcessType`, never by its label ([Orchestrator work](references/bpmn-runtime.md#http-and-orchestrator-work)).
30
- 11. A process returns only what its end event maps: compute into a `.var()` and map it onto each `.output()` in the `BPMN.Variables` payload of every end event that finishes the process (root scope, not a sub-process body); a task that writes an `.output()` directly returns `null` to the caller, and every check passes ([Process contract](references/bpmn-runtime.md#variables-and-the-process-contract)).
31
+ 11. A process returns only what its end event maps: compute into a `.var()` and map it onto each `.output()` in the `BPMN.Variables` payload of every end event that finishes the process (root scope, not a sub-process body); a task that writes an `.output()` directly returns `null` to the caller, and every check passes. Likewise a step reads an `.input()` only through the start event: read the `.var()` that event's `BPMN.Variables` payload maps it into (add the row and a `.var()` scoped to the start event when none exists); a later `vars.<inputId>` read is "A variable is unresolved" on the canvas and at most a `VARIABLE_NOT_SET` warning in `validate` ([Process contract](references/bpmn-runtime.md#variables-and-the-process-contract)).
31
32
 
32
33
 
33
34
  ## Workflow
34
35
 
35
36
  A discovery-only request (discover types or save registry evidence, no authoring) skips this whole Workflow: follow [Discovery only](references/bpmn-runtime.md#registry-extension-types).
37
+ A request for a draft, an outline or a sketch ends this Workflow at the [draft gate](#draft-first) with a skeleton, however complete its spec; [Draft first](#draft-first) says which other requests gate and which are builds.
36
38
 
37
39
  1. **Before the first `init`, ask which solution to use when one already exists.**
38
40
  Look for a `.uipx` up to two levels below the working directory and in every directory above it:
@@ -115,7 +117,7 @@ A discovery-only request (discover types or save registry evidence, no authoring
115
117
  every error it prints (it exits non-zero) before you compile. `compile` writes what
116
118
  the source says; `check` is what reports a probable mistake, such as a `vars.<id>`
117
119
  read of a variable nothing declares (`EXPR_UNDECLARED_REF`) or a declared variable
118
- read without `vars.` (`EXPR_BARE_VAR_REF`). For two of these, a read in an
120
+ read without `vars.` (`EXPR_BARE_VAR_REF`; fix: `=js:vars.<id>`). For two of these, a read in an
119
121
  `errorMapping` condition and a bare `=amount`, `check` is the only offline gate:
120
122
  `bpmn validate` accepts both.
121
123
  Needs `@uipath/maestro-builder-sdk` 6.86.0 or later; an older `compile` refuses the read itself.
@@ -153,8 +155,8 @@ A discovery-only request (discover types or save registry evidence, no authoring
153
155
 
154
156
  ## Draft first
155
157
 
156
- When the user asks to see the shape before it is built — *show me the shape*, *sketch it*, *what would it look like*, *before you build it*, or plan mode — build a skeleton of bare tasks and stop at an approval gate: read **[`references/draft-skeleton.md`](references/draft-skeleton.md)**.
157
- Judge the intent, not the word: a "draft project" asking for source files to import later, with no upload or run, is a build, not the draft gate.
158
+ When the user asks for a draft or to see the shape before it is built — *create a draft*, *outline it*, *show me the shape*, *sketch it*, *what would it look like*, *before you build it*, or plan mode — build a skeleton of bare tasks and stop at an approval gate: read **[`references/draft-skeleton.md`](references/draft-skeleton.md)**.
159
+ A request for a draft, an outline or a sketch is this gate even when it describes the whole process, and a request whose wording leans toward a draft without saying it (*a rough version*, *a first pass*, *a quick mock-up*) gets the draft unless it also says outright to build or deploy the whole process, an exception that never applies to a request for a draft, an outline or a sketch; a request with none of these cues is a build, and so are a brownfield edit and a "draft project" asking for source files to import later, with no upload or run.
158
160
  Outside plan mode, a mermaid diagram or outline in chat is not the deliverable; the validated `<Name>.bpmn` in the project `init` wrote is.
159
161
  The skeleton keeps the stub's `Event_start` id, so its loop skips `refresh` (step 7 above), and it makes no `registry` calls.
160
162
  Unless the request forbids upload or the project has no solution, the validated skeleton is uploaded to Studio Web and the gate reply carries its link; *Build it* ends with the final report, which uploads again when [its rules](references/final-report-template.md#upload-the-built-process) allow.
@@ -175,7 +177,7 @@ Match one name — do not read either end to end — then read the span it gives
175
177
 
176
178
  | Surface | Builder/API | Reference | Example |
177
179
  |---|---|---|---|
178
- | Show the shape before building it (sketch it, show me first, plan mode) | bare `task`, `choose` | [Draft first](references/draft-skeleton.md) | — |
180
+ | A draft, or the shape before building it (sketch it, show me first, plan mode) | bare `task`, `choose` | [Draft first](references/draft-skeleton.md) | — |
179
181
  | Discover types or save registry evidence only, no authoring | `registry` pull, list, search, get | [Discovery only](references/bpmn-runtime.md#registry-extension-types) | — |
180
182
  | Build or draft from a given design: approved SDD, BPMN diagram, sketch, whiteboard photo, diagram screenshot | built 1:1 | [Critical Rule 8](#critical-rules); an image: [Authoring from an image](references/image-transcription-guide.md) | — |
181
183
  | Process and nested scopes | `bpmn`, `subProcess` | [Builders](#api-index) | `examples/NotifyChannel.bpmn.ts` |
@@ -239,7 +241,7 @@ export default bpmn('approval')
239
241
  t.onError(true, { errorVar: 'failure' }, (b) => b.endEvent('failed', { name: 'Approval failed' }));
240
242
  })
241
243
  .choose('approved', [
242
- { when: '=vars.action == "Approved"', label: 'Yes', body: (b) => b.task('post') },
244
+ { when: '=js:vars.action == "Approved"', label: 'Yes', body: (b) => b.task('post') },
243
245
  { otherwise: true, label: 'No', body: (b) => b.task('reject') },
244
246
  ])
245
247
  .endEvent('done')
@@ -260,7 +262,7 @@ export default bpmn('approval')
260
262
  - An event sub-process guards the whole container it sits in, catching what nothing closer caught; a boundary handler guards one activity.
261
263
  To fail one iteration rather than the whole run, put the `eventSubProcess` inside the multi-instance sub-process.
262
264
  An error net captures the caught error on its start by default, into `vars.<net>_Error` — so `.eventSubProcess('failures', …)` gives you `vars.failures_Error`, with nothing more written. It holds a JSON string: read a field through `JSON.parse(vars.failures_Error)` ([Events and timers](references/bpmn-runtime.md#events-and-timers)). That per-net id is what the designer writes: over the real exports measured, every error capture carries a unique id with the display name `Error`, and the bare `vars.Error` appears in none of them. The `Error` spelling that IS fixed is the capture row's `source="=Error"`, the key the engine seeds the payload under, which the SDK writes for you. `errorVar` names the variable something else; `errorVar: false` omits the capture.
263
- A boundary handler captures nothing by default; there `errorVar` is what makes the error readable, as `=vars.<errorVar>.code`.
265
+ A boundary handler captures nothing by default; there `errorVar` is what makes the error readable, as `=js:vars.<errorVar>.code`.
264
266
  - `check` warns `NO_DEFAULT_FLOW` on an exclusive gateway whose every flow is conditioned; give it an `otherwise` arm or a default.
265
267
  - `.flowMode('sequence')`, called before the first element, wires consecutive elements of that scope in order, so a process written top to bottom needs no `.sequenceFlow()` at all; a `.subProcess()` body inherits it and may set its own.
266
268
  An element that already has an explicit outgoing flow is not also wired to the next one, a bare gateway is wired into but implies no outgoing flows, and an element nothing leads into or a path that does not end is refused at build.
@@ -305,7 +307,7 @@ uip maestro bpmn refresh <Project> --output json # entry-points.json + operate
305
307
  uip maestro bpmn validate <Project>/<Name>.bpmn --output json
306
308
  ```
307
309
 
308
- Editing an existing process: first `decompile` it ([Brownfield](references/bpmn-runtime.md#brownfield-editing)), edit, run both `check` lines, then `merge` in place of the `compile` and `format` lines, then `refresh` and `validate`; `format` only when one of them reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, then run `refresh` and `validate` again and, unless the report was `No diagrams found`, tell the user the canvas layout was reset.
310
+ Editing an existing process: first `decompile` it ([Brownfield](references/bpmn-runtime.md#brownfield-editing)), edit, run both `check` lines, then `merge` in place of the `compile` and `format` lines, then `refresh` and `validate`; `format` without `--relayout` only when one of them reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, then run `refresh` and `validate` again; on a CLI whose `format --help` lists no `--relayout`, unless the report was `No diagrams found`, tell the user the canvas layout was reset.
309
311
 
310
312
  With connector nodes, run `check` and `compile` from the directory `prepare` ran in ([Connectors §3](references/connectors.md#3-the-loop-author--check--prepare--check--compile)).
311
313
 
@@ -16,7 +16,7 @@
16
16
  *
17
17
  * Every `.dataService()` writes its response to `<id>_response` and the error payload
18
18
  * to `<id>_Error`, both declared for you, so the next node reads
19
- * `=vars.create_response.Id` with nothing more written.
19
+ * `=js:vars.create_response.Id` with nothing more written.
20
20
  */
21
21
  import { bpmn } from '@uipath/maestro-builder-sdk/bpmn';
22
22
 
@@ -47,7 +47,7 @@ export default bpmn('ContractRegistry')
47
47
  .dataService('create', {
48
48
  ...df,
49
49
  op: 'create',
50
- record: { contractTitle: '=vars.contractTitle', status: 'Open', priority: 2, dueDate: '2026-08-01', value: 12500.5, isUrgent: true },
50
+ record: { contractTitle: '=js:vars.contractTitle', status: 'Open', priority: 2, dueDate: '2026-08-01', value: 12500.5, isUrgent: true },
51
51
  })
52
52
  // The filter is a query parameter; `start`/`limit` default to 0/100.
53
53
  // `sortBy` becomes the body's `_sortFieldName` (the connector's own RequestField) and
@@ -58,19 +58,19 @@ export default bpmn('ContractRegistry')
58
58
  .dataService('update', {
59
59
  ...df,
60
60
  op: 'update',
61
- id: '=vars.create_response.Id',
62
- record: { contractTitle: '=vars.contractTitle', status: 'Open', priority: 1, dueDate: '2026-08-01', value: 12500.5, isUrgent: true },
61
+ id: '=js:vars.create_response.Id',
62
+ record: { contractTitle: '=js:vars.contractTitle', status: 'Open', priority: 1, dueDate: '2026-08-01', value: 12500.5, isUrgent: true },
63
63
  })
64
- .dataService('get', { ...df, op: 'get', recordId: '=vars.update_response.Id', expansionLevel: 3 })
64
+ .dataService('get', { ...df, op: 'get', recordId: '=js:vars.update_response.Id', expansionLevel: 3 })
65
65
  .endEvent('done', {
66
66
  name: 'Done',
67
67
  payload: {
68
68
  type: 'BPMN.Variables',
69
69
  outputRows: [
70
- { name: 'createdRecord', type: 'json', var: 'createdRecord', source: '=vars.create_response' },
71
- { name: 'dueSoon', type: 'json', var: 'dueSoon', source: '=vars.queryDue_response' },
72
- { name: 'untitled', type: 'json', var: 'untitled', source: '=vars.queryUntitled_response' },
73
- { name: 'retrievedRecord', type: 'json', var: 'retrievedRecord', source: '=vars.get_response' },
70
+ { name: 'createdRecord', type: 'json', var: 'createdRecord', source: '=js:vars.create_response' },
71
+ { name: 'dueSoon', type: 'json', var: 'dueSoon', source: '=js:vars.queryDue_response' },
72
+ { name: 'untitled', type: 'json', var: 'untitled', source: '=js:vars.queryUntitled_response' },
73
+ { name: 'retrievedRecord', type: 'json', var: 'retrievedRecord', source: '=js:vars.get_response' },
74
74
  ],
75
75
  },
76
76
  })
@@ -7,6 +7,10 @@
7
7
  * produces from a process someone actually runs: 71 elements, wide gateway routing,
8
8
  * and six node types in one graph.
9
9
  *
10
+ * Its plain `=` expressions are the import's legacy C#: copy none of them, and write
11
+ * every new expression as `=js:` (`'=js:vars.total * 0.9'`), except a human-task
12
+ * form field's `value`, which stays `=vars.<id>`.
13
+ *
10
14
  * | it demonstrates | as |
11
15
  * | --- | --- |
12
16
  * | an Integration Service **event trigger** | `.activity(…, 'Intsvc.EventTrigger')` on a start event |
@@ -57,10 +57,14 @@ export default bpmn('invoice-escalation')
57
57
  .name('InvoiceEscalation')
58
58
  .flowMode('sequence')
59
59
  .input('invoiceId', 'string', { name: 'Invoice ID' })
60
+ .var('invoiceIdIn', 'string', { elementId: 'start' })
60
61
  .var('decision', 'string', { default: 'Pending' })
61
62
  .var('outcome', 'string', { default: 'RUNNING' })
62
63
  .var('reminders', 'number', { default: 0 })
63
- .startEvent('start', { name: 'Invoice received' })
64
+ // An input belongs to the start event: map it into a variable scoped there, and read that downstream.
65
+ .startEvent('start', { name: 'Invoice received', payload: { type: 'BPMN.Variables', outputRows: [
66
+ { name: 'Invoice ID', type: 'string', source: '=vars.invoiceId', var: 'invoiceIdIn' },
67
+ ] } })
64
68
  // Two lookups at once. `fork` opens a parallel gateway, runs each arm, and joins
65
69
  // them through `enrich_join` before `approve` — the join is derived from the id
66
70
  // the author wrote, so an explicit `.sequenceFlow('enrich_join', …)` could still
@@ -71,13 +75,13 @@ export default bpmn('invoice-escalation')
71
75
  b.http('vendorLookup', {
72
76
  name: 'Vendor lookup',
73
77
  method: 'GET',
74
- url: '=js:"https://erp.example.com/vendors/by-invoice/" + vars.invoiceId',
78
+ url: '=js:"https://erp.example.com/vendors/by-invoice/" + vars.invoiceIdIn',
75
79
  }),
76
80
  (b) =>
77
81
  b.http('poLookup', {
78
82
  name: 'Purchase order lookup',
79
83
  method: 'GET',
80
- url: '=js:"https://erp.example.com/purchase-orders/by-invoice/" + vars.invoiceId',
84
+ url: '=js:"https://erp.example.com/purchase-orders/by-invoice/" + vars.invoiceIdIn',
81
85
  }),
82
86
  ])
83
87
  // The approval, with its boundary events declared ON it. Nothing names `approve`
@@ -89,10 +93,10 @@ export default bpmn('invoice-escalation')
89
93
  'approve',
90
94
  {
91
95
  name: 'Approve invoice',
92
- title: '=js:"Invoice " + vars.invoiceId',
96
+ title: '=js:"Invoice " + vars.invoiceIdIn',
93
97
  form: {
94
98
  fields: [
95
- { id: 'invoiceId', label: 'Invoice ID', type: 'string', direction: 'input', value: '=vars.invoiceId' },
99
+ { id: 'invoiceId', label: 'Invoice ID', type: 'string', direction: 'input', value: '=vars.invoiceIdIn' },
96
100
  { id: 'vendor', label: 'Vendor', type: 'object', direction: 'input', value: '=vars.vendorLookup_response' },
97
101
  { id: 'purchaseOrder', label: 'Purchase order', type: 'object', direction: 'input', value: '=vars.poLookup_response' },
98
102
  ],
@@ -119,12 +123,12 @@ export default bpmn('invoice-escalation')
119
123
  // back to the approver; `rejected` ends the process; `approved` continues.
120
124
  .choose('route', [
121
125
  {
122
- when: '=vars.decision == "Approve"',
126
+ when: '=js:vars.decision == "Approve"',
123
127
  label: 'Approved',
124
128
  body: (b) => b.task('markApproved', { name: 'Mark approved', set: { outcome: 'APPROVED' } }),
125
129
  },
126
130
  {
127
- when: '=vars.decision == "Needs info"',
131
+ when: '=js:vars.decision == "Needs info"',
128
132
  label: 'Needs info',
129
133
  body: (b) => b.task('requestInfo', { name: 'Ask the vendor', set: { outcome: 'AWAITING_VENDOR' } }).goto('approve'),
130
134
  },
@@ -139,7 +143,7 @@ export default bpmn('invoice-escalation')
139
143
  // It returns its value; the runtime wraps it as `result.response`.
140
144
  .scriptTask('post', {
141
145
  name: 'Post to ledger',
142
- script: 'return { posted: true, invoiceId: vars.invoiceId };',
146
+ script: 'return { posted: true, invoiceId: vars.invoiceIdIn };',
143
147
  })
144
148
  .endEvent('done', { name: 'Posted' })
145
149
  // The safety net. An event sub-process has no incoming flow; it starts when an error
@@ -24,7 +24,7 @@ make from syntax alone. Exact signatures remain in the generated API.
24
24
  .var('scoreValue', 'number')
25
25
  // … tasks write scoreValue …
26
26
  .endEvent('done', { payload: { type: 'BPMN.Variables', outputRows: [
27
- { name: 'score', type: 'number', source: '=vars.scoreValue', var: 'score' },
27
+ { name: 'score', type: 'number', source: '=js:vars.scoreValue', var: 'score' },
28
28
  ] } })
29
29
  ```
30
30
  Never read an `.output()` before its end event; read the `.var()` instead.
@@ -43,21 +43,43 @@ make from syntax alone. Exact signatures remain in the generated API.
43
43
  `instanceglobals`, `orchestrator`, `outputs`, `result`, `runtime`, `senderinfo`,
44
44
  `this`. `check` does not report it. A public `.output()` may be named `result`.
45
45
 
46
- <!-- RULE:bpmn.variables.read-inputs-directly -->
47
- - A script or expression reads a public input as `vars.<id>` directly; the runtime
48
- seeds every declaration by id. The start-event mapping that bridges each input into
49
- an internal variable is the canvas's spelling, not a requirement.
50
-
51
- <!-- RULE:bpmn.expression.js-for-methods -->
52
- - A plain `=` expression is evaluated C#-style, not as JavaScript: comparisons, arithmetic and
53
- `vars.x` reads work, a JS method call does not, and a JS property such as `.length` reads back `null` with no incident (use `.Count`). `=vars.d.toLowerCase() == "approve"` passes
54
- validate, then faults the run (incident `400302`); in a gateway `when` it evaluates `false` and the
55
- run takes the wrong branch. Prefix any expression that calls a JavaScript
56
- method (`toLowerCase`, `includes`, `concat`, `map`, `JSON.parse`) with `=js:`; .NET methods
57
- (`Contains`, `Split`, `String.IsNullOrEmpty`) work in plain `=`, as decompiled canvas expressions show.
58
- Local `flow-debug` does not show this ([offline checks](operate.md#debug--a-controlled-studio-web-run)).
59
- - A `.task()`'s `set` values are strings: an `=`-expression or a literal. `set: { done: true }`
60
- fails `check` (`TS2322`) and `compile` (`value.startsWith is not a function`); write `'=true'`.
46
+ <!-- RULE:bpmn.variables.inputs-through-start -->
47
+ - A process input belongs to the start event, so a later step that reads `vars.<inputId>` is
48
+ "A variable is unresolved" on the canvas, and `validate` passes with at most a
49
+ `VARIABLE_NOT_SET` warning: fix it, never wave it off. On the start event, map each input the
50
+ steps read into a variable scoped to that event, as the canvas does, and read that variable
51
+ downstream. When the start event already maps the input (a
52
+ canvas-made process), read that row's `var`; add no second row.
53
+ ```ts
54
+ .input('amount', 'number')
55
+ .var('amountIn', 'number', { elementId: 'start' })
56
+ .var('total', 'number')
57
+ .startEvent('start', { payload: { type: 'BPMN.Variables', outputRows: [
58
+ { name: 'amount', type: 'number', source: '=vars.amount', var: 'amountIn' },
59
+ ] } })
60
+ .task('double', { set: { total: '=js:vars.amountIn * 2' } })
61
+ ```
62
+ Unlike a task's output row, a start-event row does not declare its variable: without the
63
+ `.var()`, `check` fails `EXPR_UNDECLARED_REF`.
64
+
65
+ <!-- RULE:bpmn.expression.js-everywhere -->
66
+ - Write every expression you author as `=js:` JavaScript, in any field: `set`, a `when`, a row
67
+ `source`, a connector input, a loop `collection` or `completion`, a timer `date`
68
+ (`'=js:vars.total * 0.9'`, `'=js:vars.tier == "gold"'`). A plain `=` passes `check`, `compile` and
69
+ `validate`, but it is C#: the designer opens any plain expression beyond a bare variable read in its
70
+ C# editor, and a JavaScript method in it (`=vars.d.toLowerCase() == "approve"`) faults the run
71
+ (incident `400302`), or in a gateway `when` evaluates `false` and takes the wrong branch. Local
72
+ `flow-debug` does not show this ([offline checks](operate.md#debug--a-controlled-studio-web-run)).
73
+ Leave plain only what the canvas writes plain: a row `source` reading the node's own result
74
+ (`=result…`, `=response…`, `=Error`, a form field such as `=Action`, an agent output such as
75
+ `=Decision`), `=bindings.<id>`, `=iterator[0]`, the start-event row that maps a process input
76
+ (`=vars.<inputId>`), and a human-task form field's `value` (`=vars.<id>`: its runtime evaluates
77
+ UiPath expressions, not JavaScript). An imported file's existing plain `=` expressions are C#
78
+ (`examples/InvoiceApproval.bpmn.ts`): leave them as they are, and copy none of them.
79
+ In a plain `=` you keep or edit, `.length` reads back `null` with no incident: use `.Count`.
80
+ `.length` works only inside `=js:`.
81
+ - A `.task()`'s `set` values are strings: an `=js:` expression or a literal. `set: { done: true }`
82
+ fails `check` (`TS2322`) and `compile` (`value.startsWith is not a function`); write `'=js:true'`.
61
83
 
62
84
  <!-- RULE:bpmn.variables.input-name -->
63
85
  - Input values are matched to declarations by display `name` when a run starts, so an
@@ -67,11 +89,12 @@ make from syntax alone. Exact signatures remain in the generated API.
67
89
  <!-- RULE:bpmn.variables.node-output-declares-itself -->
68
90
  - **Do not declare a variable for a node's own output.** An output row declares the
69
91
  variable it fills: the compiler derives a declaration from the row, attributed to that
70
- node, with the row's `name` and `type`. Writing a `.var()` beside the node for the same
71
- id states the same thing twice and makes it the author's declaration instead of the
72
- node's. Where the variable carries a JSON Schema, put it on the ROW as `varSchema` —
73
- the platform writes the shape on the declaration and not on the row, so `varSchema` is
74
- what reaches it:
92
+ node, with the row's `name` and `type`. Writing a `.var()` beside the node for the
93
+ same id states the same thing twice and makes it the author's declaration instead of
94
+ the node's. A start-event row is the exception: it does not declare its variable, so
95
+ its `.var()` stays (see `bpmn.variables.inputs-through-start` above). Where the
96
+ variable carries a JSON Schema, put it on the ROW as `varSchema` — the platform writes
97
+ the shape on the declaration and not on the row, so `varSchema` is what reaches it:
75
98
 
76
99
  ```ts
77
100
  outputRows: [{ name: 'response', type: 'jsonSchema', var: 'act_response',
@@ -83,11 +106,12 @@ make from syntax alone. Exact signatures remain in the generated API.
83
106
  the author's with `custom="true"`.
84
107
 
85
108
  <!-- RULE:bpmn.variables.element-id-is-placement -->
86
- - `elementId` is placement, not scope. The runtime seeds every declaration into one flat
87
- namespace and resolves `vars.<id>` there whatever it says, and an id is unique across
88
- the whole document — so two elements cannot each own a `response`. What it decides is
89
- which element the declaration BELONGS to, which is what the canvas and
90
- `uip maestro bpmn validate` read (1.203 requires one).
109
+ - `elementId` is placement to the runtime and scope to the canvas. The runtime seeds
110
+ every declaration into one flat namespace and resolves `vars.<id>` there whatever it
111
+ says, and an id is unique across the whole document — so two elements cannot each own
112
+ a `response`. What it decides is which element the declaration BELONGS to, which is
113
+ what the canvas and `uip maestro bpmn validate` read (1.203 requires one). For a
114
+ process input, see `bpmn.variables.inputs-through-start`.
91
115
 
92
116
  <!-- RULE:bpmn.variables.array-forms -->
93
117
  - `.vars([…])`, `.bindings([…])` and `.schemas([…])` take the whole block at once, with
@@ -229,7 +253,7 @@ make from syntax alone. Exact signatures remain in the generated API.
229
253
  propertyAttribute: 'folderPath', resourceKey: 'CreditAssessment', resourceSubType: 'ProcessOrchestration' })
230
254
  // …
231
255
  .startAgenticProcess('assess', { process: '=bindings.childName', folder: '=bindings.childFolder',
232
- input: { annualIncome: '=vars.annualIncome' }, outputs: { score: '=result.score' } })
256
+ input: { annualIncome: '=js:vars.annualIncome' }, outputs: { score: '=result.score' } })
233
257
  ```
234
258
  The called process must map its outputs at its end event ([output end mapping](#variables-and-the-process-contract)),
235
259
  or `result.score` is `null`.
@@ -289,7 +313,7 @@ make from syntax alone. Exact signatures remain in the generated API.
289
313
  ```
290
314
 
291
315
  <!-- RULE:bpmn.http.url-placeholders -->
292
- - Fill every `{name}` or `<NAME>` in an HTTP `url` before compiling, with a discovered or given value or an `=`-expression; never invent one. Nothing checks this: `check`, `compile` and `validate` all pass `/repos/{owner}/{repo}`, and the request goes out literally.
316
+ - Fill every `{name}` or `<NAME>` in an HTTP `url` before compiling, with a discovered or given value or an `=js:` expression; never invent one. Nothing checks this: `check`, `compile` and `validate` all pass `/repos/{owner}/{repo}`, and the request goes out literally.
293
317
 
294
318
  <!-- RULE:bpmn.orchestrator.business-rule -->
295
319
  - A deployed business rule is `.businessRule(id, { process, folder, input, outputs })`, nothing else.
@@ -391,9 +415,9 @@ binding half, which is the same for every connector-backed node.
391
415
  way the platform's own tools do and needs no connector library or `prepare`
392
416
  step. The response lands in `<id>_response` and the error payload in
393
417
  `<id>_Error`, both declared for you — read the created record's id as
394
- `=vars.<id>_response.Id`. Map results onto process outputs on the end event
418
+ `=js:vars.<id>_response.Id`. Map results onto process outputs on the end event
395
419
  (`payload: { type: 'BPMN.Variables', outputRows: [{ name, type, var, source:
396
- '=vars.<id>_response' }] }`). Do not hand-fill
420
+ '=js:vars.<id>_response' }] }`). Do not hand-fill
397
421
  `.activity('Intsvc.ActivityExecution', …)` for these operations: the library
398
422
  ships one Data Service operation, so `.connector()` cannot author the rest, and a
399
423
  hand-filled node gets `objectName`, the parameter targets and the folder binding
@@ -522,7 +546,7 @@ binding half, which is the same for every connector-backed node.
522
546
  When `merge` refuses with `MERGE_ORIGINAL_CHANGED` (the original's process changed since the decompile), `MERGE_SOURCE_NOT_STAMPED` or `MERGE_SOURCE_STAMP_UNREADABLE` (line 1 is missing or edited), it writes nothing: decompile the original again and reapply the edit.
523
547
  On `MERGE_OPTION_CONFLICT`, drop the decompile option given to `merge`; the stamp already records it.
524
548
  Needs `@uipath/maestro-builder-sdk` 6.95.0 or later; on an older SDK `merge` stops with a ConfigError asking for an upgrade, so run the install command the ConfigError prints and merge again.
525
- Then `refresh` and `validate` the target as in the validation loop; do not `format` it unless `refresh` or `validate` reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE` (see `bpmn.brownfield.format`).
549
+ Then `refresh` and `validate` the target as in the validation loop; do not `format` it unless `refresh` or `validate` reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, or the target was a template or a process the user chose to replace (see `bpmn.brownfield.format`).
526
550
 
527
551
  <!-- RULE:bpmn.brownfield.nested-style -->
528
552
  - `bpmn decompile --style nested` lifts an import's boundary events, gateways and event sub-processes into the nesting constructs, writes the top level in `flowMode('sequence')`, and prints why each region it left flat stayed flat; the lifted source is written only after it has been compiled and its graph verified identical to the flat form's. The flow ids the constructs imply are KEPT: each is pinned back with `.flowIds([{ source, target, id }])`, emitted once at the top of the chain, so the recompiled artifact carries the ids it arrived with. This is what makes the lift safe for brownfield editing — `uip maestro bpmn merge` keys every process child by id with no filter for kind, so renaming a flow made the merge treat it as new, delete the original along with its `BPMNEdge`, and leave an untouched gateway's `default` naming an id that no longer exists (`MISSING_CONDITION_EXPRESSION` at validate). Measured on a three-flow fixture, a no-edit round trip now merges back byte-identical. `--keep-flow-ids` confines the lift to regions whose ids already match the derived form, for source with no pin table.
@@ -573,18 +597,25 @@ binding half, which is the same for every connector-backed node.
573
597
  `Orchestrator.Start*Process` type with a process binding.
574
598
 
575
599
  <!-- RULE:bpmn.brownfield.format -->
576
- - Do not `format` a merged process. `merge` keeps every shape and edge of the
600
+ - Do not lay out a merged process again. `merge` keeps every shape and edge of the
577
601
  original where the user put it (it grows a lane, pool or expanded sub-process that has
578
602
  no room for a new shape and shifts the shapes below it, and reroutes an existing edge
579
603
  whose flow the edit rewired), and draws the shapes of the elements the
580
- edit added. `format` lays out the whole diagram again, so it drops the user's
604
+ edit added. `format --relayout` lays out the whole diagram again: it keeps pools, lanes
605
+ and colors but moves every shape the user placed. Plain `format` on a CLI whose
606
+ `format --help` lists no `--relayout` lays it out again too, and drops the user's
581
607
  pools, lanes, colors and placement.
582
- Run `format` only when `refresh` or `validate` reports
608
+ Run `format` without `--relayout` only when `refresh` or `validate` reports
583
609
  `BPMN_PARSE_ERROR` with `No diagrams found` (the original had no diagram, so there is no
584
610
  layout to lose), `MISSING_DI_SHAPE` or `MISSING_DI_EDGE` (an older SDK's `merge`
585
611
  draws no shapes for new elements), run
586
- `refresh` and `validate` again, and, when the original had a diagram (`MISSING_DI_SHAPE` /
587
- `MISSING_DI_EDGE`), tell the user that the canvas layout was reset.
612
+ `refresh` and `validate` again, and, on a CLI without `--relayout`, when the original
613
+ had a diagram (`MISSING_DI_SHAPE` / `MISSING_DI_EDGE`), tell the user that the canvas
614
+ layout was reset.
615
+ A merge into a template that holds only one start event and at most one end event (as
616
+ Studio Web or `init` writes), or into a process the user chose to replace, builds a
617
+ new process: run `format --relayout` (plain `format` where the CLI lacks the flag),
618
+ then `refresh` and `validate` again.
588
619
 
589
620
  ## Contract metadata
590
621
 
@@ -652,7 +683,8 @@ binding half, which is the same for every connector-backed node.
652
683
  <!-- RULE:bpmn.layout.separate -->
653
684
  - Compile emits semantic XML with no diagram, and `validate` refuses a file without
654
685
  one: `format` every newly compiled process; a merged one only when `refresh` or `validate`
655
- reports a missing diagram or shape (`bpmn.brownfield.format`).
686
+ reports a missing diagram or shape, or it merged into a template or a process the user
687
+ chose to replace (`bpmn.brownfield.format`).
656
688
 
657
689
  ## Product boundary
658
690
 
@@ -55,7 +55,7 @@ A failed search gives `uip`'s reason; fix what it names: log in again for a sess
55
55
  {
56
56
  'fields.project.key': lookup('uipath-atlassian-jira', 'create-issue', 'fields.project.key').by('name', 'Coder Eval'),
57
57
  'fields.issuetype.id': '10001',
58
- 'fields.summary': '=vars.summary',
58
+ 'fields.summary': '=js:vars.summary',
59
59
  },
60
60
  { connection: 'jira', folder: 'jiraFolder' })
61
61
  ```
@@ -94,6 +94,8 @@ uip maestro bpmn check <Name>.bpmn.ts --source
94
94
 
95
95
  When one of these comes from a missing schema, lookup value or binding, its message names the `uip maestro registry prepare` that closes it.
96
96
  An unknown key, a wrong value type (`CONNECTOR_INPUT`) or a runtime value in an id field (`LOOKUP_RUNTIME_VALUE`) is a mistake in your source: fix it there, since `prepare` doesn't touch the source.
97
+ When a step reads a record by a key the process is given and the operation also needs lookups nobody supplies (Jira `get-issue`'s `project`, `issuetype`), never derive them from the key, and never pin one value while a generic Retrieve (`object:`) whose required inputs are all plain, none a lookup, can read the record instead.
98
+ List the connector's Retrieves with `uip maestro registry search retrieve --connector <CONNECTOR_KEY> --limit 50 --output json` (re-run with `--limit <TOTAL>` when `Data.Total` is higher) and read each row's field reference. With none, each lookup is an open question: ask the user, or, when the request says nobody will answer, pick one of the values the lookup lists and name it on the final report's `Assumed:` line.
97
99
 
98
100
  ```bash
99
101
  uip maestro registry prepare uipath-atlassian-jira --action create-issue \
@@ -215,7 +217,7 @@ uip is triggers objects <connector> <EVENT> --connection-id <id> --output json
215
217
  uip is triggers describe <connector> <EVENT> <object> --connection-id <id> --output json
216
218
  ```
217
219
 
218
- - The payload lands in `outputVar` (default `<id>_result`) and a failure in `<id>_Error`; the node declares both, so `=vars.<id>_result.subject` reads a payload field downstream.
220
+ - The payload lands in `outputVar` (default `<id>_result`) and a failure in `<id>_Error`; the node declares both, so `=js:vars.<id>_result.subject` reads a payload field downstream.
219
221
  `outputs` maps payload fields onto variables of their own, and its sources read the payload under `response`: `outputs: { subject: '=response.subject' }`.
220
222
  A bare `'=subject'` reads nothing: the payload is not at the top level.
221
223
  - `folderPath` is deprecated and ignored: the task names its folder by the `folder` binding alone, so drop it.
@@ -228,7 +230,7 @@ Write the step so that `check` passes and the CLI, not prose, says what is missi
228
230
 
229
231
  - **The operation's metadata is local**: §1 finds it in the library (a local cache, so this works offline), and `check` names no `uip maestro registry prepare` for it (`OBJECT_UNPREPARED`, `CUSTOM_FIELDS_UNPREPARED`, or a `CONNECTOR_INPUT` for a field only the connection discovers), since only a live `prepare` clears those.
230
232
  Write the `.connector()` call of §2 with symbolic `connection` and `folder` names and no `bindings.json`.
231
- Leave no `lookup()` in it, because `compile` refuses one until `prepare` records it (`LOOKUP_UNRESOLVED`); a lookup field takes a runtime `=vars.<id>` or a fixed-vocabulary literal (`send_as: 'bot'`), which `check` only warns about (`LOOKUP_RUNTIME_VALUE`, `LOOKUP_LITERAL_ID`).
233
+ Leave no `lookup()` in it, because `compile` refuses one until `prepare` records it (`LOOKUP_UNRESOLVED`); a lookup field takes a runtime `=js:vars.<id>` or a fixed-vocabulary literal (`send_as: 'bot'`), which `check` only warns about (`LOOKUP_RUNTIME_VALUE`, `LOOKUP_LITERAL_ID`).
232
234
  `check`, `compile` and `format` pass and emit a real `Intsvc.ActivityExecution` task reading `=bindings.<name>`.
233
235
  `refresh` then refuses (`Connection binding "<name>" default must be a GUID.`) and `validate` reports `MISSING_BINDING`: that is the draft's blocker, so stop there, and do not edit a binding or a package file to get past it.
234
236
  - **Otherwise, with no tenant for `prepare` to reach** (the operation is not in the library, or `check` asks for a `prepare`): write the step as a bare `.task(id, { name })` whose name says what it does and carries the connector key and the operation, such as `'Send Slack digest (uipath-salesforce-slack / send-message-to-channel, unresolved)'`.
@@ -3,11 +3,11 @@
3
3
  Author a skeleton of blank boxes, real control flow and labels, compile and validate it, show it to the user, and stop for their approval.
4
4
  It makes no registry calls.
5
5
 
6
- **When.** The user wants to see the shape before it is built: *show me the shape*, *sketch it*, *what would it look like*, *before you build it*, or a session in plan mode.
6
+ **When.** The user asks for a draft or wants to see the shape before it is built: *create a draft*, *outline it*, *show me the shape*, *sketch it*, *what would it look like*, *before you build it*, or a session in plan mode.
7
7
  A request to build the process outright skips the draft and authors real nodes directly.
8
8
  A brownfield edit (the shape already exists) and a [discovery-only](bpmn-runtime.md#registry-extension-types) question (nothing is authored) skip it too.
9
- Never ask the user whether to draft or build, and never block on that choice: decide from the request, and build when nothing in it asks to see the shape first.
10
- Judge the intent, not the word: a "draft project" or "draft handoff" that asks for a source-only deliverable (files to import or hand off later, with no upload or run) is a build, not the draft gate.
9
+ Never ask the user whether to draft or build, and never block on that choice: decide from the request, and build when nothing in it asks for a draft or to see the shape first.
10
+ A request for a draft, an outline or a sketch is the gate even when it describes the whole process, and a request whose wording leans toward a draft without saying it (*a rough version*, *a first pass*, *a quick mock-up*) gets the draft, unless it also says outright to build or deploy the whole process. That exception is for leaning wording only: a request for a draft, an outline or a sketch always gates. Like the brownfield and discovery-only cases above, a "draft project" or "draft handoff" that asks for a source-only deliverable (files to import or hand off later, with no upload or run) skips the gate: it is a build.
11
11
  A connector step it cannot resolve then follows [Draft with an unresolved connector](connectors.md#7-draft-with-an-unresolved-connector).
12
12
  Plan mode is the host's state: never enter it yourself to satisfy "show me first".
13
13
 
@@ -56,12 +56,13 @@ A skeleton is not a working process and must never be reported as one.
56
56
  The basis a gateway routes on is part of what the user approves: three arms out of a diamond with no stated basis could mean anything.
57
57
  A skeleton reads a variable but cannot assign it, because the assignment lives in the payload of the node that produces it.
58
58
  Name the producer in the box upstream instead: `Classify ticket [Agent] → category`.
59
- What the process is given when it starts (an order's weight, a flag) is a process input, declared with `.input(<id>, '<type>')`: never draw a box whose only job is to receive, read or capture it, since the steps that use it read `vars.<id>`.
59
+ What the process is given when it starts (an order's weight, a flag) is a process input, declared with `.input(<id>, '<type>')`; the start event receives it, so never draw a box whose only job is to receive, read or capture it.
60
+ A decision or a per-item box's collection that reads an input reads the variable the start event maps it into ([Process contract](bpmn-runtime.md#variables-and-the-process-contract)); write that mapping, the one payload a skeleton writes, with the `.var()` scoped to `Event_start`.
60
61
  Data a person supplies after the process has started is a real step: draw its box (`[Action app]`).
61
62
  8. **Mark a step that runs once per item on its own box.**
62
- When the request says a step runs for each item ("for every line item", "notify each supplier"), pass `loop: { collection, itemVar }` on that `.task()`, and declare the collection with `.var(<id>, 'array')` (`.input(<id>, 'array')` when the process is given it at start).
63
+ When the request says a step runs for each item ("for every line item", "notify each supplier"), pass `loop: { collection, itemVar }` on that `.task()`, and declare the collection with `.var(<id>, 'array')` (`.input(<id>, 'array')` when the process is given it at start, read through the start event's mapping).
63
64
  Add `sequential: true` when the items go one after another, and leave it out when they run all at once or the request does not say.
64
- When the step stops early ("stop at the first failed document"), add `completion: '=vars.<flag>'` and declare that boolean flag too.
65
+ When the step stops early ("stop at the first failed document"), add `completion: '=js:vars.<flag>'` and declare that boolean flag too.
65
66
  Do not hand-roll a loop from a gateway and a `.goto()` for a per-item step, and do not leave the marker to *Build it*: it is structure, and the user is approving it.
66
67
  9. **A path that leaves a `.fork()` branch early must end the process; every other path continues on its own branch to the join.**
67
68
  A parallel gateway, the fork as well as the join, fires only when every incoming flow has delivered a token.
@@ -117,7 +118,7 @@ export default bpmn('Process_1')
117
118
  .startEvent('Event_start', { name: 'Every Monday at 7:00', timer: { cycle: 'R/2026-01-05T07:00:00Z/P7D' } })
118
119
  .task('countStock', { name: 'Count warehouse stock [RPA workflow] → itemsBelowReorder' })
119
120
  .choose('needsReorder', [
120
- { when: '=vars.itemsBelowReorder > 0', label: 'Below reorder point', body: (b) => b.task('raiseOrders', { name: 'Raise purchase orders [API workflow]' }) },
121
+ { when: '=js:vars.itemsBelowReorder > 0', label: 'Below reorder point', body: (b) => b.task('raiseOrders', { name: 'Raise purchase orders [API workflow]' }) },
121
122
  { otherwise: true, label: 'Stock is fine', body: (b) => b.task('logCount', { name: 'Log the stock count [Execute script]' }) },
122
123
  ])
123
124
  .endEvent('done', { name: 'Stock checked' })
@@ -138,7 +139,7 @@ It compiles to three bare `bpmn:task` boxes, a timer start, an exclusive gateway
138
139
  .startEvent('Event_start', { name: 'New hire submitted' })
139
140
  .task('verifyDoc', {
140
141
  name: 'Verify document [Action app] → documentFailed',
141
- loop: { collection: '=vars.documents', itemVar: 'document', sequential: true, completion: '=vars.documentFailed' },
142
+ loop: { collection: '=js:vars.documents', itemVar: 'document', sequential: true, completion: '=js:vars.documentFailed' },
142
143
  })
143
144
  .fork('setup', [
144
145
  (b) => b
@@ -150,7 +151,7 @@ It compiles to three bare `bpmn:task` boxes, a timer start, an exclusive gateway
150
151
  .onError((h) => h.task('alertHr', { name: 'Alert HR [Connector]' }).endEvent('stopped', { name: 'Onboarding stopped', terminate: true }))
151
152
  .onTimer('PT1H', { interrupting: false }, (h) => h.task('chasePayroll', { name: 'Chase payroll [Connector]' }).endEvent('chased', { name: 'Payroll chased' }))),
152
153
  ])
153
- .task('welcome', { name: 'Welcome the hire [Connector]', loop: { collection: '=vars.teams', itemVar: 'team' } })
154
+ .task('welcome', { name: 'Welcome the hire [Connector]', loop: { collection: '=js:vars.teams', itemVar: 'team' } })
154
155
  .endEvent('done', { name: 'Onboarded' })
155
156
  .build();
156
157
  ```
@@ -203,10 +204,10 @@ Without `confirmAccounts`, the compiled file carries `createByHand → setup_joi
203
204
 
204
205
  ### Expected findings — do not chase them
205
206
 
206
- A skeleton validates as **Valid** with one warning per declared variable it reads — each variable a decision reads, and each collection or stop flag a multi-instance box reads: `Variable "vars.<id>" is read but never assigned; it will be empty at run time`.
207
+ A skeleton may validate as **Valid** with `Variable "vars.<id>" is read but never assigned; it will be empty at run time` warnings.
207
208
  That is correct for a skeleton, whose producers are blank boxes.
208
209
  When an error path merges onto a box (rule 9), `check` also warns `[FAKE_JOIN] "<box>" has <n> incoming flows; the platform accepts this, but joining with a gateway is clearer`; that is the intended merge.
209
- Act only on errors, and do not report these warnings: they are expected on a skeleton, so they get no line in the reply.
210
+ Act only on errors and on a `VARIABLE_NOT_SET` warning, which means a decision reads an input without the start event's mapping (rule 7); do not report the expected warnings above: they get no line in the reply.
210
211
 
211
212
  ## Find the resources
212
213
 
@@ -36,14 +36,14 @@ export default bpmn('claims-review')
36
36
  // Two routes reach the action: the confident arm falls through, and the review
37
37
  // arm's Approve falls through. The join `confidenceGate_join` is merge_gate.
38
38
  .choose('confidenceGate', [
39
- { when: '=vars.aiConfidenceLevel >= 0.85 && vars.validationPassed', label: 'High confidence', body: (b) => b },
39
+ { when: '=js:vars.aiConfidenceLevel >= 0.85 && vars.validationPassed', label: 'High confidence', body: (b) => b },
40
40
  {
41
41
  otherwise: true,
42
42
  label: 'Low confidence',
43
43
  body: (b) =>
44
44
  b.humanTask('humanReview', { name: 'Review claim', form: { fields: [], outcomes: ['Approve', 'Reject'] }, outputs: { reviewOutcome: '=Action' } })
45
45
  .choose('postReviewGate', [
46
- { when: '=vars.reviewOutcome == "Approve"', label: 'Approved', body: (a) => a },
46
+ { when: '=js:vars.reviewOutcome == "Approve"', label: 'Approved', body: (a) => a },
47
47
  { otherwise: true, label: 'Rejected', body: (a) => a.endEvent('endRejected', { name: 'Rejected by reviewer' }) },
48
48
  ]),
49
49
  },
@@ -103,13 +103,13 @@ Fall-through cannot express either, so declare each with `.exclusiveGateway(id)`
103
103
 
104
104
  ```ts
105
105
  .choose('stakesGate', [
106
- { when: '=vars.stakesValue >= 5000', label: 'High stakes', body: (b) => b.goto('seniorGate') },
106
+ { when: '=js:vars.stakesValue >= 5000', label: 'High stakes', body: (b) => b.goto('seniorGate') },
107
107
  { otherwise: true, label: 'Low stakes', body: (b) => b.choose('confidenceGate', [ /* arms end in .goto('mergeGate'), .goto('seniorGate') or an end event */ ]) },
108
108
  ])
109
109
  .exclusiveGateway('seniorGate', { name: 'Senior review' })
110
110
  .humanTask('seniorReview', { form: { fields: [], outcomes: ['Approve', 'Reject'] }, outputs: { seniorOutcome: '=Action' } })
111
111
  .choose('seniorVerdict', [
112
- { when: '=vars.seniorOutcome == "Approve"', label: 'Approved', body: (c) => c.goto('mergeGate') },
112
+ { when: '=js:vars.seniorOutcome == "Approve"', label: 'Approved', body: (c) => c.goto('mergeGate') },
113
113
  { otherwise: true, label: 'Rejected', body: (c) => c.endEvent('endSeniorRejected', { name: 'Rejected by senior' }) },
114
114
  ])
115
115
  .exclusiveGateway('mergeGate', { name: 'Approved' })
@@ -123,7 +123,7 @@ Senior review has no `Escalate` outcome on purpose: a senior verdict that can es
123
123
  Adds `stakesValue` (number), a domain signal such as loan amount or claim value, and `seniorOutcome` (string); `5000` is illustrative.
124
124
 
125
125
  **Verification chain.** Insert a second `.startAgent('verifier', …)` between `analyze` and `validate`, and extend the gate to require agreement:
126
- `'=vars.aiConfidenceLevel >= 0.85 && vars.verifierConfidence >= 0.85 && vars.verifierDecision == vars.aiDecision && vars.validationPassed'`.
126
+ `'=js:vars.aiConfidenceLevel >= 0.85 && vars.verifierConfidence >= 0.85 && vars.verifierDecision == vars.aiDecision && vars.validationPassed'`.
127
127
  Adds `verifierDecision` (string) and `verifierConfidence` (number).
128
128
  Bind the verifier to a **different model** than the analyzer; the same model has the same blind spots, so the second call verifies nothing.
129
129
 
@@ -54,13 +54,13 @@ export default bpmn('vendor-onboarding')
54
54
  // the chain. The joins the arms imply are the one shared reject merge.
55
55
  .choose('panelVerdict', [
56
56
  {
57
- when: '=vars.complianceOutcome == "Approve" && vars.financeOutcome == "Approve"',
57
+ when: '=js:vars.complianceOutcome == "Approve" && vars.financeOutcome == "Approve"',
58
58
  label: 'Both approve',
59
59
  body: (b) =>
60
60
  b.humanTask('managerReview', { name: 'Manager review', ...review('managerOutcome', 'managerRationale') })
61
61
  .choose('managerVerdict', [
62
62
  {
63
- when: '=vars.managerOutcome == "Approve"',
63
+ when: '=js:vars.managerOutcome == "Approve"',
64
64
  label: 'Approve',
65
65
  body: (a) => a.scriptTask('provision', { name: 'Provision vendor', script: 'return { ok: true };' })
66
66
  .plainTask('notifyApproved', { name: 'Tell requester', element: 'bpmn:sendTask' })
@@ -144,14 +144,14 @@ export default bpmn('claims-nightly')
144
144
  .startEvent('claimStart')
145
145
  .scriptTask('score', { name: 'Score claim', script: 'return { confidence: 0.9 };', outputs: { aiConfidenceLevel: '=result.response.confidence' } })
146
146
  .choose('confidenceGate', [
147
- { when: '=vars.aiConfidenceLevel >= 0.85', label: 'Confident', body: (b) => b },
147
+ { when: '=js:vars.aiConfidenceLevel >= 0.85', label: 'Confident', body: (b) => b },
148
148
  {
149
149
  otherwise: true,
150
150
  label: 'Unsure',
151
151
  body: (b) =>
152
152
  b.humanTask('assessorReview', { name: 'Assessor review', form: { fields: [], outcomes: ['Approve', 'Reject'] }, outputs: { reviewOutcome: '=Action' } })
153
153
  .choose('assessorVerdict', [
154
- { when: '=vars.reviewOutcome == "Approve"', label: 'Approved', body: (a) => a },
154
+ { when: '=js:vars.reviewOutcome == "Approve"', label: 'Approved', body: (a) => a },
155
155
  {
156
156
  otherwise: true,
157
157
  label: 'Rejected',
@@ -170,7 +170,7 @@ export default bpmn('claims-nightly')
170
170
  h.scriptTask('escalateClaim', { name: 'Escalate claim', script: 'return { ok: true };' })
171
171
  .task('recordEscalated', { name: 'Record escalation', set: { claimResults: '=js:vars.claimResults.concat([{ claim: iterator[0].item, outcome: "escalated" }])' } })
172
172
  .endEvent('claimEscalated', { name: 'Claim escalated' })),
173
- { name: 'Handle each claim', loop: { collection: '=vars.claims', itemVar: 'iterator[0]', sequential: true } },
173
+ { name: 'Handle each claim', loop: { collection: '=js:vars.claims', itemVar: 'iterator[0]', sequential: true } },
174
174
  )
175
175
  // Every exit of the body appended to claimResults; sequential, so none was lost.
176
176
  .scriptTask('aggregate', { name: 'Total the results', script: 'return vars.claimResults.length;' })
@@ -51,7 +51,7 @@ export default bpmn('vendor-docs')
51
51
  b.receiveMessage('replyReceived', {
52
52
  name: 'Vendor replied',
53
53
  message: 'VendorDocumentReply',
54
- reference: '=vars.correlationKey',
54
+ reference: '=js:vars.correlationKey',
55
55
  outputVar: 'responseData',
56
56
  }),
57
57
  (b) =>
@@ -59,7 +59,7 @@ export default bpmn('vendor-docs')
59
59
  .plainTask('sendReminder', { name: 'Nudge vendor', element: 'bpmn:sendTask' })
60
60
  .goto('wait'),
61
61
  (b) =>
62
- b.intermediateCatchEvent('slaDeadline', { name: 'Deadline passed', timer: { date: '=vars.slaDueAt' } })
62
+ b.intermediateCatchEvent('slaDeadline', { name: 'Deadline passed', timer: { date: '=js:vars.slaDueAt' } })
63
63
  .scriptTask('runEscalation', { name: 'Escalate', script: 'return { escalated: true };' })
64
64
  .endEvent('escalated', { name: 'Escalated' }),
65
65
  ])
@@ -69,7 +69,7 @@ export default bpmn('vendor-docs')
69
69
  outputs: { responseValid: '=result.response.valid', validationIssue: '=result.response.issue' },
70
70
  })
71
71
  .choose('validGate', [
72
- { when: '=vars.responseValid == true', label: 'Valid', body: (b) => b },
72
+ { when: '=js:vars.responseValid == true', label: 'Valid', body: (b) => b },
73
73
  {
74
74
  otherwise: true,
75
75
  label: 'Invalid',
@@ -80,7 +80,7 @@ export default bpmn('vendor-docs')
80
80
  outputs: { reviewOutcome: '=Action' },
81
81
  })
82
82
  .choose('reviewGate', [
83
- { when: '=vars.reviewOutcome == "Accept"', label: 'Accepted', body: (r) => r },
83
+ { when: '=js:vars.reviewOutcome == "Accept"', label: 'Accepted', body: (r) => r },
84
84
  {
85
85
  otherwise: true,
86
86
  label: 'Resend',
@@ -163,7 +163,7 @@ The deadline gate is what stops the loop; without it this shape never terminates
163
163
  A bare `bpmn:sendTask` placeholder validates with a warning that it invokes nothing.
164
164
  - **Reply arms**: the message name and its `reference` (`.receiveMessage()`), or the connector event (`.waitForEvent()`), per channel.
165
165
  - **Timers**: the reminder cadence is an ISO 8601 duration on `reminderDue`, which re-arms on each loop by design.
166
- The SLA is not a duration: set its length in `compose`, where `slaDueAt` is computed once, and keep `slaDeadline` on `timer: { date: '=vars.slaDueAt' }` ([Events](../bpmn-runtime.md#events-and-timers)).
166
+ The SLA is not a duration: set its length in `compose`, where `slaDueAt` is computed once, and keep `slaDeadline` on `timer: { date: '=js:vars.slaDueAt' }` ([Events](../bpmn-runtime.md#events-and-timers)).
167
167
  Never give a race that is re-entered a relative SLA timer.
168
168
  `check`, `compile` and `validate` accept the date expression; that the runtime resolves an expression on an intermediate catch timer is not yet confirmed on a live run.
169
169
  If it does not, the fallback that also never resets is a `.subProcess()` around the race with an interrupting `onTimer('P10D', …)` in its body, armed once on entry.
@@ -49,7 +49,7 @@ export default bpmn('invoice-batch')
49
49
  h.task('recordItemFailure', { name: 'Record failed invoice', set: { itemResults: '=js:vars.itemResults.concat([{ item: iterator[0].item, ok: false }])' } })
50
50
  .endEvent('itemFailed', { name: 'Invoice failed' })),
51
51
  // Sequential, so each iteration appends to the list the one before left.
52
- { name: 'Process each invoice', loop: { collection: '=vars.batchItems', itemVar: 'iterator[0]', sequential: true } },
52
+ { name: 'Process each invoice', loop: { collection: '=js:vars.batchItems', itemVar: 'iterator[0]', sequential: true } },
53
53
  )
54
54
  .scriptTask('aggregate', {
55
55
  name: 'Total the results',
@@ -59,7 +59,7 @@ export default bpmn('invoice-batch')
59
59
  // The report runs BEFORE the verdict, so finance gets it on both outcomes.
60
60
  .plainTask('sendReport', { name: 'Send summary to finance', element: 'bpmn:sendTask' })
61
61
  .choose('policyGate', [
62
- { when: '=vars.policySatisfied == false', label: 'Policy missed', body: (b) => b.endEvent('endFailed', { name: 'Batch failed' }) },
62
+ { when: '=js:vars.policySatisfied == false', label: 'Policy missed', body: (b) => b.endEvent('endFailed', { name: 'Batch failed' }) },
63
63
  { otherwise: true, label: 'Policy met', body: (b) => b.endEvent('endCompleted', { name: 'Batch completed' }) },
64
64
  ])
65
65
  .build();
@@ -27,13 +27,13 @@ Which you author depends on which side of the queue Maestro is on; author both,
27
27
  `start` → `fetchSource` → the enqueue → `endQueued`, with no conditions.
28
28
  One item at a time is `.queueItem(id, { queue, folder, item })`; `folder` is required.
29
29
  A batch is `.activity(id, 'Orchestrator.BulkAddQueueItems', { inputs })`, since it has no typed method; read its fields with `uip maestro bpmn registry get Orchestrator.BulkAddQueueItems --output json`.
30
- One variable, `sourceItems`, is the bulk input: declare it `object` if it is a process `.input`, because `refresh` refuses a `jsonSchema` process input or output; a `.var(…, 'jsonSchema')` is fine.
30
+ One variable, `sourceItems`, is the bulk input: declare it `object` if it is a process `.input`, because `refresh` refuses a `jsonSchema` process input or output; a `.var(…, 'jsonSchema')` is fine. As a process input, the enqueue reads it through the start event's mapping ([Process contract](../bpmn-runtime.md#variables-and-the-process-contract)).
31
31
 
32
32
  ### Performer: Maestro processes the items
33
33
 
34
34
  The performer's start event **is** the queue trigger, so this shape always begins the process.
35
35
  It cannot be inserted into an existing path or nested in a sub-process.
36
- The start stays a plain `.startEvent()`: the queue binding is configured outside the BPMN, and the registry has no queue-trigger type.
36
+ The start carries no trigger type, only the input mapping: the queue binding is configured outside the BPMN, and the registry has no queue-trigger type.
37
37
 
38
38
  ```ts
39
39
  import { bpmn } from '@uipath/maestro-builder-sdk/bpmn';
@@ -42,16 +42,19 @@ export default bpmn('claim-worker')
42
42
  .name('ClaimWorker')
43
43
  .flowMode('sequence')
44
44
  .input('queueItem', 'object', { name: 'Queue item' })
45
+ .var('item', 'object', { elementId: 'start' })
45
46
  .var('itemOutcome', 'string', { default: 'success' })
46
47
  .var('failureReason', 'string')
47
- // The queue trigger is configured outside the BPMN; the start stays plain.
48
- .startEvent('start', { name: 'Queue item added' })
48
+ // The queue trigger is configured outside the BPMN; the start only maps the input.
49
+ .startEvent('start', { name: 'Queue item added', payload: { type: 'BPMN.Variables', outputRows: [
50
+ { name: 'Queue item', type: 'object', source: '=vars.queueItem', var: 'item' },
51
+ ] } })
49
52
  .scriptTask('perItemAction', { name: 'Handle claim', script: 'return { outcome: "success", reason: null };', outputs: { itemOutcome: '=result.response.outcome', failureReason: '=result.response.reason' } })
50
53
  // Every branch BEGINS with the activity that marks the transaction.
51
54
  .choose('outcomeGate', [
52
- { when: '=vars.itemOutcome == "failure"', label: 'Failure', body: (b) => b.activity('setFailed', 'Orchestrator.SetTransactionStatus', { name: 'Mark failed', inputs: { QueueItem: '=vars.queueItem', Status: 'Failed', Reason: '=vars.failureReason' } }).endEvent('endFailed', { name: 'Item failed' }) },
53
- { when: '=vars.itemOutcome == "defer"', label: 'Defer', body: (b) => b.activity('postpone', 'Orchestrator.PostponeTransactionItem', { name: 'Postpone item', inputs: { QueueItem: '=vars.queueItem', PostponeDate: '=js:new Date(Date.now() + 3600000).toISOString()' } }).endEvent('endPostponed', { name: 'Item postponed' }) },
54
- { otherwise: true, label: 'Success', body: (b) => b.activity('setSuccessful', 'Orchestrator.SetTransactionStatus', { name: 'Mark successful', inputs: { QueueItem: '=vars.queueItem', Status: 'Successful' } }).endEvent('endSucceeded', { name: 'Item succeeded' }) },
55
+ { when: '=js:vars.itemOutcome == "failure"', label: 'Failure', body: (b) => b.activity('setFailed', 'Orchestrator.SetTransactionStatus', { name: 'Mark failed', inputs: { QueueItem: '=js:vars.item', Status: 'Failed', Reason: '=js:vars.failureReason' } }).endEvent('endFailed', { name: 'Item failed' }) },
56
+ { when: '=js:vars.itemOutcome == "defer"', label: 'Defer', body: (b) => b.activity('postpone', 'Orchestrator.PostponeTransactionItem', { name: 'Postpone item', inputs: { QueueItem: '=js:vars.item', PostponeDate: '=js:new Date(Date.now() + 3600000).toISOString()' } }).endEvent('endPostponed', { name: 'Item postponed' }) },
57
+ { otherwise: true, label: 'Success', body: (b) => b.activity('setSuccessful', 'Orchestrator.SetTransactionStatus', { name: 'Mark successful', inputs: { QueueItem: '=js:vars.item', Status: 'Successful' } }).endEvent('endSucceeded', { name: 'Item succeeded' }) },
55
58
  ])
56
59
  .build();
57
60
  ```
@@ -63,7 +66,7 @@ Neither needs discovery.
63
66
 
64
67
  | Node | Builder | Role |
65
68
  | --- | --- | --- |
66
- | `start` | plain `.startEvent()` | Mechanism |
69
+ | `start` | `.startEvent()` mapping `queueItem` into `item` | Mechanism |
67
70
  | `perItemAction` | the work | Placeholder |
68
71
  | `outcomeGate` | `.choose()` | Mechanism |
69
72
  | `setSuccessful`, `setFailed` | `.activity(id, 'Orchestrator.SetTransactionStatus', …)` | Mechanism |
@@ -72,13 +75,13 @@ Neither needs discovery.
72
75
 
73
76
  | Variable | Type | Holds |
74
77
  | --- | --- | --- |
75
- | `queueItem` | object | The triggering item, the `QueueItem` each marking step names |
78
+ | `queueItem` | object | The triggering item, the process input |
79
+ | `item` | object | `queueItem` as the start event maps it, the `QueueItem` each marking step names |
76
80
  | `itemOutcome` | string | `success`, `failure`, or `defer` |
77
81
  | `failureReason` | string | Why it failed, for `setFailed` |
78
82
 
79
83
  `QueueItem` takes the triggering item (an object carrying its `Id`).
80
84
  How the trigger hands that item to the process is configured with the trigger, outside the BPMN; bind `queueItem` to whatever carries it.
81
- Until something assigns it, `validate` warns `VARIABLE_NOT_SET` on each marking step.
82
85
 
83
86
  ## Variants
84
87
 
@@ -40,7 +40,7 @@ export default bpmn('smart-triage')
40
40
  // The confident arm is empty: it falls straight through to `route`.
41
41
  // The fallback arm sets the category, then falls through to the same `route`.
42
42
  .choose('confGate', [
43
- { when: '=vars.aiConfidence >= 0.85', label: 'Above floor', body: (b) => b },
43
+ { when: '=js:vars.aiConfidence >= 0.85', label: 'Above floor', body: (b) => b },
44
44
  {
45
45
  otherwise: true,
46
46
  label: 'Below floor',
@@ -53,8 +53,8 @@ export default bpmn('smart-triage')
53
53
  },
54
54
  ])
55
55
  .choose('route', [
56
- { when: '=vars.routeCategory == "Billing"', label: 'Billing', body: (b) => b.task('handleBilling').endEvent('routedBilling', { name: 'Billing routed' }) },
57
- { when: '=vars.routeCategory == "Technical"', label: 'Technical', body: (b) => b.task('handleTechnical').endEvent('routedTechnical', { name: 'Technical routed' }) },
56
+ { when: '=js:vars.routeCategory == "Billing"', label: 'Billing', body: (b) => b.task('handleBilling').endEvent('routedBilling', { name: 'Billing routed' }) },
57
+ { when: '=js:vars.routeCategory == "Technical"', label: 'Technical', body: (b) => b.task('handleTechnical').endEvent('routedTechnical', { name: 'Technical routed' }) },
58
58
  { otherwise: true, label: 'Spam', body: (b) => b.task('handleSpam').endEvent('routedSpam', { name: 'Spam discarded' }) },
59
59
  ])
60
60
  .build();
@@ -97,7 +97,7 @@ Set it from how costly a misroute is against how much manual triage you can abso
97
97
  | Rule-based | Are the categories decided by stable, auditable rules? | A business rule and a match gate replace the classifier and the confidence gate |
98
98
  | Hybrid | Can rules handle the clear cases cheaply? | Rules first; the classifier catches the rest |
99
99
 
100
- **Rule-based.** Replace `classify` with `.businessRule('applyRules', …)` and `confGate` with a `ruleGate` choose: `when: '=vars.ruleMatched == true'` falls through, `otherwise` holds `manualTriage`.
100
+ **Rule-based.** Replace `classify` with `.businessRule('applyRules', …)` and `confGate` with a `ruleGate` choose: `when: '=js:vars.ruleMatched == true'` falls through, `otherwise` holds `manualTriage`.
101
101
  `route` still follows the gate.
102
102
 
103
103
  **Hybrid.** Keep both.
@@ -81,6 +81,7 @@ export default casePlan('loan-approval')
81
81
  .required()
82
82
  .entryWhen(rule('current-stage-entered')))
83
83
  .task('Manager Approval', t => t
84
+ // Literal recipient is baked into the plan; test or unknown assignee: references/case-runtime.md § Action recipients
84
85
  .action({ title: 'Approve loan', priority: 'High', recipient: 'manager@corp.com', app: { name: 'LoanApproval', folder: 'Shared' } })
85
86
  .entryWhen(rule('selected-tasks-completed', { tasks: ['Check Policy'] }))))
86
87
  .stage('Decision', s => s
@@ -35,6 +35,51 @@ make from syntax alone. Exact signatures remain in the generated API.
35
35
  error. Write the complementary condition explicitly, even when the negative
36
36
  arm only routes to a close-out.
37
37
 
38
+ ## Action recipients and the go-live trap
39
+
40
+ <!-- RULE:case.recipient.externalize -->
41
+ - A literal `recipient: '<email>'` compiles to `{ Type: 2, Value: <email> }`
42
+ and bakes the address into the plan: going live means editing every action
43
+ and publishing a new version. When the request names a test, placeholder or
44
+ not-yet-known assignee, wire it through a case input instead:
45
+
46
+ ```ts
47
+ .input({ approver: { type: 'string', default: '<TEST_EMAIL>' } }, { from: manual })
48
+ // ...
49
+ .action({ ..., recipient: { type: 3, value: '=vars.approver' } })
50
+ ```
51
+
52
+ Going live then means changing the input default, or passing the real
53
+ address when the case starts; the actions stay unchanged.
54
+ Recipient types are `0` user id, `1` group name, `2` email, `3` expression.
55
+ Type `3` evaluates `value` and assigns the result as a user when it is an
56
+ email, and as a group name otherwise. An expression needs type `3`: a bare
57
+ string `'=vars.approver'` is type `2` and is looked up as a literal email.
58
+ `case check` warns `STRICT_RECIPIENT_EXPRESSION_TYPE` on that, and
59
+ `case validate --strict` fails. The SDK's `RecipientType` doc comment still
60
+ calls `0`/`1`/`3` reserved; that comment is stale, and type `3` is the
61
+ expression type the CLI and `case check` accept.
62
+ Brownfield: keep a decompiled `{ type, value }` recipient as is.
63
+
64
+ <!-- RULE:case.recipient.no-silent-default -->
65
+ - Before `uip solution upload` or `uip solution publish`, tell the user the
66
+ list below, and repeat that list in the final summary of every build or
67
+ edit. List each assignee the user did not name as the production assignee: an input default, a literal
68
+ `recipient`, or an SLA escalation target (`toUser`, `toGroup`). These include
69
+ a test mailbox, the user's own email, and `<UNRESOLVED: ...>`. For each one,
70
+ give the address or group, the actions or escalations it routes, and what
71
+ going live changes: the input default, or each literal in the source plus a
72
+ new published version.
73
+
74
+ `uip maestro case debug` and `uip maestro case process run` start a case
75
+ instance and create real tasks for these assignees. `upload`, `publish`,
76
+ `check`, `compile` and `validate` start none. Before `debug` or
77
+ `process run`:
78
+ 1. An assignee still `<UNRESOLVED: ...>`: do not run it.
79
+ 2. An address or group the user did not confirm: ask. A request or
80
+ pre-approval that names that step is the user's answer. When no user can
81
+ answer and nothing names that step, do not run it.
82
+
38
83
  ## Script tasks
39
84
 
40
85
  <!-- RULE:case.script.positional-rename -->
@@ -6,7 +6,7 @@ An Extract document node (`uipath.ixp.extract-document-builder`) extracts named
6
6
 
7
7
  ```bash
8
8
  uip maestro flow extraction check --output json
9
- uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label '<name>' --input '{"fileRef":"=js:$vars.<upstream>.output.<field>"}' --output json
9
+ uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label '<name>' --input '{"fileRef":"=js:$vars.<upstream>.output.<field>"}' --position <x>,<y> --output json
10
10
  uip maestro flow validate <file> --output json
11
11
  ```
12
12
 
@@ -14,7 +14,7 @@ uip maestro flow validate <file> --output json
14
14
 
15
15
  ## Which extraction node the user wants
16
16
 
17
- In a new flow, document extraction is a published IXP model, covered in [ixp.md](ixp.md): the IXP project is built and deployed first, and the flow then runs against it. That holds when no model exists yet, since building one is the first step. Add the Extract document node to a new flow only when the user asks for it by name. In an existing flow, keep the extraction node it has (`uip maestro flow nodes list <file> --output json` shows its type); a builder node or its inline taxonomy stays on this guide. A published-model taxonomy belongs to `uipath-ixp`.
17
+ In a new flow, document extraction is a published IXP model, covered in [ixp.md](ixp.md): the IXP project is built and deployed first, and the flow then runs against it. That holds when no model exists yet ([ixp.md](ixp.md#resource-identity)). Add the Extract document node to a new flow only when the user asks for it by name, or offer it when `uipath-ixp` reports IXP not enabled. In an existing flow, keep the extraction node it has (`uip maestro flow nodes list <file> --output json` shows its type); a builder node or its inline taxonomy stays on this guide. A published-model taxonomy belongs to `uipath-ixp`.
18
18
 
19
19
  | Node | Node type | Where covered |
20
20
  | --- | --- | --- |
@@ -33,7 +33,7 @@ Add a descriptive node, wire its file, write taxonomy, bind the result, and vali
33
33
  0. **Find the flow.** Edit a `.flow` on disk. If the user describes a flow they are already building and none exists locally, it may live in Studio Web and need pulling down first; ask for its URL or solution id; nothing lists them ([Starting from a flow in Studio Web](extract-document-taxonomy.md#starting-from-a-flow-in-studio-web)).
34
34
  1. **Check the tenant:** run `uip maestro flow extraction check --output json`. Any settled answer other than `Available` stops the loop; an unsettled check is a question for the user ([Check the tenant can run it](#check-the-tenant-can-run-it)).
35
35
  2. **Declare the input if absent:** run `uip maestro flow variables create <file> invoice -d in -t file --description '<what the document is>'`. Its `TriggerNodeId` is `<trigger>` in `$vars.<trigger>.output.invoice`.
36
- 3. **Add the node** with `--label` naming what it extracts, and `--input` carrying `fileRef`, laid out per [operate.md](operate.md#layout-of-the-emitted-flow).
36
+ 3. **Add the node** with `--label` naming what it extracts, `--input` carrying `fileRef`, and `--position` on the canvas grid ([operate.md](operate.md#lay-out-from-source-instead-layout-at-dim), rule 1).
37
37
  4. **Connect it** with `edges create` ([Wiring the file it reads](#wiring-the-file-it-reads)).
38
38
  5. **Write the taxonomy:** [extract-document-taxonomy.md](extract-document-taxonomy.md).
39
39
  6. **Bind the result** to a flow output ([Returning the result](#returning-the-result)).
@@ -85,7 +85,7 @@ Keep `modelName`, `folderKey`, and other deployment fields under `inputs` as emp
85
85
  Set it at creation when the upstream node already exists:
86
86
 
87
87
  ```bash
88
- uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract Invoice' --input '{"fileRef":"=js:$vars.<trigger>.output.invoice"}' --output json
88
+ uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract Invoice' --input '{"fileRef":"=js:$vars.<trigger>.output.invoice"}' --position <x>,<y> --output json
89
89
  ```
90
90
 
91
91
  Use the plain `=js:$vars.…` string. The structured form `{"type":"jsExpression","expression":"$vars.…","fieldType":"object"}` validates only when `fieldType` is present. A literal filename or hand-built attachment object remains literal and does not resolve upstream.
@@ -125,7 +125,7 @@ Declare an output, add an End node, connect the extract node, then bind the outp
125
125
 
126
126
  ```bash
127
127
  uip maestro flow variables create <file> extractedData -d out -t object --description 'The structured data extracted from the document' --output json
128
- uip maestro flow nodes create <file> core.control.end --label 'End' --output json
128
+ uip maestro flow nodes create <file> core.control.end --label 'End' --position <x>,<y> --output json
129
129
  uip maestro flow edges create <file> <extract-id> <end-id> --output json
130
130
  ```
131
131
 
@@ -176,7 +176,7 @@ Never hand-write `processorKey` or give a node another node's key as its own. Ea
176
176
  A second node with identical fields and model settings shares the existing node's processor rather than copying its taxonomy; supply both inputs at creation, since nothing adds them later:
177
177
 
178
178
  ```bash
179
- uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract credit note' --input '{"fileRef":"=js:$vars.start.output.creditNote","processorKey":"<the authoring node key>","processorReadOnly":true}' --output json
179
+ uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract credit note' --input '{"fileRef":"=js:$vars.start.output.creditNote","processorKey":"<the authoring node key>","processorReadOnly":true}' --position <x>,<y> --output json
180
180
  ```
181
181
 
182
182
  A read-only node has no resource or taxonomy; it runs the author's processor. `nodes schema set` changes nothing that deploys when run on it.
@@ -194,7 +194,7 @@ After a pulled-down flow has been through Studio Web, pull the solution again be
194
194
 
195
195
  ## When Extract document is not available
196
196
 
197
- Report the reason from `Data.Reason` or the deploy/run message, even when it names something this guide does not describe. Never add the node anyway, and never substitute a placeholder when working extraction was requested.
197
+ `uipath-ixp` reporting IXP not enabled is not this case; `extraction check` decides. Report the reason from `Data.Reason` or the deploy/run message, even when it names something this guide does not describe. Never add the node anyway, and never substitute a placeholder when working extraction was requested.
198
198
 
199
199
  **First, look for a published IXP model:**
200
200
 
@@ -62,7 +62,7 @@ uip maestro flow registry get '<node-type>' \
62
62
 
63
63
  Scalar results are `ExtractionResult.ResultsDocument.Fields[]`; table results are `ExtractionResult.ResultsDocument.Tables[]`. In both, `FieldName` identifies the model field and `Values` carries extracted values.
64
64
 
65
- If no suitable published extractor exists: for a runtime or published-model requirement, report the missing capability and stop; for a validate-only topology showing where extraction belongs, put `mock()` in the extraction position, complete and validate the surrounding flow, and report the placeholder as the capability gap. Do not block validate-only topology on unavailable extractors or downstream endpoints when placeholders preserve the requested graph. `pageRange` is a product string; `1-5` is illustrative because no local grammar is published.
65
+ If no suitable published extractor exists: for a runtime or published-model requirement, report the missing capability and ask whether to build one with `uipath-ixp`; for a validate-only topology showing where extraction belongs, put `mock()` in the extraction position, complete and validate the surrounding flow, and report the placeholder as the capability gap. Do not block validate-only topology on unavailable extractors or downstream endpoints when placeholders preserve the requested graph. `pageRange` is a product string; `1-5` is illustrative because no local grammar is published.
66
66
 
67
67
  ## File input from a connector event
68
68
 
@@ -147,10 +147,10 @@ On newer CLI builds a successful upgrade also checks that the deployment's folde
147
147
  - On a CLI build without the flag the option is unknown; against a server that predates the confirmation, the upgrade never reaches a terminal status and the command reports its usual timeout (`did not finish within …s`, "It may still be running").
148
148
  - By default the command **waits** for the install to reach a terminal state (`--timeout <seconds>`, default 300; `--poll-interval <ms>`, default 5000). Pass `--no-wait` to return as soon as the install is accepted.
149
149
  - A failure reports the server's reason (for example `Solution folder not found` when the deployment's solution folder was deleted), not a bare status. The reason normally comes from the pipeline run itself; when the run record has already been recycled the CLI reads the deployment's validation result instead, and says `the server reported no reason.` only when the server genuinely gives none.
150
- - **`Status: DeploymentSucceeded` does not mean the new version runs.** Read `DeploymentStatus` and `ActivationStatus` in the same output. `SuccessfulInstall` / `NeedsSetupToActivate` means the new version is installed but does not run until "Setup activation" is completed in Orchestrator (Tenant > Solutions > Deployments; the UI shows the deployment as **Inactive (Needs setup)**) — typically an Integration Service connection whose configuration the upgrade could not carry over; `PendingResources` names it with the `Reason` the activation validation gives and the Orchestrator folders it lives in (`FolderPaths`), and `NextSteps` says what to do. On current servers this report is the same for an external app (CI/CD) as for a user session. The old version keeps running meanwhile. Do **not** run the upgrade again: the content is already there. The CLI has no command for this step on an existing deployment (`deploy config link` only serves a new `deploy run`, and `deploy upgrade` takes no config file), and `deploy activate` is refused with `4007 … cannot be activated` until it is done. `ReadyToActivate` / `Inactive` is different: run `uip solution deploy activate <deployment-name>`. A pipeline that ends at `ValidationFailed` while the record reports `SuccessfulInstall` is reported the same way — the install landed and the errors, which open `NextSteps`, come from the activation validation the pipeline runs after the install (measured on both `deploy run` and `deploy upgrade`) — not as a rejected attempt.
150
+ - **`Status: DeploymentSucceeded` does not mean the new version runs.** Read `DeploymentStatus` and `ActivationStatus` in the same output. `SuccessfulInstall` / `NeedsSetupToActivate` means the new version is installed but does not run until activation setup is completed in Orchestrator (Tenant > Solutions > Deployments; click **Activate deployment** on the deployment, which the UI shows as **Inactive (Needs setup)**) — typically an Integration Service connection whose configuration the upgrade could not carry over; `PendingResources` names it with the `Reason` the activation validation gives and the Orchestrator folders it lives in (`FolderPaths`), and `NextSteps` says what to do. On current servers this report is the same for an external app (CI/CD) as for a user session. The old version keeps running meanwhile. Do **not** run the upgrade again: the content is already there. The CLI has no command for this step on an existing deployment (`deploy config link` only serves a new `deploy run`, and `deploy upgrade` takes no config file), and `deploy activate` is refused with `4007 … cannot be activated` until it is done. `ReadyToActivate` / `Inactive` is different: run `uip solution deploy activate <deployment-name>`. A pipeline that ends at `ValidationFailed` while the record reports `SuccessfulInstall` is reported the same way — the install landed and the errors, which open `NextSteps`, come from the activation validation the pipeline runs after the install (measured on both `deploy run` and `deploy upgrade`) — not as a rejected attempt.
151
151
  - **Any published version of the same package is a valid target.** Omit `--version` to take the newest (one extra lookup), or pass `--version <version>` for a specific one — including an older version, to step back. Requesting the version already deployed is not refused; it comes back as `Operation: "ConfigurationChange"` (see above) — unless a pending draft is in the way, which is refused whatever the version (see above), the one exception being a same-version draft that awaits permanent-deletion consent, which `--acknowledge-permanent-deletion` re-runs.
152
152
  - **A key is one record, not the deployment.** `deploy run`, `deploy upgrade` and the Orchestrator wizard each create a new deployment record with its own key; `deploy list` shows the newest one, and `InstallDeploymentKey` is the one that never changes. A key from before an upgrade is *superseded*: `deploy upgrade <key>` resolves it to the deployment's current generation through the Pipelines lookup and upgrades that; on a server without the lookup, a user session's fallback reads the record's name and continues as the name form, so the version you ask for is what moves, and asking for the version already live is a `ConfigurationChange`. `deploy status <key>` answers `Superseded: true` with `CurrentDeploymentKey`. Store `InstallDeploymentKey`, or take the current key from `deploy list`.
153
- - **An abandoned "Setup activation" has an exit.** Starting the wizard in Orchestrator and leaving it creates an `ActivationSetup` / `Draft` record on top (`Actions: [Install, Delete]`). `uip solution deploy delete <deployment-name> --yes` removes that record alone; the installed record is the head again, still `NeedsSetupToActivate`, folder and resources untouched. Finishing the wizard instead lands `ActivationSetup` / `Successful` / `Active`.
153
+ - **An abandoned activation wizard has an exit.** Starting the wizard in Orchestrator and leaving it creates an `ActivationSetup` / `Draft` record on top (`Actions: [Install, Delete]`). `uip solution deploy delete <deployment-name> --yes` removes that record alone; the installed record is the head again, still `NeedsSetupToActivate`, folder and resources untouched. Finishing the wizard instead lands `ActivationSetup` / `Successful` / `Active`.
154
154
  - The server decides what may be upgraded, and refuses synchronously — before any `PipelineDeploymentId` exists — when the deployment name does not exist, when it belongs to a different package than `--package-name`, when an operation is already in progress on it, when a pending draft for another version stands in the way (reported as the pending-draft refusal above), or when it is not in an upgradeable state. A deployment an **earlier CLI version** left in `ValidateError` (the late-validation state described above) is upgradeable on current Orchestrator, which is how you move it on; on an older Automation Solutions build it is refused, and uninstall-and-redeploy is the only way out.
155
155
 
156
156
  ## Step 3: Uninstall a Deployment
@@ -158,7 +158,7 @@ uip solution deploy run -n "InvoiceAutomation-v2" \
158
158
  --folder-name "MySolutionFolder" --output json
159
159
  ```
160
160
 
161
- A successful run returns `Status: DeploymentSucceeded` and `ActivationStatus: SuccessfulActivate`, along with `DeploymentKey`, `PipelineDeploymentId`, `InstanceId`, and the [deployment links](#open-the-deployment-in-orchestrator) `OrchestratorUrl` / `FolderUrl` (when available). When a resource needs "Setup activation" in Orchestrator before the deployment can be activated — an Integration Service connection that must be authenticated, typically — the run is still `Result: Success`: the install landed, `ActivationStatus: NeedsSetupToActivate`, `PendingResources` names each resource with its `Reason` (`[CNS1072] You will need to authenticate this connection before proceeding further`) and its Orchestrator folders (`FolderPaths`, `null` when the server does not report them), and `NextSteps` gives the Orchestrator step. When the server already reports that state after the install, `deploy run` does not attempt the activation. Do **not** run the deploy again: the deployment exists. On such a run the pipeline itself can end at `ValidationFailed` **after** the install landed (the deployment record reports `SuccessfulInstall`); the CLI still reports the deployment, keeps the pipeline's word in `Status`, and opens `NextSteps` with the pipeline's errors, which come from the activation validation the pipeline runs after the install. `ReadyToActivate` means the install landed and the activation did not run: `uip solution deploy activate <name>`. Any other refused activation is a failure with `Retry activation with: uip solution deploy activate <name>`.
161
+ A successful run returns `Status: DeploymentSucceeded` and `ActivationStatus: SuccessfulActivate`, along with `DeploymentKey`, `PipelineDeploymentId`, `InstanceId`, and the [deployment links](#open-the-deployment-in-orchestrator) `OrchestratorUrl` / `FolderUrl` (when available). When a resource needs activation setup in Orchestrator (click **Activate deployment** on the deployment) before it can be activated — an Integration Service connection that must be authenticated, typically — the run is still `Result: Success`: the install landed, `ActivationStatus: NeedsSetupToActivate`, `PendingResources` names each resource with its `Reason` (`[CNS1072] You will need to authenticate this connection before proceeding further`) and its Orchestrator folders (`FolderPaths`, `null` when the server does not report them), and `NextSteps` gives the Orchestrator step. When the server already reports that state after the install, `deploy run` does not attempt the activation. Do **not** run the deploy again: the deployment exists. On such a run the pipeline itself can end at `ValidationFailed` **after** the install landed (the deployment record reports `SuccessfulInstall`); the CLI still reports the deployment, keeps the pipeline's word in `Status`, and opens `NextSteps` with the pipeline's errors, which come from the activation validation the pipeline runs after the install. `ReadyToActivate` means the install landed and the activation did not run: `uip solution deploy activate <name>`. Any other refused activation is a failure with `Retry activation with: uip solution deploy activate <name>`.
162
162
 
163
163
  This holds on **every** feed. A `--feed` or `--personal-workspace` deploy goes through the same Pipelines install as a tenant one, so it validates the package against the target before installing and waits for the run to reach a terminal state — it does not return early. A configuration the target rejects fails the command (exit `1`, `ErrorCode: invalid_argument`, `ValidationFailed` in `Message`) with the per-resource errors in `Instructions`, and nothing is provisioned — that is a `ValidationFailed` before the install; the one whose record reports `SuccessfulInstall` is the landed case above, and a success. (`--wait` is still accepted and does nothing; older CLI versions needed it on those feeds.)
164
164
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.207.0-preview.2083",
3
+ "skillsVersion": "1.207.0-preview.2100",
4
4
  "targetCli": "^1.207.0"
5
5
  }