UiPath Documentation
maestro
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Maestro 用户指南

BPMN 入门

Business Process Model and Notation (BPMN) is an open standard maintained by the Object Management Group (OMG) and widely adopted for modeling complex business processes.

Its visual format bridges the gap between technical and non-technical stakeholders, making it easier to design, review, and collaborate on process logic.

BPMN in Maestro

In Maestro, BPMN is the language you use to turn real-world processes into automation-ready models. You sketch the logic, define hand-offs, and specify triggers and outcomes—then refine the model until it's precise enough to run.

BPMN includes a rich set of symbols (events, tasks, gateways, flows, and artifacts). Maestro focuses on the most practical subset for automation so that diagrams remain clear, unambiguous, and executable.

A BPMN diagram is a contract

Think of a BPMN diagram in Maestro as a three-part contract:

  • Human-readable — Any stakeholder can review the logic.
  • Machine-actionable — Maestro can validate and orchestrate it.
  • Maintainable — Changes to the diagram modify behavior without hidden logic.

Anatomy of a process

A typical automation starts with a trigger (incoming message, schedule, or button click). It proceeds through work steps (human or system), branches with decisions, and ends with a result (completed, canceled, or failed).

BPMN gives you the building blocks for each stage. Maestro provides guardrails—naming conventions, validation, and execution semantics—so your models behave exactly as drawn.

您将在本章中学到什么

本入门书将向您介绍将在 Maestro 中实际使用的 BPMN 元素,以及如何从这些元素中选择:

  • BPMN 建模中的事件

    事件标记发生的事情:流程开始(例如,消息或计时器)、流中发生的事情(例如,等待回复、捕获信号、处理超时)或流程结束(Success、升级、Error)。您将了解如何选择正确的事件类型来对触发器、等待、超时和 Error 处理进行清晰的建模。

  • BPMN 建模中的任务

    任务表示要执行的工作。 您将了解何时使用用户驱动步骤(审批、数据输入)与系统驱动步骤(API 调用、脚本),以及如何将可重用逻辑封装到子流程和调用活动中。

  • 网关(决策点和同步点)

    网关控件执行路径:选择一个路径(仅限)、使用许多路径(并行)或使用匹配集(包括)。您将了解用于路由、合并和避免死锁或孤立令牌的模式。

  • 标记(行为限定符)

    标记修改任务或子流程的行为方式:循环、多实例(每个项目运行一次)、即时或补偿。 您将了解何时标记使意图显式化,何时更简单的模式更易于阅读。

  • 序列流显示参与者内部的工作顺序;消息流显示参与者之间的通信(例如,您的流程与外部系统或合作伙伴)。您将了解如何通过池和通道保持职责清晰。

  • 数据对象、数据存储、批注和组可帮助您记录输入/输出和业务规则,而不会造成控件流混乱。您将了解哪些工件可以提高理解力,以及为清晰起见而省略哪些工件。

  • Maestro 中的执行语义

    令牌流、并发和 Error 传播的快速心理模型,以便您可以从图表中预测 Runtime 行为,并为重试、超时和补偿进行设计。

一个简单示例

想象一下“发票审批”流:消息开始事件收到发票,用户任务捕获批准者输入,独家网关将超过阈值的发票路由到第二个批准者,服务任务将批准的发票发布到财务部门。 如果 48 小时内未执行任何操作,则用户任务上的计时器边界事件会升级,错误结束事件会记录失败。每个符号都具有特定含义;它们一起使用,使审阅者和自动化引擎的流程更加清晰。

备注:

Maestro 更注重清晰度,而非详尽无遗。 当有疑问时,请选择最简单的 BPMN 结构,该结构用于传达意图并支持执行(例如,一个清晰的开始、用于拆分的显式合并,以及任务、事件和网关上的描述性名称)。

  • BPMN in Maestro
  • A BPMN diagram is a contract
  • Anatomy of a process
  • 您将在本章中学到什么
  • 一个简单示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新