Support Article
Issue with Inheritance
SA-71622
Summary
Property x is present in the abc-work class where the Max length value is 32. The Max length is defined as 35 in the abc-work-test class. However, when the user inputs 33 characters for the workobject in the abc-work-test class, exception occurs indicating that the Max length is 32.
Error Messages
Not Applicable
Steps to Reproduce
Execute a rule in the abc-work class by referring to a property and the run time class of the property in the abc-work-test.
Root Cause
A defect in Pegasystems’ code or rules. Activities and other rules are defined in abc-work and the generated java property Max length is inlined. Hence, 32 is inlined in this case and as a result the exception occurs.
Resolution
Perform the following local-change:- Save as the referencing rules to a specific class
- Remove the Max length from the properties in both the sub class and super class and add validation during the save time using extension points like Work-.Validate activity which is invoked from the out-of-the-box save activities
- While performing explicit obj-save of work objects, user must take care of the validating max length before saving by writing java or using any rule-utility-function or validate rules
Published August 19, 2019 - 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.