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

Kaleo Workflow task timer fires prematurely when Liferay restarts

    Details

      Description

      Issue:

      When a task timer is configured for a task in Kaleo Workflow, when its scheduled fire time is missed due to portal downtime, it will fire prematurely when the Liferay portal restarts. As a result, the task timer’s intended functions are not carried out. The attached workflow and steps to reproduce will display this behavior.

      Steps to Reproduce:

      1. Configure Liferay to use MySQL and deploy Kaleo Workflow.
      2. Log in as the Administrator.
      3. Navigate to Control Panel > Workflow > Definitions
      4. Select "Add" and upload attached Workflow
      5. Select Default Configuration and select "Time Workflow" for Web Content
      6. Navigate to Control Panel > Web Content
      7. Create a Web Content article and submit for publication
      8. Navigate to Control Panel > My Workflow Tasks. Note that the Web Content article is under the "Assigned to My Roles" Header.
      9. Next to the Web Content, select "Actions" > Assign to me. Note that the Web Content is now under the "Assigned to Me" Header. Check the quartz_job_details table and note that a job has been created for this.
      10. After 5 minutes, navigate back to Control Panel > My Workflow Tasks and note that the task is back under the header "Assigned to My Roles" and that no jobs exist in quartz_job_details.
      11. Navigate back to Control Panel > Web Content
      12. Create a new Web Content article and submit for publication.
      13. Navigate to Control Panel > My Workflow Tasks. Note that the Web Content article is under the "Assigned to My Roles" Header.
      14. Next to the Web Content, select "Actions" > Assign to me. Note that the Web Content is now under the "Assigned to Me" Header. Check the quartz_job_details table and note that a job has been created for this.
      15. Shutdown the Liferay server.
      16. Wait 5 minutes and restart the server
      17. Login to Liferay and navigate back to Control Panel > My Workflow Tasks

      Expected Result:

      The Web Content article created in step 12 would be under the header "Assigned to my Roles"

      Actual Result:

      The Web Content article created in step 12 would be under the header "Assigned to me."

      Tested in 6.1.x and Trunk
      Reproduced in 6.1.x and Trunk

      Trunk commit f6b894aafedaede6185527aadb2cb8750b2e4a7a
      Trunk Plugins commit 6f250bb1e380ab2c6c1f13d67925a5ba40c7a6e0
      6.1.x commit 91249cccaa310c618b3346f6ae2e388e163c8747
      6.1.x Plugins commit e615d1cb214f17d25292d1800863622e868f9b89

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            miguel.angelo Miguel Angelo (Inactive)
            Participants of an Issue:
            Recent user:
            Philip White (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

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

                Packages

                Version Package
                Master