Legacy Knowledge Base
公開されました Jul. 2, 2025

カスタム エンティティでワークフローがトリガーされない

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.

問題

  • 「単一承認ワークフロー」 を 「カスタム エンティティ」に適用しようとすると、Liferay コンソールで以下のエラーが発生します。
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

  • ライフレイ 7.2 GA1

解決策

  • この問題は Liferay 7.2 SP1+ で解決されています
  • ポータルを Liferay 7.2 GA1 から Liferay DXP 7.2 Fix Pack 2+ (つまり: SP1) にアップグレードする必要があります。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base