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

NoSuchEntryException for custom workflow when approving from a Scheduled status

    Details

      Description

      1. Create a workflow using the XML source from the attached test_workflow1.xml (test_workflow1_master.xml for master) – This is needed to call assetRenderer.getClassPK() in the script of a step
      2. Assign this workflow to Web Content Articles in a site
      3. Create a web content article in that site by setting it's display date in the future
      4. Find the Review task in My Workflow Tasks and approve the article (the article's status will be Scheduled)
      5. Edit the web content article again and set it's display date in the past (in order to make it Approved and displayable) and submit it for publication again – If you check the AssetEntry table at this point, you will see that there is no separate asset entry created temporarily for the pending status
      6. Find the Review task in My Workflow Tasks and approve the article

      Result: NoSuchEntryException is thrown in the log.

      The use case and the root cause is pretty much the same as for LPS-23329, but for Scheduled status instead of Expired. So the solution pattern should be the same also.

        Attachments

          Activity

            People

            Assignee:
            pavel.savinov Pavel Savinov (Inactive)
            Reporter:
            gergely.mathe Gergely Mathe (Inactive)
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 4 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP40
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master