Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Optimistic lock setting getting reset automatically



User have enabled optimistic lock setting at case type level and saved the rule.
On save or check-in of the rule, the lock setting gets reset to default locking on its own .

Error Messages

Not Applicable

Steps to Reproduce

1. Create a case type and set the lock mode as 'Optimistic'.
2. Try to save or check in the rule, the lock mode gets changed to 'Default'.

Root Cause

A defect in Pegasystems’ code or rules: This issue is occuring because of the declare expression ".pyLockingMode" in class 'Rule-Obj-CaseType'.

This sets the locking mode to optimistic when pyOfflineEnabled value is true. If the value is false, the locking mode is set to 'Default', which is incorrect. 


Note:The issue has been fixed in later releases.

In order to fix this in 7.1.9, perform the following local-change:

Save as the declare expression into your ruleset and update it to set the locking mode to @java("tools.getProperty(\"pyLockingMode\").getStringValue()") in the otherwise section(i.e., if not offline). PFB. This will set the locking mode on casetype rule form correctly.



Published January 3, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us