@uipath/skills 1.207.0-preview.2278 → 1.207.0-preview.2320
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/uipath-coded-apps/SKILL.md +4 -1
- package/skills/uipath-coded-apps/references/public-coded-app.md +218 -0
- package/skills/uipath-maestro-bpmn/references/connectors.md +1 -1
- package/skills/uipath-maestro-bpmn/references/final-report-template.md +1 -0
- package/skills/uipath-maestro-bpmn/references/patterns/high-volume-batch-guide.md +2 -2
- package/skills/uipath-maestro-flow/SKILL.md +1 -1
- package/skills/uipath-maestro-flow/references/CLI-LOOP.md +2 -1
- package/skills/uipath-maestro-flow/references/manual-trigger.md +17 -1
- 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.
|
|
3
|
+
"version": "1.207.0-preview.2320",
|
|
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"
|
|
@@ -29,6 +29,7 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
29
29
|
|------|-------------|----------------|
|
|
30
30
|
| **Coded Web App** | React/Vue/other frontend hosted on UiPath CDN | User-facing app accessed via a URL |
|
|
31
31
|
| **Coded Action App** | React form wired to UiPath Action Center | Rendered inside human task reviews in Maestro/Agent workflows |
|
|
32
|
+
| **Public Coded Web App** (preview) | Coded Web App that anyone with the link uses **without signing in** | In-solution only; runs as a confidential external app — see [public-coded-app.md](references/public-coded-app.md) |
|
|
32
33
|
|
|
33
34
|
> **Two lifecycles, two scaffolding entry points.**
|
|
34
35
|
>
|
|
@@ -61,11 +62,12 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
61
62
|
20. **A scaffold is not React until `src/main.tsx` exists — assert it before installing anything.** Scaffold both app types by copying the single `create-vite` command from [create-web-app.md](references/create-web-app.md) Step 3.2 or [create-action-app.md](references/create-action-app.md): it passes `--no-interactive` — without which `create-vite` stops on a linter prompt, and exits `0` having created nothing when no one can answer it — and ends in a `node` check that prints `SCAFFOLD_OK`. Never use an `npm create vite` form — `npm create` needs a bare `--` separator to forward flags, and a lost or corrupted separator makes npm swallow `--template` so `create-vite` silently scaffolds its **vanilla TypeScript** template. Never judge a scaffold by its exit code or output: `create-vite` exits `0` on a misparsed template, on a linter prompt it could not show, and on `Operation cancelled` over a non-empty target directory. Nothing in this skill installs `react` explicitly, so a wrong template surfaces minutes later as an unrelated-looking build failure. On failure re-scaffold with `--overwrite`; never convert a vanilla scaffold into a React one by hand.
|
|
62
63
|
21. **Call third-party systems through an Integration Service connector, or build one with `uip is connectors builder`; a direct `fetch` with a key needs a stated reason.** Any key the app holds (source, env var, `uipath.json`) ships in `dist/`. UiPath SDK calls are fine: they use the app's own session.
|
|
63
64
|
22. **Run the action-schema validator after every write or edit of `action-schema.json`.** Run `node <skill-dir>/scripts/validate-action-schema.js <path-to-action-schema.json>` and fix until exit `0` before reporting done — even when told to write the schema directly with no questions. A schema that looks right is not validated. Details: [create-action-app.md](references/create-action-app.md#validate-the-schema-required-before-proposing-it).
|
|
65
|
+
23. **Public (no sign-in) apps follow [public-coded-app.md](references/public-coded-app.md) end to end.** When the user wants an app for people without a UiPath account ("public", "anonymous", "customers/guests", "no login"), first confirm it fits the public limits in that file, then build it as an in-solution coded app with a confidential external app, no sign-in code, only the supported public calls, and every resource listed in a hand-written `bindings_v2.json`.
|
|
64
66
|
|
|
65
67
|
## Disambiguation — Apps vs Dashboards
|
|
66
68
|
|
|
67
69
|
**Route directly to Apps workflow** (sections below) when you see:
|
|
68
|
-
`web app`, `action app`, `codedapp`, `app.config.json`, `action-schema.json`,
|
|
70
|
+
`web app`, `action app`, `public app`, `no sign-in`, `codedapp`, `app.config.json`, `action-schema.json`,
|
|
69
71
|
`scaffold app`, `deploy app`, `pack`, `publish`, `push`, `pull`, `debug app`
|
|
70
72
|
|
|
71
73
|
**Route directly to [references/dashboards/CAPABILITY.md](references/dashboards/CAPABILITY.md) when you see:**
|
|
@@ -85,6 +87,7 @@ For the app's **JS/TS function backend** — authoring the `defineFunction` endp
|
|
|
85
87
|
|---|---|
|
|
86
88
|
| **Create a new Coded Web App** | [references/create-web-app.md](references/create-web-app.md) |
|
|
87
89
|
| **Create a new Coded Action App** | [references/create-action-app.md](references/create-action-app.md) |
|
|
90
|
+
| **Create a public (no sign-in) coded app** (preview) | [references/public-coded-app.md](references/public-coded-app.md) |
|
|
88
91
|
| **Debug auth or config issues** | [references/debug.md](references/debug.md) |
|
|
89
92
|
| **Push/pull code to Studio Web** | [references/file-sync.md](references/file-sync.md) |
|
|
90
93
|
| **Package and deploy** | [references/pack-publish-deploy.md](references/pack-publish-deploy.md) |
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Public Coded Web App (preview)
|
|
2
|
+
|
|
3
|
+
A public coded app is a Coded Web App that **anyone with the link can use without signing in to UiPath** — customers, suppliers, event guests. It calls UiPath as a **confidential external application** of the organization, and only for the resources it declares.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> **Preview.** Public coded apps need:
|
|
7
|
+
> - SDK: `@uipath/uipath-typescript` `1.8.5` or later
|
|
8
|
+
> - CLI: `npm install -g @uipath/cli` (`1.206.0` or later)
|
|
9
|
+
> - Local runs: `@uipath/coded-apps-dev` `1.0.0` or later
|
|
10
|
+
>
|
|
11
|
+
> Today you write `bindings_v2.json` by hand. Generating it from the app code is coming soon.
|
|
12
|
+
|
|
13
|
+
## Decide: public or sign-in
|
|
14
|
+
|
|
15
|
+
Build a public app only when the people using it have no UiPath account. Otherwise build a normal sign-in Coded Web App — see [create-web-app.md](create-web-app.md).
|
|
16
|
+
|
|
17
|
+
Before building, confirm with the user that the app fits these limits:
|
|
18
|
+
|
|
19
|
+
- **Anyone with the link can use it.** No sensitive data (Social Security numbers, billing details) in or out.
|
|
20
|
+
- **The app doesn't know who the visitor is.** No per-user features, no calls that need the current user.
|
|
21
|
+
- **Visitors can add, never change.** They can start jobs, add and read records, and upload files. Anything else (send an email, update another system, edit or delete data) goes in a process the app starts.
|
|
22
|
+
- **Solution only.** The app is deployed with a solution. A coded app deployed on its own cannot be public. Coded action apps cannot be public.
|
|
23
|
+
- **Folder-scoped entities only.** Tenant-level Data Fabric entities are not supported.
|
|
24
|
+
- **IP restrictions.** If the organization restricts access by IP address, visitors outside the allowed ranges cannot use the app. The Trusted public apps list does not cover public coded apps yet.
|
|
25
|
+
|
|
26
|
+
## Design
|
|
27
|
+
|
|
28
|
+
### Access modes
|
|
29
|
+
|
|
30
|
+
For each resource the app reads, the developer sets one of two access modes in `uipath.json` `access`:
|
|
31
|
+
|
|
32
|
+
- `session` — a visitor can read only the data they added in their own session. Listing the resource is not allowed.
|
|
33
|
+
- `all` — the data in the declared resource is shared with every visitor. This is the default.
|
|
34
|
+
|
|
35
|
+
A visitor is identified by their browser session. Another browser, a private window, or cleared cookies start a new session, and a new session cannot read what an earlier session added. So show a visitor their results in the same visit (a confirmation screen after submit), not "come back later".
|
|
36
|
+
|
|
37
|
+
List every resource the app reads, and use `session` for anything personal.
|
|
38
|
+
|
|
39
|
+
### Data and security
|
|
40
|
+
|
|
41
|
+
- **Data Fabric Everyone group.** A role assigned to the Everyone group also applies to the app's external application. Ask the user to remove the Everyone group from entities the app must not read, and to use field-level access for fields it must not see.
|
|
42
|
+
- **No secrets in job output.** The visitor's browser receives the output of the jobs it starts. Keep secrets (one-time codes, tokens) inside the process — for example a coded function or an API workflow — and return only what the visitor may see.
|
|
43
|
+
- **No keys in the app.** Everything in the build output is public.
|
|
44
|
+
- **Validate input in the process.** Treat anything a visitor sends as untrusted.
|
|
45
|
+
- **One folder per public app**, so the external application's role covers only that app's resources.
|
|
46
|
+
|
|
47
|
+
## Hard rules
|
|
48
|
+
|
|
49
|
+
1. **Solutions only.** A public app must live in a solution: `uip solution init` → `uip codedapp init` inside it. Never use `uip codedapp publish/deploy` for it.
|
|
50
|
+
2. **No sign-in code.** `const sdk = new UiPath(); await sdk.initialize();` — the app runs without sign-in once it is deployed as public. Never add login buttons, PKCE, or tokens.
|
|
51
|
+
3. **Only these calls work** (anything else throws `ValidationError` before a request is sent):
|
|
52
|
+
|
|
53
|
+
| Service | Call | Visitor gets |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `Processes` | `start({ name }, { folderPath, inputArguments })` | starts one job |
|
|
56
|
+
| `Jobs` | `getOutput(jobKey)` | output of jobs they started (any job of the process in `all` mode) |
|
|
57
|
+
| `Entities` | `insertRecord({ name }, data)` | adds a record |
|
|
58
|
+
| `Entities` | `getRecordByName(name, recordId)` | records they added (any record in `all` mode) |
|
|
59
|
+
| `Entities` | `getRecordsByName(name, { pageSize, cursor })` | `all` mode only |
|
|
60
|
+
| `Buckets` | `uploadFile({ name }, fileName, content, { folderPath })` | uploads a file under a new name, so it never overwrites one |
|
|
61
|
+
|
|
62
|
+
Edit, delete, filtering, action apps and tenant-level entities are **not supported**. Put that logic in a process (RPA, coded function, agent, Maestro, API workflow) and `start` it.
|
|
63
|
+
4. **List every resource the app uses in `bindings_v2.json`** at the app project root (see [Declare the resources](#declare-the-resources)). A resource that isn't listed is refused with 403.
|
|
64
|
+
5. **Never handle the client secret in the conversation.** The user puts it in their own shell (`export APP_CLIENT_SECRET=...`) or their own `.env.local`; pass it as `"$APP_CLIENT_SECRET"`. `uip solution deploy config set ... clientSecret` echoes the value — always add `--output-filter Property`.
|
|
65
|
+
|
|
66
|
+
## Prerequisites (admin)
|
|
67
|
+
|
|
68
|
+
- A **confidential** external application with **application** scopes for what the app calls (see [oauth-scopes.md](oauth-scopes.md)). Always include `OR.Execution`. Data Fabric: `DataFabric.Data.Read DataFabric.Data.Write`; jobs: `OR.Jobs`; buckets: `OR.Buckets`.
|
|
69
|
+
```bash
|
|
70
|
+
uip admin external-apps create "<App name>" --app-scope "OR.Execution DataFabric.Data.Read DataFabric.Data.Write" --output json
|
|
71
|
+
```
|
|
72
|
+
The response contains the secret once — tell the user to store it; do not print or save it yourself.
|
|
73
|
+
- After the first deploy, the external application needs a role in the **deployment folder** for the resources it uses. The deployment does not grant it. Ask the user or an admin to assign it: Orchestrator → **Tenant** → **Folders** → the deployment folder → **Assign accounts/group/external app** → the external application → a role such as **Automation User** (for entities: Entity Records **View** and **Create**).
|
|
74
|
+
|
|
75
|
+
## Build
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
uip solution init "Feedback"
|
|
79
|
+
cd Feedback
|
|
80
|
+
uip codedapp init ./feedback-app
|
|
81
|
+
# scaffold the React/Vite sources into feedback-app/source (create-web-app.md, Step 3), build output in source/dist
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Declare the resources
|
|
85
|
+
|
|
86
|
+
Write `feedback-app/bindings_v2.json` (the project root, next to `source/`), one entry per resource:
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"version": "2.0",
|
|
91
|
+
"resources": [
|
|
92
|
+
{
|
|
93
|
+
"resource": "entity",
|
|
94
|
+
"key": "EventFeedback",
|
|
95
|
+
"value": {
|
|
96
|
+
"name": { "defaultValue": "EventFeedback", "isExpression": false, "displayName": "Name" },
|
|
97
|
+
"folderPath": { "defaultValue": ".", "isExpression": false, "displayName": "Folder Path" }
|
|
98
|
+
},
|
|
99
|
+
"metadata": { "BindingsVersion": "2.2" }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"resource": "process",
|
|
103
|
+
"key": "Summarize.Shared",
|
|
104
|
+
"value": {
|
|
105
|
+
"name": { "defaultValue": "Summarize", "isExpression": false, "displayName": "Name" },
|
|
106
|
+
"folderPath": { "defaultValue": "Shared", "isExpression": false, "displayName": "Folder Path" }
|
|
107
|
+
},
|
|
108
|
+
"metadata": { "BindingsVersion": "2.2" }
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- `resource` is `process`, `entity` or `bucket`.
|
|
115
|
+
- `key` is `Name.FolderPath` for processes and buckets, and the name alone for entities (folder path `"."`).
|
|
116
|
+
- Then run `uip solution resources refresh` from the solution root to add them to the solution. It reads the file only at the project root.
|
|
117
|
+
|
|
118
|
+
### Call the resources
|
|
119
|
+
|
|
120
|
+
Pass the same name and folder as in `bindings_v2.json`. The SDK sends `Name.FolderPath`, and anything that doesn't match an entry is refused.
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
import { UiPath } from '@uipath/uipath-typescript/core';
|
|
124
|
+
import { Entities } from '@uipath/uipath-typescript/entities';
|
|
125
|
+
import { Processes } from '@uipath/uipath-typescript/processes';
|
|
126
|
+
|
|
127
|
+
const sdk = new UiPath();
|
|
128
|
+
await sdk.initialize(); // no sign-in in public mode
|
|
129
|
+
await new Entities(sdk).insertRecord({ name: 'EventFeedback' }, { guestName, comment });
|
|
130
|
+
await new Processes(sdk).start({ name: 'Summarize' }, { folderPath: 'Shared', inputArguments: JSON.stringify({ text }) });
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`uipath.json` goes into the build output (Vite: `source/public/uipath.json`, so it lands in `source/dist`). It must list the scopes the app needs, and the access mode of each resource it reads:
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"scope": "OR.Execution DataFabric.Data.Read DataFabric.Data.Write",
|
|
138
|
+
"access": [{ "resource": "entity", "key": "EventFeedback", "mode": "session" }]
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
`key` is the same key as in `bindings_v2.json`.
|
|
143
|
+
|
|
144
|
+
Then:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
(cd feedback-app/source && npm run build) # checks it compiles; pack also builds it
|
|
148
|
+
uip solution resources refresh
|
|
149
|
+
uip solution pack . ./output --version 1.0.0
|
|
150
|
+
uip solution publish ./output/Feedback_1.0.0.zip
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Wait for `publish` to finish before deploying or upgrading.
|
|
154
|
+
|
|
155
|
+
## Run locally
|
|
156
|
+
|
|
157
|
+
`@uipath/coded-apps-dev` runs the app as a public app on the developer's machine, with the same access rules as after deploy. It works with the Vite and webpack dev servers.
|
|
158
|
+
|
|
159
|
+
1. Point the plugin at the app's `uipath.json` and add the local-run fields to it (they are not secrets):
|
|
160
|
+
```ts
|
|
161
|
+
// vite.config.ts
|
|
162
|
+
plugins: [react(), uipathCodedApps({ configPath: 'public/uipath.json' })]
|
|
163
|
+
```
|
|
164
|
+
```json
|
|
165
|
+
{ "orgName": "<org>", "tenantName": "<tenant>", "baseUrl": "https://cloud.uipath.com", "scope": "...", "access": [...] }
|
|
166
|
+
```
|
|
167
|
+
2. Ask the user to create `source/.env.local` themselves (never write the secret yourself), and check `.env.local` is gitignored:
|
|
168
|
+
```bash
|
|
169
|
+
UIPATH_PUBLIC_APP=true
|
|
170
|
+
UIPATH_PUBLIC_APP_CLIENT_ID=<external app id>
|
|
171
|
+
UIPATH_PUBLIC_APP_CLIENT_SECRET=<client secret>
|
|
172
|
+
UIPATH_PUBLIC_APP_FOLDER_KEY=<folder key> # optional: the folder for resources declared without a folder
|
|
173
|
+
```
|
|
174
|
+
3. `npm run dev`, then open the app on `localhost`. To act as a second visitor, open it in a private window.
|
|
175
|
+
|
|
176
|
+
Locally, resources use the name and folder in `bindings_v2.json` (solution overrides apply only after deploy), and sessions reset when the dev server restarts. The external application needs a role in the folders that hold the resources. Set `UIPATH_PUBLIC_APP=false` to go back to signing in as the developer.
|
|
177
|
+
|
|
178
|
+
## Deploy — Studio Web (preferred)
|
|
179
|
+
|
|
180
|
+
In Studio Web, open the solution → arrow on **Publish** → **Deploy** → pick version, deployment name, location and solution folder → arrow on **Deploy** → **Customize** → in the coded app's settings set `routingName`, `externalClientId` (the confidential external application), `runtimeAuthMode` = `application`, and `clientSecret` → continue. The app opens at `https://<org>.uipath.host/<routingName>`.
|
|
181
|
+
|
|
182
|
+
## Deploy — CLI
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
uip solution deploy config get "Feedback" -d config.json
|
|
186
|
+
uip solution deploy config set config.json feedback-app routingName feedback --output-filter Property
|
|
187
|
+
uip solution deploy config set config.json feedback-app externalClientId "<external app id>" --output-filter Property
|
|
188
|
+
uip solution deploy config set config.json feedback-app runtimeAuthMode application --output-filter Property
|
|
189
|
+
uip solution deploy config set config.json feedback-app clientSecret "$APP_CLIENT_SECRET" --output-filter Property
|
|
190
|
+
uip solution deploy run -n "Feedback" --package-name "Feedback" --package-version 1.0.0 \
|
|
191
|
+
--folder-name "Feedback" --parent-folder-path "Shared" --config-file config.json
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Keep `config.json` out of source control (it holds the secret). `runtimeAuthMode application` is what makes the app public; the same package deploys as a sign-in app with `user`.
|
|
195
|
+
|
|
196
|
+
## Upgrade and secret rotation
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
uip solution pack . ./output --version 1.0.1 && uip solution publish ./output/Feedback_1.0.1.zip
|
|
200
|
+
uip solution deploy upgrade <deployment key> --version 1.0.1 # add --discard-draft if a stale draft blocks it
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
The upgrade keeps the stored secret **and its scope** (a changed `scope` in `uipath.json` does not apply to a running deployment). To rotate the secret: Orchestrator → the deployment folder → **Apps** → ⋮ → **Edit** → client secret. It is checked when you save.
|
|
204
|
+
|
|
205
|
+
## Troubleshooting
|
|
206
|
+
|
|
207
|
+
| Symptom | Cause |
|
|
208
|
+
|---|---|
|
|
209
|
+
| `ValidationError`, no request sent | Call not supported in public mode (rule 3) |
|
|
210
|
+
| 403 on every call | Resource not in `bindings_v2.json`, name or folder in the code doesn't match its entry, or not connected at deploy |
|
|
211
|
+
| 403 `Missing permissions: EntityRecords.Create` | External application has no role in the deployment folder |
|
|
212
|
+
| 403 on a list call | The entity is in `session` mode |
|
|
213
|
+
| 404 reading a record or job output | Another visitor added it, or the visitor is in a new session |
|
|
214
|
+
| `invalid_client` or `invalid_scope` on every call | Wrong secret, a scope missing on the external application, or `uipath.json` missing from `source/dist` |
|
|
215
|
+
| Upgrade 404 | Version not published yet |
|
|
216
|
+
| 401 on every call in one browser only | The browser blocks third-party cookies; allow them for the app, or try another browser |
|
|
217
|
+
| Deploy screen does not list the external application | It is not confidential; or deploy with the CLI |
|
|
218
|
+
| Local run: `answers only to pages served from localhost` | Open the app on `localhost` or `127.0.0.1`, not a network address |
|
|
@@ -214,8 +214,8 @@ Both resolve against the same library and both take the same `connection` / `fol
|
|
|
214
214
|
Same rule as §2: a scope value that is an **id** (a mail folder, a channel, a workspace) takes a `lookup()`, never a pasted value; §3 resolves it (`--action email-received`).
|
|
215
215
|
- `object` names what a **generic** event watches — `record-created` and its kin on Data Fabric, Salesforce, ServiceNow, Jira. Such an entry carries no default, so without it the node emits `objectName: ""`, validates, and watches nothing. `check` reports `EVENT_GENERIC_NO_OBJECT`. A curated event has its object built in and refuses one (`EVENT_OBJECT_NOT_GENERIC`).
|
|
216
216
|
- A folder entity on a Data Fabric entity trigger (`record-created-preview-`, `record-updated-preview-`; object `EntityTriggers_V3`) is `entity: { name, folder: '<folder path>' }`, never `filter: { entityScope, folderEntityName }`: a literal filter watches the records but writes no picker, so `refresh` declares no entity and a deploy cannot re-point it.
|
|
217
|
+
Needs `@uipath/maestro-builder-sdk` 6.123.0 or later; an older SDK reports `TS2353` on `entity`, so upgrade the copy `uip` resolves, local copy first, then global. From the directory you run `uip` in (the workspace root), run `node -e "console.log(require.resolve('@uipath/maestro-builder-sdk/package.json',{paths:[process.cwd()]}))"`. When it prints a path, that `node_modules` (possibly in a parent directory) owns the copy: run `npm install --save-dev @uipath/maestro-builder-sdk@latest` in the directory holding it when a `package.json` sits beside it; otherwise tell the user the path, and never create a `package.json`. On error, run `npm install -g @uipath/maestro-builder-sdk@latest`. Then run `check` again. Never fall back to the literal `filter`.
|
|
217
218
|
`check` reports `RESOURCE_UNRESOLVED` and prints the `uip maestro registry prepare --entity <name> --folder-path <path>` that records the keys, as for `.dataService()`; the trigger and a task on that entity share one binding pair. Run `uip maestro bpmn refresh` after `compile`.
|
|
218
|
-
On an SDK without `entity` (`check` reports `TS2353` on it), run `uip maestro bpmn registry get Intsvc.EventTrigger --object-name EntityTriggers_V3 --operation <OPERATION> --connection-id <CONNECTION_ID> --input-details '{"queryParameters":{"entityScope":"folder","folderEntityName":"<ENTITY_NAME>"}}' --solution-folder <SOLUTION_DIR> --output json`, then author `.activity(<ID>, 'Intsvc.EventTrigger', { contextRows, inputs, outputRows, contextVerbatim: true })` from the `<uipath:context>`, input and output rows of `Data.V2.ElementXml`, and one `.binding(<BINDING_ID>, { resource, propertyAttribute, resourceKey, value })` per `Data.V2.RootBindings` row. Follow `Data.V2.Instructions` for the `{{VAR_ID}}` tokens. `examples/InvoiceApproval.bpmn.ts` (`Event_CiykXe`) shows the node's shape. `<OPERATION>` is `UPDATED_V3` or `CREATED_V3`. Never the literal `filter`.
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
221
|
uip is triggers objects <connector> <EVENT> --connection-id <id> --output json # what a generic event can watch
|
|
@@ -42,6 +42,7 @@ Report each `validate` warning you kept as one clause in the user's words that n
|
|
|
42
42
|
The path line belongs to this final message.
|
|
43
43
|
A Studio Web link shown earlier in the turn, before a tool call, does not count: write it again here, on its own line.
|
|
44
44
|
When the path line is the local path, write the plain path, such as InvoiceIntake/InvoiceIntake.bpmn, not a Markdown link with the file name as its text and not in backticks.
|
|
45
|
+
The path line, link or path, is flush-left: no space or indent before it.
|
|
45
46
|
|
|
46
47
|
Write every line in the user's words: say what each step now does.
|
|
47
48
|
No element type ids (`Orchestrator.StartAgentJob`), connector keys, object or operation names, payload, binding or placeholder terms, and no file names other than the path line.
|
|
@@ -85,7 +85,7 @@ The body is its own sequence scope: give it its own `.flowMode('sequence')`, sta
|
|
|
85
85
|
| `recordResult` | `.task()` with `set`, last in the body | Mechanism |
|
|
86
86
|
| `itemFailures` | `.eventSubProcess()` inside the body | Mechanism |
|
|
87
87
|
| `recordItemFailure` | `.task()` with `set`, in the net | Mechanism |
|
|
88
|
-
| `aggregate` |
|
|
88
|
+
| `aggregate` | `.scriptTask()` after the sub-process, never a `.task()` with `set` | Mechanism |
|
|
89
89
|
| `sendReport` | a send step, before the gate | Placeholder |
|
|
90
90
|
| `policyGate` | `.choose()` | Mechanism |
|
|
91
91
|
| `endCompleted`, `endFailed` | `.endEvent()`, named | Mechanism |
|
|
@@ -123,7 +123,7 @@ This variant is not verified end to end.
|
|
|
123
123
|
- **`fetchBatch`**: the source (database query, file, API list, queue); batch size and filters are decided here.
|
|
124
124
|
- **The per-item work** inside `processEach`: a UiPath agent, an RPA job, Document Understanding, an API call.
|
|
125
125
|
Place and bind the node; the per-item work happens at runtime, not while authoring.
|
|
126
|
-
- **`aggregate`**:
|
|
126
|
+
- **`aggregate`**: a `.scriptTask()` that counts `itemResults` (Parallel: the query's records), applies the policy and sets `policySatisfied` through `outputs`.
|
|
127
127
|
Best-effort is always true; all-or-nothing is true only with zero failures; quorum is true above a threshold.
|
|
128
128
|
Evaluate it here, in a node, rather than as the loop's `completion` condition.
|
|
129
129
|
A completion condition stops the block early, which is a different thing from judging the run afterwards, and it cannot see the per-item results the policy needs.
|
|
@@ -131,7 +131,7 @@ This table is authoritative; read each node's `Reference` before writing it ([Cr
|
|
|
131
131
|
| Node or surface | Emitted node type | Builder | Reference | Example |
|
|
132
132
|
|---|---|---|---|---|
|
|
133
133
|
| Manual trigger | `core.trigger.manual` | omit `.trigger(...)` | [manual-trigger.md](references/manual-trigger.md) | `examples/GreenhouseWatering.flow.ts` |
|
|
134
|
-
| Entry points (multiple triggers) | one trigger per extra root | `.entryPoint(id, trigger, { inputs?, version? }, prefixFn?)`; shared var: input `{ type, shared: '<var>' }` | [manual-trigger.md](references/manual-trigger.md#multiple-entry-points) | — |
|
|
134
|
+
| Entry points (multiple triggers) | one trigger per extra root | `.entryPoint(id, trigger, { inputs?, version?, default? }, prefixFn?)`; shared var: input `{ type, shared: '<var>' }` | [manual-trigger.md](references/manual-trigger.md#multiple-entry-points) | — |
|
|
135
135
|
| Scheduled trigger | `core.trigger.scheduled` | `scheduled(...)` | [scheduled-trigger.md](references/scheduled-trigger.md) | `examples/HerbariumDispatch.flow.ts` |
|
|
136
136
|
| Connector event trigger; HTTP start | `uipath.connector.trigger.<key>.<event>` | `onEvent(...)` | [event-trigger.md](references/event-trigger.md), [HTTP call](references/event-trigger.md#started-by-an-http-call) | `examples/DoorbellLog.flow.ts` |
|
|
137
137
|
| Connector event wait | `uipath.connector.event.<key>.<event>` | `waitForEvent(...)` | [event-trigger.md](references/event-trigger.md) | `examples/PlanetariumConfirmation.flow.ts` |
|
|
@@ -54,7 +54,7 @@ Read the answer this way:
|
|
|
54
54
|
|
|
55
55
|
- The list prints and has the name: the feature is there.
|
|
56
56
|
- The list prints and lacks the name: the feature is not there. Upgrade the SDK, or use the fallback the reference gives.
|
|
57
|
-
- `error: unknown command 'capabilities'`: the SDK is older than 6.101.0.
|
|
57
|
+
- `error: unknown command 'capabilities'`: the SDK is older than 6.101.0. For `flow-entry-point-default`, which shipped later, that means the feature is not there. For the other features below, which all shipped earlier, it says nothing: follow the version note in its reference (for example, `check --baseline` works from 6.64.0).
|
|
58
58
|
|
|
59
59
|
The names are stable:
|
|
60
60
|
|
|
@@ -66,6 +66,7 @@ The names are stable:
|
|
|
66
66
|
| `flow-script-metadata` | the `$metadata` parameter of a script function |
|
|
67
67
|
| `flow-merge-source` | `merge <Name>.flow.ts --original <Name>.flow`, from the `// @decompiled-from` stamp |
|
|
68
68
|
| `project-min-version` | `flowSdk.minVersion`, below |
|
|
69
|
+
| `flow-entry-point-default` | `.entryPoint(id, spec, { default: true })` ([manual-trigger.md](manual-trigger.md#multiple-entry-points)); always absent when `capabilities` is unknown |
|
|
69
70
|
|
|
70
71
|
To pin one SDK floor for a project, add `"flowSdk": { "minVersion": "<version>" }` to its `package.json`.
|
|
71
72
|
From 6.101.0, `compile`, `check`, `decompile` and `merge` then refuse an older SDK with exit 2. The message names the copy that ran and the `npm install ...@latest` command that upgrades it (`--save-dev` in the project for a workspace copy, else `-g`).
|
|
@@ -52,12 +52,28 @@ Choose it when a caller, test, or another process should start each run.
|
|
|
52
52
|
## Multiple entry points
|
|
53
53
|
|
|
54
54
|
A flow may have more than one root. `.trigger()` / `.input()` stay the DEFAULT
|
|
55
|
-
root
|
|
55
|
+
root unless an entry point says `default: true`;
|
|
56
|
+
`.entryPoint(id, trigger, { inputs?, version?, updates?, default? }, prefixFn?)` adds another
|
|
56
57
|
— its own trigger node, its own scoped inputs (read them with
|
|
57
58
|
`entryInput('<id>', '<name>')`, i.e. `$vars.<id>.output.<name>`), and an
|
|
58
59
|
optional prefix that runs before the root joins the first shared step. A prefix
|
|
59
60
|
that ends terminally (or hands off with `.stepToRef(...)`) joins nothing.
|
|
60
61
|
|
|
62
|
+
`{ default: true }` on one `.entryPoint()` makes that root the default
|
|
63
|
+
(`isDefaultEntryPoint`) instead of `.trigger()`. `.trigger()` keeps its id, its
|
|
64
|
+
inputs and every `input()` read. Decompile writes it when the `.flow` has a root
|
|
65
|
+
named `start` and marks a different root as the default, for instance a trigger
|
|
66
|
+
added to the `.flow` outside the SDK source. A `.flow` with no root named
|
|
67
|
+
`start` opens with its marked root as `.trigger()` and needs no `default`. Keep
|
|
68
|
+
the option when you edit the source. Two entry points with `default: true` are
|
|
69
|
+
refused (`ENTRY_POINT_DEFAULT`).
|
|
70
|
+
|
|
71
|
+
The option needs an SDK that lists the `flow-entry-point-default` capability.
|
|
72
|
+
An older SDK refuses the option when it compiles. Do not delete it to get
|
|
73
|
+
past that: without it, `.trigger()` becomes the default and the flow starts
|
|
74
|
+
from a different trigger. Leave the original `.flow` unchanged and report that
|
|
75
|
+
the SDK in use is too old for this flow.
|
|
76
|
+
|
|
61
77
|
Every root's inputs need their own names. Inputs, outputs and vars share one
|
|
62
78
|
namespace, `uip maestro flow validate` refuses two globals with the same id even
|
|
63
79
|
on different triggers, and each entry point's caller-facing input is keyed by
|
package/version-manifest.json
CHANGED