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

Approving an asset submitted with Join-Xor workflow definition throws console errors

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Workflow
    • Labels:

      Description

      Steps to Reproduce

      1. Navigate to Control Panel > Configuration > Workflow Definition
      2. Add a new Workflow Definition
      3. Upload the business_productivity_join_xor_workflow_definition.xml file
      4. Save Workflow Definition
      5. Navigate to Admin > Configuration > Workflow Configuration
      6. Assign Join Xor workflow to Blogs
      7. Save
      8. Go to Admin > Content > Blogs
      9. Add a Blogs entry > Submit for Publication
      10. Go to My Workflow Tasks > 'Assigned to My Roles' tab
      11. Assign the asset showing 'task 2' to yourself
      12. Approve workflow (ie join-xor)
      13. Click Done

      Expected Result
      Workflow is successfully approved without any errors.

      Actual Result
      Clicking 'Done' after selecting 'join-xor' throws the following console errors:

      00:51:53,384 ERROR [liferay/kaleo_graph_walker-3][ParallelDestination:55] Unable to process message {destinationName=liferay/kaleo_graph_walker, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portal.workflow.kaleo.runtime.graph.PathElement@781bbe9f, values={defaultLocale=en_US, companyId=20113, groupId=0, principalName=20153, permissionChecker=com.liferay.portal.kernel.util.TransientValue@6c3de040, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.kernel.workflow.WorkflowException: Cannot complete a task that is not assigned to an individual user
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.portal.kernel.workflow.WorkflowException: Cannot complete a task that is not assigned to an individual user
              at com.liferay.portal.workflow.kaleo.service.impl.KaleoTaskAssignmentInstanceLocalServiceImpl.completeKaleoTaskInstanceToken(KaleoTaskAssignmentInstanceLocalServiceImpl.java:156)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
              at com.sun.proxy.$Proxy416.completeKaleoTaskInstanceToken(Unknown Source)
              at com.liferay.portal.workflow.kaleo.runtime.internal.node.JoinXorNodeExecutor._completeKaleoTaskInstanceToken(JoinXorNodeExecutor.java:170)
              at com.liferay.portal.workflow.kaleo.runtime.internal.node.JoinXorNodeExecutor._completeChildrenKaleoTaskInstanceTokens(JoinXorNodeExecutor.java:157)
              at com.liferay.portal.workflow.kaleo.runtime.internal.node.JoinXorNodeExecutor.doEnter(JoinXorNodeExecutor.java:89)
              at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.enter(BaseNodeExecutor.java:51)
              at com.liferay.portal.workflow.kaleo.runtime.internal.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:65)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
              at com.sun.proxy.$Proxy427.follow(Unknown Source)
              at com.liferay.portal.workflow.kaleo.runtime.internal.graph.messaging.PathElementMessageListener.doReceive(PathElementMessageListener.java:57)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 5 more

      Note When you navigate back to Content > Blogs and view the workflow status, it is still 'Pending.'

      Reproduced on
      Tomcat 8.0 + PostgreSQL 9.4
      Portal master GIT ID 858454f2c8282dc40324fb01a7eb88e1e2d5ca6c

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clarissa.velazquez Clarissa Velazquez
                Reporter:
                clarissa.velazquez Clarissa Velazquez
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package