Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2634

Workflow config does not work under the default key

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.4.0
    • 2.4.x-dev
    • Workflow

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dominika.kurek-obsolete@ibexa.co Dominika Kurek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: