diff --git a/code_samples/workflow/custom_workflow/config/packages/workflows.yaml b/code_samples/workflow/custom_workflow/config/packages/workflows.yaml index 351dc32d91..2b3b9bf047 100644 --- a/code_samples/workflow/custom_workflow/config/packages/workflows.yaml +++ b/code_samples/workflow/custom_workflow/config/packages/workflows.yaml @@ -37,6 +37,7 @@ ibexa: message: "Sent to the legal department" validate: true back_to_draft: + # Notice the reverse property referring to previous transition label reverse: to_legal label: Back to draft color: '#cb8888' diff --git a/docs/content_management/workflow/add_custom_workflow_action.md b/docs/content_management/workflow/add_custom_workflow_action.md index 97d227c37e..637b0e91fe 100644 --- a/docs/content_management/workflow/add_custom_workflow_action.md +++ b/docs/content_management/workflow/add_custom_workflow_action.md @@ -48,7 +48,7 @@ Line 36 in the listener above sets a custom result value for the transition. You can use this value in other stages and transitions for this content item, for example: ``` yaml hl_lines="10 11" -[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 43, 54) =]] +[[= include_file('code_samples/workflow/custom_workflow/config/packages/workflows.yaml', 44, 55) =]] ``` The action indicated here is performed only if the result from the `legal_transition_action` is set to `true`.