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

UserNotification in a Workflow before a Task Node causes NullPointerException

    Details

      Description

      Description

      Notification added to a workflow state node before a Task node is entered causes a NullPointerException.

      Steps to reproduce in Master w/o Kaleo plugin

      1. Go to Workflow Definition under Configuration in the Control Panel.
      2. Edit the Single Approver workflow.
      3. Change the first <state> to the be the same as the attached file: created_state.txt created_state.txt
      4. Change Title of the Workflow to Single Approver w/Start Notification and save. It should now be listed as Single Approver Version 2.
      5. Go to Workflow Configuration under Configuration in the Control Panel.
      6. Edit the Blog Entry Workflow to now be Signel Approver (Version 2) and save.
      7. Add the Blogs Portlet to a page and create a new blog entry.

      Steps to reproduce in Master with Kaleo plugin

      1. Go to Kaleo Designer in the control panel.
      2. Edit the Single Approver workflow.
      3. Click the start node that has the label "created".
      4. Under settings double click the Notifications setting.
      5. Configure a notification
      Enter a name: Test Notification
      Template Language: Freemarker
      Template: Workflow Created!
      Notification Type: User Notification
      Execution Type: On Entry
      Recipients Types: Asset Creator
      6. Select Asset Creator and click save.
      7. Click Save on the Notifications popup and Publish the workflow.
      8. Go to Control Panel -> Workflow Configuration and click the Default Configuration tab.
      9. Assign the new version of the Single Approver workflow to the Blogs Entry resource.
      10. Add the Blogs Portlet to a page and create a new blog entry.

      Results of Testing in Master

      Expected Result: A notification will be sent and the workflow will progress.
      Actual Results: Notification is sent incorrectly - text says "No longer applies", see screenshot . No exception is thrown.

      Steps to reproduce in 6.2

      Note: Notifications and Kaleo Portlets must be deployed. ** 

      1. Go to Workflow in the control panel.
      2. Edit the Single Approver workflow.
      3. Click the start node that has the label "created".
      4. Under settings double click the Notifications setting.
      5. Configure a notification
      Enter a name: Test Notification
      Template Language: Freemarker
      Template: Workflow Created!
      Notification Type: User Notification
      Execution Type: On Entry
      6. Click "Edit Recipients"
      7. Select Asset Creator and click save.
      8. Click Save on the Notifications popup and Publish the workflow.
      9. Go to Control Panel -> Workflow and click the Default Configuration tab.
      10. Assign the new version of the Single Approver workflow to the Blogs Entry resource.
      11. Add the Blogs Portlet to a page and create a new blog entry.

      Results of Testing in 6.2 SP13

      Expected Result: A notification will be sent and the workflow will progress.
      Actual Results: Notification is sent incorrectly - text says "notification-no-longer-applies Unable to display notification for My Workflow Tasks."  An exception is thrown in the logs when clicking the notification.

       

      Branch

      Reproduced
      Portal: 2c086260fa0db99db9981975f3c5266ce627672a
      Plugins: 962308cf80060531254a058b2dc4e5a388bd01b8

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 37 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP21
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.0 M1
                  7.1.X
                  Master