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

In Documents and Media portlet, a document still says "pending" after it has been approved in kaleo Workflow

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Deploy kaleo-web
      2. Add Documents and Media portlet
      3. Click Down arrow (Actions) > Edit on the house icon in the left menu of D and M
      4. Select 'Single Approver (Version 1)' in the dropdown menu > Save
      5. Add a document in Documents and Media portlet > it will say "(Pending)" after the title
      6. Go to > Control Panel > My Workflow Tasks
      7. Assign the document to 'me', then approve it
      8. Click Back to Liferay
      9. See that the document is still pending
      10. Click on the document and see that the Status is "Pending (Review)"

      Expected result:
      The document won't read "(Pending)" next to its title.

      Actual result:
      The document still has "(Pending)" next to it. Either Kaleo isn't working, or Documents and Media isn't updating--I'm not sure where the error is originating.

      And the following stack trace accompanies this error (when clicking Approve in step 7):

      03:52:54,443 ERROR [liferay/kaleo_graph_walker-1][ParallelDestination:71] Unable to process message {destinationName=liferay/kaleo_graph_walker, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portal.workflow.kaleo.runtime.graph.PathElement@553800a4, values={permiss
      ionChecker=com.liferay.portal.kernel.util.TransientValue@4fb23ab1, principalName=2, companyId=1}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.workflow.kaleo.runtime.notification.NotificationMessageGenerationException: Unable to generate notification message
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:68)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:675)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:586)
              at java.lang.Thread.run(Thread.java:722)
      Caused by: com.liferay.portal.workflow.kaleo.runtime.notification.NotificationMessageGenerationException: Unable to generate notification message
              at com.liferay.portal.workflow.kaleo.runtime.notification.TemplateNotificationMessageGenerator.generateMessage(TemplateNotificationMessageGenerator.java:78)
              at com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil._sendKaleoNotification(NotificationUtil.java:58)
              at com.liferay.portal.workflow.kaleo.runtime.notification.NotificationUtil.sendKaleoNotifications(NotificationUtil.java:44)
              at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.exit(BaseNodeExecutor.java:122)
              at com.liferay.portal.workflow.kaleo.runtime.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:50)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:80)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
              at $Proxy433.follow(Unknown Source)
              at com.liferay.portal.workflow.kaleo.runtime.graph.messaging.PathElementMessageListener.doReceive(PathElementMessageListener.java:54)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
              ... 5 more
      Caused by: com.liferay.portal.kernel.template.TemplateException: Unsupported template manager FREEMARKER
              at com.liferay.portal.kernel.template.TemplateManagerUtil._getTemplateManager(TemplateManagerUtil.java:181)
              at com.liferay.portal.kernel.template.TemplateManagerUtil.getTemplate(TemplateManagerUtil.java:87)
              at com.liferay.portal.workflow.kaleo.runtime.notification.TemplateNotificationMessageGenerator.generateMessage(TemplateNotificationMessageGenerator.java:64)
              ... 24 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.wulbern Brian Wulbern
              Reporter:
              brian.wulbern Brian Wulbern
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.0 CE M4