- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
Syntax and options for `uip maestro bpmn process` and `uip maestro bpmn processes`, covering per-folder and tenant-wide published Maestro BPMN process operations.
Once a Maestro BPMN package is published to Orchestrator it becomes a process of type ProcessOrchestration. Both command groups below are registered under the bpmn branch. This page covers two related command groups:
uip maestro bpmn process— per-folder operations on a single process definition (list in a folder, get its schema, run it, pack+publish it).uip maestro bpmn processes(plural) — tenant-wide summaries, per-process incident lookup, and diagnostics.
大纲
# Singular — per-folder, operational
uip maestro bpmn process list -f <folder-key> [--filter <odata>] [--login-validity <minutes>]
uip maestro bpmn process get <process-key> <feed-id> -f <folder-key> [--login-validity <minutes>]
uip maestro bpmn process run <process-key> <folder-key> --release-key <key>
[-i, --inputs <json>] [--feed-id <id>] [--robot-ids <ids>]
[--login-validity <minutes>]
uip maestro bpmn process publish <project-path> [output-path] -f <folder-key>
[-n, --name <name>] [--process-name <name>] [-v, --version <version>]
[-i, --inputs <json>] [--feed-id <id>] [--entry-point <path>]
[--wait [--timeout <seconds>] [--poll-interval <seconds>]] [--login-validity <minutes>]
# Plural — tenant-wide summary, incidents, and diagnostics
uip maestro bpmn processes list [--folder-key <key>] [-l <limit>] [--offset <n>] [--status <status>]
uip maestro bpmn processes incidents <process-key> --folder-key <key>
uip maestro bpmn processes diagnose <process-key> --folder-key <key>
uip maestro bpmn processes error-codes <process-key> --folder-key <key>
# Singular — per-folder, operational
uip maestro bpmn process list -f <folder-key> [--filter <odata>] [--login-validity <minutes>]
uip maestro bpmn process get <process-key> <feed-id> -f <folder-key> [--login-validity <minutes>]
uip maestro bpmn process run <process-key> <folder-key> --release-key <key>
[-i, --inputs <json>] [--feed-id <id>] [--robot-ids <ids>]
[--login-validity <minutes>]
uip maestro bpmn process publish <project-path> [output-path] -f <folder-key>
[-n, --name <name>] [--process-name <name>] [-v, --version <version>]
[-i, --inputs <json>] [--feed-id <id>] [--entry-point <path>]
[--wait [--timeout <seconds>] [--poll-interval <seconds>]] [--login-validity <minutes>]
# Plural — tenant-wide summary, incidents, and diagnostics
uip maestro bpmn processes list [--folder-key <key>] [-l <limit>] [--offset <n>] [--status <status>]
uip maestro bpmn processes incidents <process-key> --folder-key <key>
uip maestro bpmn processes diagnose <process-key> --folder-key <key>
uip maestro bpmn processes error-codes <process-key> --folder-key <key>
uip maestro bpmn process list
列出特定文件夹中可用的 Maestro 流程(版本)。
选项
| 选项 | 必填 | 描述 |
|---|---|---|
-f, --folder-key <key> | 是 | 文件夹密钥 (GUID)。 |
--filter <odata> | 否 | 在服务器端应用的其他 OData 筛选器。 |
--login-validity <minutes> | 否 | 令牌刷新阈值(默认为10 )。 |
数据形状 ( --output json )
{
"Code": "MaestroProcessList",
"Data": [
{
"name": "InvoiceOrchestration",
"processKey": "a1b2c3d4-0000-0000-0000-000000000001",
"processVersion": "1.0.0",
"packageId": "a1b2c3d4-0000-0000-0000-000000000001",
"packageVersion": "1.0.0",
"releaseKey": "e5f6a7b8-0000-0000-0000-000000000001",
"folderKey": "c3d4e5f6-0000-0000-0000-000000000001",
"feedId": "default",
"folderId": 42,
"active": "Yes",
"latest": "Yes"
}
]
}
{
"Code": "MaestroProcessList",
"Data": [
{
"name": "InvoiceOrchestration",
"processKey": "a1b2c3d4-0000-0000-0000-000000000001",
"processVersion": "1.0.0",
"packageId": "a1b2c3d4-0000-0000-0000-000000000001",
"packageVersion": "1.0.0",
"releaseKey": "e5f6a7b8-0000-0000-0000-000000000001",
"folderKey": "c3d4e5f6-0000-0000-0000-000000000001",
"feedId": "default",
"folderId": 42,
"active": "Yes",
"latest": "Yes"
}
]
}
uip maestro bpmn process get
获取 Maestro 流程的入口点架构(输入/输出 JSON 架构)。
参数
<process-key>(必填) — 流程密钥。<feed-id>(必填) — 订阅源 ID(来自list)。
选项
-f, --folder-key <key>(必填项)--login-validity <minutes>(default10)
数据形状
{
"Code": "MaestroProcessGet",
"Data": [
{
"Path": "/content/main.bpmn#Event_start",
"DisplayName": "Manual trigger",
"Type": "processorchestration",
"InputSchema": "{\"type\":\"object\",\"properties\":{}}",
"OutputSchema": "{\"type\":\"object\",\"properties\":{}}"
}
]
}
{
"Code": "MaestroProcessGet",
"Data": [
{
"Path": "/content/main.bpmn#Event_start",
"DisplayName": "Manual trigger",
"Type": "processorchestration",
"InputSchema": "{\"type\":\"object\",\"properties\":{}}",
"OutputSchema": "{\"type\":\"object\",\"properties\":{}}"
}
]
}
InputSchema和OutputSchema是重新字符串化的 JSON 架构字符串。
uip maestro bpmn process run
为已发布的流程启动 Maestro 作业。
参数
<process-key>(required) — versioned package process key fromprocess list, for exampleMyProcess:1.0.0.<folder-key>(必填) — 文件夹密钥 (GUID)。
选项
| 选项 | 必填 | 描述 |
|---|---|---|
--release-key <key> | 是 | 发行密钥 (GUID) — 来自process list 。 |
-i, --inputs <json> | 否 | 以 JSON 字符串或@path/to/file.json表示的输入。如果省略且通过管道传输 标准输入,则解析标准输入。 |
--feed-id <id> | 否 | 包查找的订阅源 ID(可选)。 |
--robot-ids <ids> | 否 | Comma-separated robot IDs (optional). |
--login-validity <minutes> | 否 | 令牌刷新阈值(默认为10 )。 |
There is no --validate option on this command — inputs are sent as-is; the process itself is responsible for rejecting bad input.
输入优先级: --inputs <json> / --inputs @file.json > 标准输入 > 空对象{} 。
示例
# Inline JSON
uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" \
--release-key <release-key> --inputs '{"amount":100}'
# From a file
uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" \
--release-key <release-key> --inputs @inputs.json
# Piped stdin
echo '{"amount":100}' | uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" --release-key <release-key>
# Inline JSON
uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" \
--release-key <release-key> --inputs '{"amount":100}'
# From a file
uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" \
--release-key <release-key> --inputs @inputs.json
# Piped stdin
echo '{"amount":100}' | uip maestro bpmn process run "InvoiceOrchestration:1.0.0" "<folder-key>" --release-key <release-key>
数据形状
{
"Code": "MaestroJobStarted",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"state": "Pending",
"traceId": "d4e5f6a7-0000-0000-0000-000000000001"
}
}
{
"Code": "MaestroJobStarted",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"state": "Pending",
"traceId": "d4e5f6a7-0000-0000-0000-000000000001"
}
}
下一步: uip maestro bpmn job traces <jobKey>进行流执行或uip maestro bpmn job status <jobKey>进行轮询。
uip maestro bpmn process publish
Pack a Maestro BPMN project directory into a .nupkg and publish it as an Orchestrator process release, in one step.
参数
<project-path>(required) — path to the Maestro BPMN project directory.[output-path](optional) — output directory for the generated.nupkg. Defaults to a temp directory.
选项
| 选项 | 描述 |
|---|---|
-f, --folder-key <key> | Required. Folder key (GUID). |
-n, --name <name> | Package name. Default: the project folder name. |
--process-name <name> | Process release name. Default: the package name. |
-v, --version <version> | Package version. Default 1.0.0. |
-i, --inputs <json> | Default input parameters as a JSON string, @file.json, or - for stdin. |
--feed-id <id> | Feed ID for package upload (optional). |
--entry-point <path> | Entry point path for the process. |
--wait | Wait until the published package's entry points are available, instead of returning immediately after upload. |
--timeout <seconds> | Maximum seconds to wait for publish propagation when --wait is set. Default 300. |
--poll-interval <seconds> | Seconds between publish propagation checks when --wait is set. Default 5. |
--login-validity <minutes> | Token-refresh threshold. Default 10. |
示例
uip maestro bpmn process publish ./invoice-process \
--folder-key <folder-key> --version 1.2.0 --wait
uip maestro bpmn process publish ./invoice-process \
--folder-key <folder-key> --version 1.2.0 --wait
数据形状
{
"Code": "MaestroProcessPublished",
"Data": {
"Package": "invoice-process@1.2.0",
"PackagePath": "/tmp/maestro-process-publish-.../invoice-process.processOrchestration.ProcessOrchestration.1.2.0.nupkg",
"ProcessKey": "invoice-process.processOrchestration.ProcessOrchestration",
"ProcessVersion": "1.2.0",
"ReleaseKey": "e5f6a7b8-0000-0000-0000-000000000001",
"ReleaseName": "invoice-process",
"Action": "Created",
"Upload": [
{ "key": "invoice-process.processOrchestration.ProcessOrchestration", "status": "Created" }
],
"EntryPoints": 1
}
}
{
"Code": "MaestroProcessPublished",
"Data": {
"Package": "invoice-process@1.2.0",
"PackagePath": "/tmp/maestro-process-publish-.../invoice-process.processOrchestration.ProcessOrchestration.1.2.0.nupkg",
"ProcessKey": "invoice-process.processOrchestration.ProcessOrchestration",
"ProcessVersion": "1.2.0",
"ReleaseKey": "e5f6a7b8-0000-0000-0000-000000000001",
"ReleaseName": "invoice-process",
"Action": "Created",
"Upload": [
{ "key": "invoice-process.processOrchestration.ProcessOrchestration", "status": "Created" }
],
"EntryPoints": 1
}
}
Action is "Created" on first publish of a given process key, "Updated" on subsequent publishes.
uip maestro bpmn processes list
Tenant-wide (or folder-scoped) summary of Maestro processes. Unlike the singular process list, no processType filter is applied server-side — the plural command is shared across tools (Maestro, Flow, Case) and does not scope to ProcessOrchestration on its own.
选项
| 选项 | 描述 |
|---|---|
--folder-key <key> | Optional. Scope the summary to one folder. |
-l, --limit <number> | 要返回的项目数 (1-10000)。 |
--offset <number> | Number of items to skip (0-1000000). Default 0. |
--status <status> | Filter by process status. |
数据形状
{
"Code": "ProcessList",
"Data": [ /* array of Maestro process summaries */ ]
}
{
"Code": "ProcessList",
"Data": [ /* array of Maestro process summaries */ ]
}
每个流程摘要的确切字段集由 Maestro runtime 指定,并且可能会不断变化;使用--output json对包含数据的租户运行一次命令,以查看您将使用的字段。如果您解析特定字段,请在 CI 中固定@uipath/cli 。
uip maestro bpmn processes incidents
获取特定 Maestro 流程定义的所有事件。
参数
<process-key>(必填) — 流程定义键。
选项
--folder-key <key>(必填项)
数据形状
{
"Code": "ProcessIncidents",
"Data": [ /* array of process incidents */ ]
}
{
"Code": "ProcessIncidents",
"Data": [ /* array of process incidents */ ]
}
uip maestro bpmn processes diagnose
Correlate a process's summary, incidents, and error codes in a single call — a convenience wrapper over processes list, processes incidents, and processes error-codes.
参数
<process-key>(必填) — 流程定义键。
选项
--folder-key <key>(必填项)
数据形状
{
"Code": "ProcessDiagnostics",
"Data": {
"ProcessKey": "InvoiceOrchestration",
"FolderKey": "c3d4e5f6-0000-0000-0000-000000000001",
"Summary": { /* the matching process summary object, or null if not found */ },
"FaultedCount": 2,
"RunningCount": 5,
"Incidents": [ /* array of incident objects */ ],
"IncidentCount": 1,
"ErrorCodes": [ /* array of error code strings */ ],
"ErrorCodeCount": 1
}
}
{
"Code": "ProcessDiagnostics",
"Data": {
"ProcessKey": "InvoiceOrchestration",
"FolderKey": "c3d4e5f6-0000-0000-0000-000000000001",
"Summary": { /* the matching process summary object, or null if not found */ },
"FaultedCount": 2,
"RunningCount": 5,
"Incidents": [ /* array of incident objects */ ],
"IncidentCount": 1,
"ErrorCodes": [ /* array of error code strings */ ],
"ErrorCodeCount": 1
}
}
uip maestro bpmn processes error-codes
Get the unique error codes raised by incidents for a specific process.
参数
<process-key>(必填) — 流程定义键。
选项
--folder-key <key>(必填项)
数据形状
{
"Code": "ProcessIncidentErrorCodes",
"Data": [ /* array of error code strings */ ]
}
{
"Code": "ProcessIncidentErrorCodes",
"Data": [ /* array of error code strings */ ]
}
另请参阅
uip maestro bpmn instances— 检查和引导正在运行的执行uip maestro bpmn job— 单个作业的追踪记录和状态uip maestro bpmn incidents— 事件摘要和详细信息- Orchestrator 作业、 Orchestrator 流程
- Maestro 概述
- 大纲
- uip maestro bpmn process list
- 选项
- 数据形状 (
--output json) - uip maestro bpmn process get
- 参数
- 选项
- 数据形状
- uip maestro bpmn process run
- 参数
- 选项
- 示例
- 数据形状
- uip maestro bpmn process publish
- 参数
- 选项
- 示例
- 数据形状
- uip maestro bpmn processes list
- 选项
- 数据形状
- uip maestro bpmn processes incidents
- 参数
- 选项
- 数据形状
- uip maestro bpmn processes diagnose
- 参数
- 选项
- 数据形状
- uip maestro bpmn processes error-codes
- 参数
- 选项
- 数据形状
- 另请参阅