uipath-cli
latest
false
UiPath CLI 用户指南
- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Upload a local Maestro BPMN project (or a single .bpmn file) to Studio Web and run a server-side debug session with streamed status updates using `uip maestro bpmn debug`.
uip maestro bpmn debug uploads a local Maestro project — or a single .bpmn file — to Studio Web and runs a server-side debug session, streaming per-element status updates back to the console and returning a final status. It's registered under the bpmn branch.
大纲
uip maestro bpmn debug [project-path]
[--bpmn-file <path>]
[--folder-id <id>]
[--poll-interval <ms>]
[-i, --inputs <json>]
[--login-validity <minutes>]
uip maestro bpmn debug [project-path]
[--bpmn-file <path>]
[--folder-id <id>]
[--poll-interval <ms>]
[-i, --inputs <json>]
[--login-validity <minutes>]
参数
[project-path](optional) — path to the Maestro project directory. Must containproject.uiproj. Omit when using--bpmn-file. One of<project-path>or--bpmn-fileis required; passing both is an error ("Provide either a project path or --bpmn-file, not both.").
选项
| 选项 | 默认 | 描述 |
|---|---|---|
--bpmn-file <path> | — | Debug a single .bpmn file directly instead of a project directory. Mutually exclusive with <project-path>. |
--folder-id <id> | 已自动检测 | Orchestrator 文件夹 ( OrganizationUnitId )。如果省略,则使用当前登录会话中的文件夹。已通过parseFolderId解析和验证。 |
--poll-interval <ms> | 2000 | 轮询间隔(以毫秒为单位)。必须为正数。 |
-i, --inputs <json> | — | 以 JSON 字符串或@path/to/file.json运行的输入参数。 |
--login-validity <minutes> | 10 | 距离令牌过期仅几分钟,触发自动刷新。 |
行为
- 验证登录并从会话中提取组织、租户、基本 URL 和身份验证令牌。
- 将项目上传到 Studio Web 的目标文件夹下。
- 轮询最终状态,发出每个元素的状态行,例如:
Status: InProgress (2/5 elements completed) v Activity_1 [Completed] > Activity_2 [InProgress] - Activity_3 [NotStarted]Status: InProgress (2/5 elements completed) v Activity_1 [Completed] > Activity_2 [InProgress] - Activity_3 [NotStarted] - 如果运行期间发生事件,发出日志行。
- 如果
finalStatus为Completed或Successful,则退出0;否则为1。
示例
# Debug with auto-detected folder
uip maestro bpmn debug ./invoice-orchestration
# Specify folder and inline inputs
uip maestro bpmn debug ./invoice-orchestration --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Inputs from a file
uip maestro bpmn debug ./invoice-orchestration --inputs @inputs.json
# Debug a single .bpmn file directly, without a full project directory
uip maestro bpmn debug --bpmn-file ./main.bpmn
# Debug with auto-detected folder
uip maestro bpmn debug ./invoice-orchestration
# Specify folder and inline inputs
uip maestro bpmn debug ./invoice-orchestration --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Inputs from a file
uip maestro bpmn debug ./invoice-orchestration --inputs @inputs.json
# Debug a single .bpmn file directly, without a full project directory
uip maestro bpmn debug --bpmn-file ./main.bpmn
数据形状(--输出 json)
{
"Code": "MaestroDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Completed",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/f6a7b8c9-...?solutionId=e5f6a7b8-...",
"elementExecutions": [
{ "elementId": "Activity_1", "status": "Completed" }
]
}
}
{
"Code": "MaestroDebug",
"Data": {
"jobKey": "b2c3d4e5-0000-0000-0000-000000000001",
"instanceId": "c3d4e5f6-0000-0000-0000-000000000001",
"runId": "d4e5f6a7-0000-0000-0000-000000000001",
"finalStatus": "Completed",
"solutionId": "e5f6a7b8-0000-0000-0000-000000000001",
"studioWebUrl": "https://cloud.uipath.com/org/studio_/designer/f6a7b8c9-...?solutionId=e5f6a7b8-...",
"elementExecutions": [
{ "elementId": "Activity_1", "status": "Completed" }
]
}
}
studioWebUrl links directly to the debug run in Studio Web.
另请参阅
uip maestro bpmn process run— 运行已发布的流程uip maestro bpmn job traces— 已开始的作业的流追踪- 身份验证
- Maestro 概述