Issue
- I tried to integrate a custom java ActionExecuter following this article https://learn.liferay.com/w/dxp/process-automation/workflow/developer-guide/creating-an-action-executor. But after using it in a workflow my ActionExecuter as well as the one given in the example are resulting in a PortalExeption saying, that there is no action executor for java.
2024-06-18 16:54:04.739 ERROR [com.liferay.portal.workflow.kaleo.runtime.internal.petra.executor.GraphWalkerPortalExecutor-2][KaleoActionExecutorImpl:63] null
com.liferay.portal.kernel.exception.PortalException: No action executor for java
at com.liferay.portal.workflow.kaleo.runtime.internal.action.executor.ActionExecutorManagerImpl.executeKaleoAction(ActionExecutorManagerImpl.java:71) ~[?:?]
at com.liferay.portal.workflow.kaleo.runtime.internal.action.KaleoActionExecutorImpl.executeKaleoActions(KaleoActionExecutorImpl.java:52) ~[?:?]
at com.liferay.portal.workflow.kaleo.runtime.node.BaseNodeExecutor.enter(BaseNodeExecutor.java:42) ~[?:?]
at com.liferay.portal.workflow.kaleo.runtime.internal.graph.DefaultGraphWalker.follow(DefaultGraphWalker.java:65) ~[?:?]
at sun.reflect.GeneratedMethodAccessor1045.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_362]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_362]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:60) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:40) ~[portal-impl.jar:?]
at com.sun.proxy.$Proxy934.follow(Unknown Source) ~[?:?]
at com.liferay.portal.workflow.kaleo.runtime.internal.petra.executor.GraphWalkerPortalExecutor._walk(GraphWalkerPortalExecutor.java:174) ~[?:?]
at com.liferay.portal.workflow.kaleo.runtime.internal.petra.executor.GraphWalkerPortalExecutor.lambda$execute$1(GraphWalkerPortalExecutor.java:98) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_362]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_362]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
Environment
- 2023.q4.4+
Resolution
-
The documentation article might not be up to date. The example module from it compiles and deploys but isn’t working due to some framework changes. Therefore, we need to update, to fix that documentation article, which is in progress at the time of writing this Fast Track article (https://liferay.atlassian.net/browse/LRDOCS-12842)
The changes that need to be done (compared to the article) for this to work are described in the first comment on https://liferay.atlassian.net/browse/LPD-20939