Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4116

Custom Workflows use transitions identifiers instead of using labels

    XMLWordPrintable

Details

    Description

      In policy page view, custom workflows dont use label to display their names, but they use transition identifier instead

      steps to reproduce:

      Install clean version of dxp 

      Add a new workflow with transition:

       

      ibexa:
          system:
              default:
                  workflows:
                      custom_workflow:
                          name: Custom Workflow
                          matchers:
                              content_type: [article, folder]
                              content_status: [draft]
                          stages:
                              draft:
                                  label: Draft
                                  color: '#f15a10'
                              legal:
                                  label: Legal
                                  color: '#5a10f1'
                                  actions:
                                      notify_reviewer: ~
                              done:
                                  label: Done
                                  color: '#301203'
                                  last_stage: true
                          initial_stage: draft
                          transitions:
                              to_legal_identifier:
                                  from: [draft]
                                  to: [legal]
                                  label: To legal
                                  color: '#8888ba'
                                  icon: '/bundles/ibexaplatformicons/img/all-icons.svg#notice'
                                  reviewers:
                                      required: true 

      then make sure to clear cache 

       

      check that the workflow works ont the content types

      Then go to admin -> role -> add new policy (admin/role/3/policy/create)

      Select Workflow / change stage and click on create button

       

       

      Next screen will invite you to select Workflow Transition

      See Custom workflow: To Legal Identifier

      this comes from:

         transitions:
                              to_legal_identifer:
                                  from: [draft]
                                  to: [legal] 

      Expected result:

      Label should be used

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              lionel.akpagni@ibexa.co Lionel Akpagni
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: