Skip to content

工作流历史记录#

¥Workflow history

Feature availability

  • 企业云和企业自托管版本提供完整的工作流历史记录。

¥Full workflow history is available on Enterprise Cloud and Enterprise Self-hosted.

  • Cloud Pro 用户可使用最近五天的版本。

¥Versions from the last five days are available for Cloud Pro users.

  • 所有用户均可使用最近 24 小时的版本。

¥Versions from the last 24 hours are available for all users.

使用工作流历史记录查看和恢复工作流的先前版本。

¥Use workflow history to view and restore previous versions of your workflows.

了解工作流历史记录#

¥Understand workflow history

n8n 在以下情况下创建新版本:

¥n8n creates a new version when you:

  • 保存工作流。

¥Save your workflow.

  • 恢复旧版本。n8n 在恢复之前保存最新版本。

¥Restore an old version. n8n saves the latest version before restoring.

  • 使用 源代码控制 从 Git 仓库拉取数据。请注意,n8n 将版本保存到实例数据库,而不是 Git。

¥Pull from a Git repository using Source control. Note that n8n saves versions to the instance database, not to Git.

Workflow history and execution history

请勿将工作流历史记录与 工作流级执行列表 混淆。

¥Don't confuse workflow history with the Workflow-level executions list.

执行即工作流运行。通过执行列表,你可以查看当前工作流版本之前的运行记录。你可以将先前执行的数据复制到编辑器中的 调试并重新运行过去的执行 节点,以用于当前工作流。

¥Executions are workflow runs. With the executions list, you can see previous runs of the current version of the workflow. You can copy previous executions into the editor to Debug and re-run past executions in your current workflow.

工作流历史记录是指工作流的先前版本:例如,具有不同节点或设置不同参数的版本。

¥Workflow history is previous versions of the workflow: for example, a version with a different node, or different parameters set.

查看工作流历史记录#

¥View workflow history

要查看工作流历史记录:

¥To view a workflow's history:

  1. 打开工作流。

¥Open the workflow. 2. 选择“工作流历史记录”。n8n 打开一个菜单,显示已保存的工作流版本,以及一个画布,其中包含所选版本的预览。版本。

¥Select Workflow history {.off-glb}. n8n opens a menu showing the saved workflow versions, and a canvas with a preview of the selected version.

恢复或复制先前版本#

¥Restore or copy previous versions

你可以恢复之前的工作流版本,或创建其副本:

¥You can restore a previous workflow version, or make a copy of it:

  1. 在要恢复或复制的版本上,选择“选项”Options icon

¥On the version you want to restore or copy, select Options {.off-glb}. 2. 选择要执行的操作:

¥Choose what you want to do:

  • 恢复当前版本:将你当前的工作流程替换为选定的版本。

    ¥Restore this version: replace your current workflow with the selected version.

  • 克隆到新工作流:基于选定的版本创建新的工作流。

    ¥Clone to new workflow: create a new workflow based on the selected version.

  • 在新标签页中打开版本:打开第二个标签页,显示所选版本。使用此选项比较版本。

    ¥Open version in new tab: open a second tab displaying the selected version. Use this to compare versions.

  • 下载:下载 JSON 格式的版本。

    ¥Download: download the version as JSON.