Legacy Knowledge Base
Published Jul. 2, 2025

Workflow is not getting triggered on a custom entity

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The below errors are observed on the Liferay console whenever trying to apply a 'Single Approval Workflow' on a 'Custom Entity'
ERROR [com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor-2][WorkflowMetricsPortalExecutor:56] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.workflow.metrics.internal.search.index.InstanceWorkflowMetricsIndexer._getAssetEntry(InstanceWorkflowMetricsIndexer.java:199)
at com.liferay.portal.workflow.metrics.internal.search.index.InstanceWorkflowMetricsIndexer.createDocument(InstanceWorkflowMetricsIndexer.java:64)
at com.liferay.portal.workflow.metrics.internal.model.listener.KaleoInstanceModelListener.lambda$onAfterUpdate$2(KaleoInstanceModelListener.java:51)
at com.liferay.portal.workflow.metrics.internal.petra.executor.WorkflowMetricsPortalExecutor.lambda$null$0(WorkflowMetricsPortalExecutor.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Environment

  • Liferay 7.2 GA1

Resolution

  • The issue is resolved in Liferay 7.2 SP1+
  • Need to upgrade the portal from Liferay 7.2 GA1 to Liferay DXP 7.2 Fix Pack 2+ (ie: SP1).

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base