UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip maestro bpmn process and uip maestro bpmn processes

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 login并遵循全局选项。退出代码遵循标准合同


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> (default 10)

数据形状

{
  "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\":{}}"
    }
  ]
}

InputSchemaOutputSchema是重新字符串化的 JSON 架构字符串。


uip maestro bpmn process run

为已发布的流程启动 Maestro 作业。

参数

  • <process-key> (required) — versioned package process key from process list, for example MyProcess: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.
--waitWait 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 */ ]
}

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新