Getting OptimisticLockException with workflow task timers

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 via LPS-182166 and 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.
这篇文章有帮助吗?
2 人中有 2 人觉得有帮助