Support Article
Child cover open count starts at -1 and continues to decrease
SA-96769
Summary
Error message displays while resolving a Child case. The count in the error message decreases on resubmitting the screen.
Error Messages
The cover open count is incorrect; it is -1
Steps to Reproduce
- Create a hierarchal parent-child case structure.
- Deselect the 'Lock parent case when child case is locked' checkbox in the Case type settings.
- Resolve the child case.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
- In a child case flow, the lock on the parent case is acquired through the obj-refresh. The lock of the parent case performs an obj-open-by-handle followed by an obj-save (as in the getWorkObjectLock activity). This is because in certain scenarios, the parent case is already locked, and if an obj-refresh-and-lock is performed, the Clipboard page is not updated.
- In the prConfig.xml, set <env name="database/maxlockattempts" value="1"/>
The default value is 3. That is, the value represents the number of times the server attempted to lock a work object before displaying an error.
Any value higher than 1 causes the system to read the page from the database before checking if the object is lockable. This introduces a Timing window in which another requestor may have updated the page beyond what is read from the database. As a result, a stale page is delivered.
- Write a custom activity as below to set the pxCoveredCountOpen,
In the Method Parameters,
Set the PageName to any page of the code-pega-list. This stores the browse results.
Set the ObjClass to a class to search to obtain child cases.
Published July 18, 2020 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.