studio
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Studio 用户指南

上次更新日期 2025年10月24日

长时间运行的工作流

Long Running Workflow automations allow you to model and automate processes using Business Process Model and Notation (BPMN) concepts applied to RPA. Long running workflows bring the structure and clarity of BPMN into Studio, using familiar RPA terminology for activities such as Invoke Workflow, Sequence, or Resume after Delay. This approach combines the visual expressiveness of BPMN with the practicality of RPA, making it easier to design, orchestrate, and manage processes that span both automated and human-in-the-loop steps.

长时间运行的工作流采用新的设计器画布,并使用分到“活动”面板中的“长时间运行的工作流”类别下的专属活动。设计器中的每个节点代表一个活动,可以直接在画布中配置,也可能需要执行几个快速配置步骤。此外,可以在 Process Mining 中追踪每个节点,以了解流程并进一步优化。

通过将 BPMN 概念与 RPA 的强大功能相结合,长时间运行的工作流可用于:
  • 使用新画布,以行业标准 BPMN 格式设计长时间运行的企业流程。
  • 获得各个端到端流程自动化的统一视图。
  • 利用活动和活动模板加快流程建模速度。
  • 通过单独的错误处理程序、错误边界事件和错误结束事件活动,增强错误处理能力和恢复能力。
  • 发现瓶颈,确定需要改进的方面并优化流程。
长时间运行的工作流的一些关键用例包括:
  • 发票的处理
  • HR 入职培训
  • 工单管理
  • 订单履行
  • 事件管理

创建和配置长时运行的工作流

要在 Studio 项目中创建长时间运行的工作流,请选择功能区中的“新建”按钮,然后选择“长时间运行的工作流”。配置自动化的详细信息,然后选择“创建”。

要用模板开始创建,请导航到 Studio“后台视图”,然后在以下位置找到“长时间运行的自动化”模板:
  • 开始”选项卡中的“用模板新建”面板。
  • 模板”选项卡。

然后,您可以配置自动化的详细信息,并选择“创建”。

创建“长时间运行的工作流”时,将安装以下默认依赖项:
  • UiPath.FlowchartBuilder.Activities
  • UiPath.System.Activities
注意:UiPath.FlowchartBuilder.Activities 包是必要依赖项,不应从项目依赖项列表中移除。
To import a BPMN file, right-click inside the Explorer Panel, select Import Files from the context menu, and choose the Business Process Diagram (*.bpmn) from the file type drop-down menu. This creates a new long running workflow containing the model imported from the file.
备注:
  • 您可以将 BPMN 文件导入任何类型的项目。导入 BPMN 文件时,项目中还会安装 UiPath.FlowchartBuilder.Activities 包。
  • 在导入不支持的 BPMN 活动时,活动节点旁边会显示警告图标。验证错误消息还会通知您,活动类型不受支持,必须进行更改。

活动

长时间运行的工作流项目使用一组独特的活动,这些活动属于“流程图构建器活动”包的一部分。

“流程图”类似,长时间运行的工作流具有相互连接的节点。每个节点代表一个可以在设计器或“属性”面板中配置的活动。一些活动充当控制流程执行的事件,而其他活动则充当其他活动和工作流的占位符。配置某些活动可能需要您进入序列。

活动按以下几种类别进行分组:
  • Triggers: Define how and when a process begins. They represent the entry point for a process.
  • Sequences: Represent the building blocks of a process. Sequences act as placeholders for actions or operations to be performed in the process.
  • 子流程:表示在流程中将相关元素分组的任务,用于简化工作流并提高可读性。
  • 网关:定义流程中的决策点或控制流逻辑,实现工作流的条件路由或并行执行。
  • Events: Represent points within a process where specific actions pause the workflow. The Error Handler event attaches to a Sequence or a Subprocess and routes execution on a different path.
  • End: Mark the conclusion of a process path. Some end events represent visual markers, while others trigger specific actions.

请参阅《工作流活动指南》中的“流程图构建器活动”,以了解每个活动的详细描述,以及以最佳方式将这些活动集成到长时间运行的自动化中的用例和示例。

关键功能

Every long running workflow starts by default with a Manual Trigger added to the designer. You can move the Manual Trigger node in the designer, but you cannot delete it.

您可以在“活动”面板中向“长时间运行的工作流”项目添加其他活动。该面板仅包含可以在 BPMN 上下文中使用的活动,这些活动被分到“长时间运行的工作流”类别下。“活动”面板还有一个“推荐”类别,其中包含可以转换为其他元素的根活动。

某些活动可能需要设置模板或更改活动配置。右键单击添加到设计器的任何活动,以打开上下文菜单。在这里,您可以使用“更改类型”选项来修改某些活动的行为方式:
  • Change a Sequence into Agent, Human Approval, Business Rule, Invoke Workflow, Activity, Wait for Trigger, Subprocess, or Detached Error Handler.
  • Change the Manual Trigger into On a Schedule or On App Trigger.
  • Change an Event Placeholder into Resume after Delay or Wait for Message.
  • Change the End into Throw or Terminate.

您还可以使用“更改颜色”选项,使流程图节点更加明显。可用的颜色选项如下:
  • 默认
  • 绿色
  • 蓝色
  • 红色
  • 黄色
  • 紫色
Changing colors can help distinguishing between Sequence types, tracking the implementation status, or defining execution paths.

  • 创建和配置长时运行的工作流
  • 活动
  • 关键功能

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。