@@ -22,7 +22,7 @@ The following example configuration defines a workflow where you can optionally
2222![ Diagram of custom workflow] ( 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
@@ -61,13 +61,14 @@ A transition must state between which stages it transitions (lines 3-4),
6161or be ` reverse ` to a different transition (line 9).
6262
6363``` yaml hl_lines="3 4 9"
64- [[= 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 ) =]]
64+ [[= 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 ) =]]
6565```
6666
6767### Reviewers
6868
6969When moving a content item through a transition, the user can select a reviewer.
7070Assigning a reviewer is mandatory if you set ` reviewers.required ` to ` true ` for this transition.
71+ You can restrict who can review the content item by setting ` reviewers.user_group ` to a Location ID of the user group.
7172
7273To be able to search for users for review, the user must have the content/read Policy without any Limitation,
7374or with a Limitation that allows reading users.
@@ -107,7 +108,7 @@ You can automatically publish a content item once it goes through a specific tra
107108To do so, configure the ` publish ` action for the transition:
108109
109110``` yaml hl_lines="7 8"
110- [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 53, 61 ) =]]
111+ [[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 54, 62 ) =]]
111112```
112113
113114### Disable Quick Review
@@ -116,7 +117,7 @@ You can disable the default workflow, for example, if your project does not use
116117workflows, or Quick Review entries clog your database:
117118
118119``` yaml
119- [[= 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 ) =]]
120+ [[= 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 ) =]]
120121```
121122
122123## Custom actions
@@ -181,8 +182,8 @@ To enable form validation in UI before sending it to the next stage of the workf
181182add `validate : true` to the transitions of the stage.
182183In the example below the form is validated in two stages:` to_legal` and `done` :
183184
184- ` ` ` yaml hl_lines="14 27 "
185- [[= 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 ) =]]
185+ ` ` ` yaml hl_lines="15 28 "
186+ [[= 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 ) =]]
186187` ` `
187188
188189You can check validation for a particular stage of the workflow even if the stage doesn't have any actions.
0 commit comments