Issue with Inheritance
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.
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.
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.
ResolutionPerform 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
0% found this useful