Getting OptimisticLockException with workflow task timers
Anishq Sharma
更新
Issue
OptimisticLockException is encountered when using task timers inside the workflow.
Steps to reproduce:
Add a workflow under the process builder and add two task timers performing the same task at the same time.
Assign the workflow to any asset (Blog)
Create an asset (Blog)
Result: Below error is encountered in logs:
[KaleoActionExecutorImpl:72] null com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [com.liferay.portal.workflow.kaleo.model.impl.KaleoInstanceImpl#xxxx]
Environment
Liferay DXP 7.4
Resolution
The observed behavior is a known bug and is addressed viaLPS-182166and resolved in DXP 7.4 U76.
In case the user needs further info regarding the LPS, please create a help center ticket mentioning the provided LPS.