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

DM type is missing after approving with custom workflow

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.2.10 DXP GA1, 7.2.X, Master
    • Fix Version/s: 7.2.X, Master
    • Component/s: Workflow
    • Labels:
    • Fix Priority:
      3
    • Sprint:
      Workflow_7.2_SP1_04

      Description

      Steps to Reproduce

      1. Go to Control Panel > Workflow > Process Builder to upload the attached file to create a new workflow process
        1. The attached file advanced-governors-review.xml
      2. Go to Control Panel > Users > Roles
        1. Assert the Board Member regular role was created (It is an autogenerated role from the workflow definition.)
      3. Add a new User with Board Member regular role
      4. Go to Site Admin > Content & Data > Documents and Media
      5. Add a new folder
      6. Edit the folder to use the new created workflow process
      7. Upload the Document_1.doc file to Submit for Publication
      8. Login as the new added User
      9. Extend User Admin Portlet > My Workflow Tasks > Assigned to My Roles
      10. Assert there are 4 items listed
      11. Assign all items to current user by clicking Assign to Me > Done
      12. Go to Assigned to Me tab
      13. Assert there are 4 items listed and all Asset Title contains the file extension
      14. Approve all items

      Expect Result
      Asset Title contains the file extension, like .doc here.

      Actually Result
      Asset Title not contains the file extension after approve all items with following error on console.

      2019-07-25 11:00:10.567 ERROR [liferay/kaleo_graph_walker-3][KaleoActionExecutorImpl:69] com.liferay.portal.workflow.kaleo.runtime.action.executor.ActionExecutorException: com.liferay.portal.kernel.scripting.UnsupportedLanguageException: javascript
      com.liferay.portal.workflow.kaleo.runtime.action.executor.ActionExecutorException: com.liferay.portal.kernel.scripting.UnsupportedLanguageException: javascript
      	at com.liferay.portal.workflow.kaleo.runtime.scripting.internal.action.ScriptActionExecutor.execute(ScriptActionExecutor.java:59)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.action.executor.ActionExecutorManagerImpl.executeKaleoAction(ActionExecutorManagerImpl.java:59)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.action.KaleoActionExecutorImpl.executeKaleoActions(KaleoActionExecutorImpl.java:57)
      	at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.enter(BaseNodeExecutor.java:53)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:70)
      	at sun.reflect.GeneratedMethodAccessor955.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
      	at com.liferay.portal.spring.transaction.CounterTransactionExecutor._execute(CounterTransactionExecutor.java:96)
      	at com.liferay.portal.spring.transaction.CounterTransactionExecutor.execute(CounterTransactionExecutor.java:47)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.sun.proxy.$Proxy1012.follow(Unknown Source)
      	at com.liferay.portal.workflow.kaleo.runtime.internal.graph.messaging.PathElementMessageListener.doReceive(PathElementMessageListener.java:47)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	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:752)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.portal.kernel.scripting.UnsupportedLanguageException: javascript
      	at com.liferay.portal.scripting.internal.ScriptingImpl.eval(ScriptingImpl.java:79)
      	at com.liferay.portal.workflow.kaleo.runtime.scripting.internal.util.KaleoScriptingEvaluator.execute(KaleoScriptingEvaluator.java:58)
      	at com.liferay.portal.workflow.kaleo.runtime.scripting.internal.action.ScriptActionExecutor.doExecute(ScriptActionExecutor.java:71)
      	at com.liferay.portal.workflow.kaleo.runtime.scripting.internal.action.ScriptActionExecutor.execute(ScriptActionExecutor.java:56)
      	... 22 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                sharry.shi Sharry Shi
                Participants of an Issue:
                Recent user:
                Sharry Shi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  14 weeks, 1 day ago

                  Packages

                  Version Package
                  7.2.X
                  Master