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

uip maestro flow

Commands for authoring, packing, debugging, and operating UiPath Flow graph-shaped workflow projects using the `uip maestro flow` tool.

uip maestro flow创建、打包、调试和运营UiPath 流项目,这是由通过边线连接的节点(活动、触发器、连接器)组成的图形工作流。Flow 是 UiPath 中的两个编排界面之一请参阅uip maestro ,了解其基于 BPMN 的业务流程编排。

The tool is shipped as part of the @uipath/maestro-tool plugin (command prefix maestro flow). See Tools (plugins) for how plugins are installed and versioned.

何时使用 Flow,何时使用 Maestro

表面图形形状资产文件主要用例
可视化节点边图.flow (JSON)智能体工作流、连接器自动化、AI 节点链接
MaestroBPMN 2.0 图表.bpmn长时间运行的人机回圈业务流程编排

这两个工具都将.nupkg包发布到 Orchestrator,并共享运行时基元( processesinstanceincidentjobregistry )。

创作流程

流项目是一个目录,其中包含project.uiproj清单和一个或多个.flow文件(以及打包时生成的支持文件)。

# 1. Scaffold a new project
uip maestro flow init invoice-flow

# 2. Discover nodes in the registry
uip maestro flow registry pull
uip maestro flow registry search slack

# 3. Edit the .flow file — add nodes, edges, variables, bindings
uip maestro flow node add invoice-flow/invoice-flow.flow uipath.connector.slack.send-message --label "Notify"
uip maestro flow edge add invoice-flow/invoice-flow.flow start node_a1b2c3d4
uip maestro flow node configure invoice-flow/invoice-flow.flow node_a1b2c3d4 --detail '{"connectionId":"…","folderKey":"…","method":"POST","endpoint":"/…"}'

# 4. Validate structure (and optionally governance policy)
uip maestro flow validate invoice-flow/invoice-flow.flow

# 5. Run against Studio Web to smoke-test
uip maestro flow debug ./invoice-flow

# 6. Pack for deployment
uip maestro flow pack ./invoice-flow ./dist --version 1.0.0
# 1. Scaffold a new project
uip maestro flow init invoice-flow

# 2. Discover nodes in the registry
uip maestro flow registry pull
uip maestro flow registry search slack

# 3. Edit the .flow file — add nodes, edges, variables, bindings
uip maestro flow node add invoice-flow/invoice-flow.flow uipath.connector.slack.send-message --label "Notify"
uip maestro flow edge add invoice-flow/invoice-flow.flow start node_a1b2c3d4
uip maestro flow node configure invoice-flow/invoice-flow.flow node_a1b2c3d4 --detail '{"connectionId":"…","folderKey":"…","method":"POST","endpoint":"/…"}'

# 4. Validate structure (and optionally governance policy)
uip maestro flow validate invoice-flow/invoice-flow.flow

# 5. Run against Studio Web to smoke-test
uip maestro flow debug ./invoice-flow

# 6. Pack for deployment
uip maestro flow pack ./invoice-flow ./dist --version 1.0.0

创作命令

命令用途
uip maestro flow init创建新的 Flow 项目
uip maestro flow nodeAdd, configure, list, and remove nodes in a .flow file
uip maestro flow edgeAdd, list, and remove edges between nodes
uip maestro flow validate根据架构(和监管策略)验证.flow文件
uip maestro flow debug将项目上传到 Studio Web 并运行调试会话
uip maestro flow pack生成可部署的 .nupkg
uip maestro flow registry浏览和搜索可用节点类型(OOTB + 连接器)

变量、绑定和布局帮助程序

这些 CLI 界面尚未显示在侧边栏中,但现在可以调用 — 它们是精简包装器,用于以编程方式编辑.flow JSON:

  • uip maestro flow variable — add / list / remove top-level workflow variables (in, out, inout). See node-edge.md.
  • uip maestro flow variable-update — 将 JS 赋值表达式附加到完成时运行的节点 ( =js:ctx.output )。
  • uip maestro flow binding — add / list / remove resource bindings (process, agent, connection, etc.) that are resolved at publish time.
  • uip maestro flow format — 自动布局:重新定位节点以删除重叠。

运行时

在运行时,已发布的流包将成为 Orchestrator 上的流程。启动其中一个会创建实例;每次执行尝试都是一个作业;故障显示为事件

命令用途
uip maestro flow process列出并运行已部署的 Flow 流程( listgetrun
uip maestro flow processes跨文件夹的流程摘要,以及每个流程的事件
uip maestro flow instance检查和引导正在运行的实例( listgetpauseresumecancelretrymigrategotovariables ……)
uip maestro flow incident阅读事件摘要和详细信息
uip maestro flow job流式传输追踪 ( traces ) 并检查作业状态

Orchestrator 中的作业和流程本身通过 Orchestrator 工具进行操作 — 请参阅Orchestrator 作业Orchestrator 流程

约定

  • 每个uip maestro flow子命令都遵循全局选项--output--output-filter--log-level--log-file )。
  • 默认输出为JSON
  • 退出代码遵循标准合同
  • 大多数运行时命令首先需要uip login — 请参阅身份验证

另请参阅

  • 何时使用 Flow,何时使用 Maestro
  • 创作流程
  • 创作命令
  • 变量、绑定和布局帮助程序
  • 运行时
  • 约定
  • 另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新