> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 编排逻辑

> 构建 Workflow 或 Chatflow 时，如何排列、嵌套与复用节点

## 串行与并行执行

<Frame>
  <img src="https://mintcdn.com/dify-enterprise-docs/zvhvyUvEpyoIONBf/images/use-dify/workflow/serial-vs-parallel-execution.png?fit=max&auto=format&n=zvhvyUvEpyoIONBf&q=85&s=cca6e70c8635e03a3b970bd5b53162a4" alt="串行与并行执行" width="1896" height="568" data-path="images/use-dify/workflow/serial-vs-parallel-execution.png" />
</Frame>

构建工作流时，可将节点按串行或并行方式排列：

* **串行排列时**，节点依次运行。每个节点可读取链中任何前序节点的变量。

* **并行排列时**，节点同时运行，彼此无法读取变量；但当并行分支汇合后，下游节点可读取所有分支的变量。

<Info>
  单条执行路径最多支持 50 个节点。
</Info>

## 节点复用

除开始节点外，所有节点都可在同一工作流内复制粘贴。粘贴节点时，节点配置随之迁移。

## 迭代

若某些节点需要多次运行（按列表每项运行一次），可将其置于 [迭代](/zh/2.6.x/use/nodes/iteration) 节点内部。
