> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 流程

> 管理整个自动化流程的生命周期，包括子流程调用、流程终止、错误处理等。

**流程**类指令负责自动化流程的宏观控制，包括子流程调用、流程终止和退出。

## 适用场景

* **复用通用逻辑**：把“登录—校验—退出”封装成子流程，主流程用 调用子流程 多处复用，减少重复搭建。
* **异常/特定条件退出**：满足终止条件时用 退出当前流程 / 终止应用 提前结束，避免无意义空跑。

## 指令列表

<CardGroup cols="3">
  <Card title="调用子流程" href="/helpcenter/helpcenter/commands/flow/invokesubflowcommand">
    在当前流程中调用并执行指定名称的子流程。
  </Card>

  <Card title="退出当前流程" href="/helpcenter/helpcenter/commands/flow/exitsubflowcommand">
    退出当前流程，返回到调用位置继续执行。
  </Card>

  <Card title="终止应用" href="/helpcenter/helpcenter/commands/flow/exitflowcommand">
    停止整个应用的运行。
  </Card>
</CardGroup>

## 典型场景

| 场景   | 说明                         |
| ---- | -------------------------- |
| 模块复用 | 将登录逻辑封装为子流程，多个流程统一调用       |
| 容错机制 | 某步骤失败时自动重试 3 次，仍失败则发送通知并终止 |
| 流程编排 | 按顺序串联多个子流程完成复杂业务场景         |

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
