审查工作流程
Page summary:审查工作流定义了用于内容审查的自定义多阶段流程,促进从草稿到发布的协作。本文档演示了如何创建工作流和分配阶段。
审核工作流功能允许你为各种内容类型创建和管理工作流。每个工作流可以包含内容的任何审核阶段,使你的团队能够在从草稿到发布的内容创建流程中进行协作。
🌐 The Review Workflows feature allows you to create and manage workflows for your various content-types. Each workflow can consist of any review stages for your content, enabling your team to collaborate in the content creation flow from draft to publication.
配置
🌐 Configuration
配置此功能的路径: 设置 > 全局设置 > 审核工作流
为了使审核工作流可以在 内容管理器 中使用,应配置默认工作流或创建新的工作流。
🌐 For the review workflows to be usable in the Content Manager, the default one should be configured or a new one should be created.
默认的工作流程设置为有4个阶段,顺序 是:待办、准备审核、进行中和已审核。所有4个阶段都可以根据需要进行编辑、重新排序或删除,同时也可以添加新的阶段。
🌐 The default workflow is configured to have 4 stages, in this order: To do, Ready to review, In progress, and Reviewed. All 4 stages can be edited, reordered or deleted as needed, and it is also possible to add new stages.
管理面板设置
🌐 Admin panel settings
创建新工作流程
🌐 Creating a new workflow
- 点击 创建新工作流 按钮或工作流的编辑按钮 。
- 在工作流编辑界面,配置新的工作流:
| 设置名称 | 说明 |
|---|---|
| 工作流名称 | 为工作流写一个独特的名称。 |
| 关联到 | (可选)将此工作流分配给一个或多个现有的内容类型。 |
| 阶段 | 添加审核阶段(参见添加新阶段)。 |
| 发布所需阶段 | (可选)选择条目必须达到的阶段才能发布(参见发布要求阶段)。 |
- 点击 保存 按钮。新的工作流将显示在列表视图中,并适用于每个分配的内容类型。
一个 Strapi 项目最多可以有 200 个工作流,每个工作流最多可以有 200 个阶段。
🌐 A Strapi project can have up to 200 workflows, and each workflow up to 200 stages.
编辑工作流程
🌐 Editing a workflow

添加新阶段
🌐 Adding a new stage
- 点击添加新阶段按钮。
- 写下艺名。
- 选择一个颜色。
- 选择可以从此阶段更改的角色,以定义哪些角色可以将内容移出此阶段。
- 选择可以将内容移到此阶段的角色,以定义哪些角色可以将内容转移到此阶段。
- 点击 保存 按钮。
默认情况下,新阶段会被追加,但可以随时使用 按钮重新排序。
每个权限字段都有自己的“应用于所有阶段”选项,它会将该字段的角色选择复制到工作流中 的每个其他阶段。或者,可以使用阶段上下文菜单中的“复制阶段”来复制整个阶段配置,包括两种权限类型。
🌐 Each permission field has its own "Apply to all stages" option, which copies that field's role selection to every other stage in the workflow. Alternatively, use "Duplicate stage" from the stage context menu to copy the entire stage configuration including both permission types.
复制一个阶段
🌐 Duplicating a stage
- 在舞台的上下文菜单中点击 复制舞台。
- 更改复制阶段的名称。
- 点击 保存 按钮。
需要一个发布阶段
🌐 Requiring a stage for publishing
工作流的发布所需阶段设置会阻止未处于所选阶段的条目被发布。它适用于与该工作流相关的每种内容类型。
🌐 The Required stage for publishing setting of a workflow prevents entries from being published if they are not at the selected stage. It applies to every content-type associated to the workflow.
- 在工作流编辑界面,点击发布所需阶段下拉列表。
- 选择工作流的一个阶段,或者选择任意阶段以允许从任何阶段发布。
- 点击 保存 按钮。
条目必须正好处于所选阶段才能发布:处于更后阶段的条目也不能发布。将工作流的最后阶段选为必要阶段可以避免这 种情况。
🌐 An entry must be exactly at the selected stage to be published: an entry at a later stage cannot be published either. Choosing the last stage of the workflow as the required stage avoids this situation.
当设置确定后,发布一个不在要求阶段的条目会返回错误。在发布中,不在要求阶段的条目会被标记为未准备好发布。
🌐 When the setting is defined, publishing an entry that is not at the required stage returns an error. In Releases, entries that are not at the required stage are flagged as not ready to be published.
删除一个阶段
🌐 Deleting a stage
要删除一个阶段,请在该阶段的上下文菜单中点击 ,然后选择删除。
如果你删除了某个阶段,而条目正处于该阶段,这些条目会被移动到工作流程中最接近的前一个阶段。如果被删除的阶段是第一个阶段,条目则会被移动到下一个阶段。每个工作流程至少需要包含一个阶段,因此不能删除最后一个阶段。
🌐 If you delete a stage that entries are at, these entries are moved to the closest previous stage in the workflow. If the deleted stage was the first one, the entries are moved to the next stage instead. Every workflow needs to contain at least one stage and therefore it is not possible to delete the last stage.
删除工作流
🌐 Deleting a workflow
要删除工作流,请在列表视图中点击工作流的删除按钮 。
无法删除最后一个工作流程。
🌐 It is not possible to delete the last workflow.
使用
🌐 Usage
使用此功能的路径: 内容管理器
更改审查阶段
🌐 Changing review stage
在你的团队创建和修改内容的过程中,你可以更改内容的审核阶段。下拉菜单中可选择的目标阶段取决于你角色的权限:你必须拥有将内容从当前阶段移动的权限以及将内容移动到目标阶段的权限。
🌐 As content is created and revised among your team, you can change the review stage of the content. The available target stages in the dropdown depend on your role's permissions: you must have permission to move content from the current stage and permission to move content to the target stage.
- 访问你的内容类型的编辑视图。
- 在界面右侧的审查工作流框中,点击_审查阶段_下拉列表。
- 选择你的条目的新审核阶段。它会自动保存。

定义受让人
🌐 Defining assignee
审核工作流程内容类型的条目可以分配给 Strapi 中的任何管理员用户进行审核。
🌐 Entries of a review workflow content type can be assigned to any admin user in Strapi for review.
- 访问你的内容类型的编辑视图。
- 在界面右侧的审查工作流框中,点击_受托人_下拉列表。
- 选择你的条目的新受让人。它会自动保存。

你可以通过 指派人 和 审查阶段 来过滤内容管理器列表视图中的条目,以快速找到分配给特定用户或处于特定审查阶段的条目。在列表视图中打开筛选菜单即可访问这些筛选选项。
🌐 You can filter entries in the Content Manager list view by Assignee and Review Stage to quickly find entries assigned to specific users or in specific review stages. Open the filters menu in the list view to access these filtering options.
审核工作流程操作的审计日志
🌐 Audit logging of review workflow actions
5.56.1This feature requires Strapi version 5.56.1 or later.审核工作流的操作会自动记录在审计日志中。工作流的更改、条目的审核阶段更改以及条目分配人的更改都会生成日志记录。
🌐 Review workflow actions are automatically captured in Audit Logs. Changes to a workflow, to the review stage of an entry, and to the assignee of an entry each produce a log entry.
记录了以下操作:
🌐 The following actions are recorded:
| 操作 | 记录内容 |
|---|---|
| 创建工作流 | 工作流适用的内容类型、阶段,以及发布所需的阶段。 |
| 更新工作流 | 在名称、内容类型、阶段和发布所需阶段中发生变化的字段及其之前和新的值。如果没有变化,则不创建记录。 |
| 删除工作流 | 被删除工作流的名称和标识符。 |
| 更改条目审核阶段 | 语言环境、条目所属的工作流,以及之前和新的阶段。 |
| 更改条目负责人 | 语言环境,以及之前和新的负责人。没有负责人的条目会记录为空。如果负责人没有变化,则不创建记录。 |
阶段会按名称记录,并标注其颜色以及允许从或向其移动内容的角色。内容类型和角色会在比较前进行排序,所以仅仅重新排列它们不会被记录为更改。被分配的人会记录为管理员用户ID,而不是用户名。
🌐 Stages are recorded by name, with their color and the roles allowed to move content from and to them. Content types and roles are sorted before comparison, so reordering them alone is not recorded as a change. Assignees are recorded as admin user identifiers, not as user names.
要查看这些日志条目,请转到 设置 > 审计日志,然后按操作进行筛选。
阶段更改的审计日志条目与review-workflows.updateEntryStage webhook 事件同名,但它们的负载不同。
🌐 The audit log entry for a stage change shares its name with the review-workflows.updateEntryStage webhook event. Their payloads are different.