@@ -22,7 +22,7 @@ The following example configuration defines a workflow where you can optionally
2222![ Diagram of custom workflow] ( ../img/workflow_custom_diagram.png )
2323
2424``` yaml
25- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 32 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 37, 50 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 53, 61 ) =]]
25+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 33 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 38, 51 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62 ) =]]
2626```
2727
2828### Matchers
@@ -57,13 +57,14 @@ A transition must state between which stages it transitions (lines 3-4),
5757or be ` reverse ` to a different transition (line 9).
5858
5959``` yaml hl_lines="3 4 9"
60- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 30) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 37, 42 ) =]]
60+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 30) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 38, 43 ) =]]
6161```
6262
6363### Reviewers
6464
6565When moving a Content item through a transition, the user can select a reviewer.
6666Assigning a reviewer is mandatory if you set ` reviewers.required ` to ` true ` for this transition.
67+ You can restrict who can review the content item by setting ` reviewers.user_group ` to a Location ID of the user group.
6768
6869To be able to search for users for review, the user must have the content/read Policy without any Limitation,
6970or with a Limitation that allows reading users.
@@ -103,7 +104,7 @@ You can automatically publish a Content item once it goes through a specific tra
103104To do so, configure the ` publish ` action for the transition:
104105
105106``` yaml hl_lines="7 8"
106- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 53, 61 ) =]]
107+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62 ) =]]
107108```
108109
109110### Disable Quick Review
@@ -112,7 +113,7 @@ You can disable the default workflow, for example, if your project does not use
112113workflows, or Quick Review entries clog your database:
113114
114115``` yaml
115- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 4) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 62, 66 ) =]]
116+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 0, 4) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 63, 67 ) =]]
116117```
117118
118119## Custom actions
@@ -193,8 +194,8 @@ To enable form validation in UI before sending it to the next stage of the workf
193194add `validate : true` to the transitions of the stage.
194195In the example below the form is validated in two stages:` to_legal` and `done` :
195196
196- ` ` ` yaml hl_lines="14 27 "
197- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 42 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62 ) =]]
197+ ` ` ` yaml hl_lines="15 28 "
198+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 23, 43 ) =]][[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 55, 63 ) =]]
198199` ` `
199200
200201You can check validation for a particular stage of the workflow even if the stage doesn't have any actions.
0 commit comments