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

Evaluating workflow conditional with groovy fails

    Details

      Description

      Reproduced on:
      Tomcat 8.0.30 + MySQL 5.6.29. Portal master GIT ID: 8cc7aec7f2bd7c1a6b9e7c50f57a3e228734f55b.

      Steps to Reproduce:

      1. Go to Content > Categories
      2. Add new Vocabulary
      3. Add new Category under new vocabulary called "legal"
      4. Go to Control Panel > Workflow Definition
      5. Upload category-specific-definition.xml (Found at https://github.com/liferay/liferay-portal/blob/master/modules/apps/business-productivity/portal-workflow/portal-workflow-kaleo-runtime-impl/src/main/resources/META-INF/definitions/category-specific-definition.xml)
      6. Go to Content > Web Content
      7. Configure home folder workflow for "Category Specific Approval"
      8. Add new Web Content with "legal" category
      9. Submit for Publication

      Expected Result:
      Workflow can evaluate groovy conditional correctly. Asset goes into "legal-review" process.

      Actual Result:
      Workflow conditional cannot be evaluated. No condition evaluator found for script language groovy

      Full Error Output:

      18:10:23,132 ERROR [liferay/kaleo_graph_walker-2][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@1ed911f8, values={defaultLocale=en_US, companyId=20202, groupId=0, principalName=20250, permissionChecker=com.liferay.portal.kernel.util.TransientValue@197bfdf1, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.IllegalArgumentException: No condition evaluator found for script language groovy
      	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: java.lang.IllegalArgumentException: No condition evaluator found for script language groovy
      	at com.liferay.portal.workflow.kaleo.runtime.internal.condition.MultiLanguageConditionEvaluator.evaluate(MultiLanguageConditionEvaluator.java:53)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.node.ConditionNodeExecutor.doExecute(ConditionNodeExecutor.java:65)
      	at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.execute(BaseNodeExecutor.java:83)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:69)
      	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:153)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
      	at com.sun.proxy.$Proxy390.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
      

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              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:
                4 years, 22 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 CE RC1