Commit does not release lock for parent case post upgrade
SummaryPost upgrading to Pega Platform 8.2.2, the parent case lock is acquired when resolving the child case.
In Pega 7.2.2, the final commit releases the lock for both the cases. However, in Pega 8.2.2, the commit does not release the lock for the parent case.
Error MessagesNot Applicable
Steps to Reproduce
- Create a parent and child case hierarchy with default locking and select the 'Do not lock the parent case' checkbox.
- Submit the child case. The Final assignment results in the parent case lock being held.
Root CauseA defect in Pegasystems’ code or rules.
In the Work-.Resolve, the openIfStale engine API is invoked with eight parameters (important parameters among the eight are: aUnlockOnCommit – true and maintainLockingStrategy – true). This is where the lock is acquired; and post commit, the lock is released.
For this type of locking configuration, the combination of the parameters (mentioned above), behaves differently. Hence, the lock on the parent case is not released. This method from the engine has modifications since Pega 7.4 with various checks based on the parameters.
Published August 11, 2019