Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-109118

WorkflowHandlerRegistryUtil doesn't take into account service.ranking

    Details

      Description

      Steps to Reproduce:

      1. Create a custom module adding CustomJournalWorkflowHandler.
      2. Deploy the module in the server.
      3. Restart the server.
      4. Execute the following Groovy script and check that CustomJournalWorkflowHandler appears.
      for(wh in com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandlers()) {
          out.println(wh);
      }

       

      Expected Result:

      CustomJournalWorkflowHandler should appear as it has higher service ranking than JournalArticleWorkflowHandler.

       

      Actual Result:

      JournalArticleWorkflowHandler appears as we are using a map to save the handlers ignoring the priority.

       

        Attachments

        1. abc.xyz.handler.jar
          4 kB
        2. custom-journal-handler.zip
          3 kB
        3. pass.png
          pass.png
          62 kB

          Activity

            People

            Assignee:
            melody.wu Melody Wu
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              47 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP91
                7.0.10.14 DXP SP14
                7.0.X
                7.1.10 DXP FP18
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.10 DXP GA1
                Master