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 MessagesNot 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'.
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 December 15, 2016 - Updated January 3, 2017