uipath-cli
latest
false
重要 :
请注意,此内容已使用机器翻译进行了本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath CLI 用户指南
uip flow debug将本地 Flow 项目上传到Studio Web并运行服务器端调试会话,将每个元素的状态更新流式传输回控制台,并返回最终状态。
大纲
uip flow debug <project-path>
[--folder-id <id>]
[--poll-interval <ms>]
[-i, --inputs <json>]
[--login-validity <minutes>]
uip flow debug <project-path>
[--folder-id <id>]
[--poll-interval <ms>]
[-i, --inputs <json>]
[--login-validity <minutes>]
参数
<project-path>(必填) — Flow 项目目录的路径。必须包含project.uiproj。
选项
| 选项 | 默认 | 描述 |
|---|---|---|
--folder-id <id> | 已自动检测 | Orchestrator 文件夹 ( OrganizationUnitId )。如果省略,则使用当前登录会话中的文件夹。已解析为整数。 |
--poll-interval <ms> | 2000 | 等待 Studio Web 推进会话的轮询间隔(以毫秒为单位)。 |
-i, --inputs <json> | — | 以 JSON 字符串形式输入参数,或以从文件中读取@path/to/file.json 。如果两者均未提供,则也从 标准输入 中读取(通过uip flow process run读取,但此处未提供 — debug接受 JSON 字符串或@file仅接受)。 |
--login-validity <minutes> | 10 | 距离令牌过期仅几分钟,触发自动刷新。 |
行为
- 验证登录并从会话中拉取组织、租户、基本 URL、组织名称和身份验证令牌。
- 将项目上传到 Studio Web 的目标文件夹下。
- 轮询最终状态,发出每个元素的状态行,例如:
Status: InProgress (2/5 elements completed) v Node_1 [Completed] > Node_2 [InProgress] - Node_3 [NotStarted]Status: InProgress (2/5 elements completed) v Node_1 [Completed] > Node_2 [InProgress] - Node_3 [NotStarted] - 如果运行期间出现事件,发出警告行。
- 如果
finalStatus为Completed或Successful,则退出0;否则为1。
示例
# Debug a local project, auto-detect folder, default poll interval
uip flow debug ./invoice-flow
# Debug against a specific folder with inline JSON inputs
uip flow debug ./invoice-flow --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Debug with inputs from a file
uip flow debug ./invoice-flow --inputs @inputs.json
# Slower polling for long-running flows
uip flow debug ./invoice-flow --poll-interval 5000
# Debug a local project, auto-detect folder, default poll interval
uip flow debug ./invoice-flow
# Debug against a specific folder with inline JSON inputs
uip flow debug ./invoice-flow --folder-id 2553016 \
--inputs '{"amount":100,"customer":"Acme"}'
# Debug with inputs from a file
uip flow debug ./invoice-flow --inputs @inputs.json
# Slower polling for long-running flows
uip flow debug ./invoice-flow --poll-interval 5000
数据形状(--输出 json)
{
"Code": "FlowDebug",
"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/tenant/studio_/debug/e5f6a7b8",
"elementExecutions": [
{ "elementId": "Node_1", "status": "Completed" }
],
"variables": {}
}
}
{
"Code": "FlowDebug",
"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/tenant/studio_/debug/e5f6a7b8",
"elementExecutions": [
{ "elementId": "Node_1", "status": "Completed" }
],
"variables": {}
}
}
在浏览器中打开studioWebUrl ,以交互式检查会话。
另请参阅
uip flow validate— 运行前静态检查uip flow process run— 运行已发布的流程uip flow job traces— 已开始的作业的流追踪- 身份验证
- 流概述