Description
Workflow configuration in separate file does not work under the default key
1. Create file app/config/workflow.yml with following configuration:
ezpublish: system: default: workflows: custom_workflow: name: 'Custom Workflow' matchers: content_type: article stages: draft: label: 'Draft' color: '#f15a10' technical: label: 'Technical review' color: '#10f15a' proofread: label: 'Proofread' color: '#5a10f1' done: label: 'Done' color: '#301203' last_stage: true initial_stage: draft transitions: to_technical: from: draft to: technical label: 'To technical review' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' back_to_draft: reverse: to_technical label: 'Back to draft' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' to_proofread: from: technical to: proofread label: 'To proofreading' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' back_to_technical: reverse: to_proofread label: 'Back to technical review' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' done: from: proofread to: done label: 'Done' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment'
2. Import the file into ezplatform.yml:
imports: - { resource: workflow.yml }
3. Go to the site. You will see the attached error.
Note: The configuration works correctly when admin scope is used instead of default.