Custom fields offer application developers a flexible way to associate a set of labels and values with a rule, for classification or to supplement other facts in the rules.
Custom Fields offer a flexible facility for categorizing rules in an application, or for supplementing rules with metadata. These fields have multiple uses. For example, a file containing design notes, testing notes or change order details can be linked to a rule as the value of a Custom Field.
Custom fields for a rule appear on the right side of the History tab.
Each Custom Field has two parts, a name and a value. The value may be a text string or a file.
Developers can add or delete new Custom Fields for a rule instance, and can change the values. See How to complete and use the History tab of a rule form.
When a rule instance contains a Custom Field of type Text (rather than File), any user or developer who can update the leftmost tab of the rule can also update the text value.
When a decision rule, for example, is delegated to a manager to maintain, the manager can update information in the leftmost tab of the rule and can change the value of Custom Fields. Custom fields appear at the bottom of the header tabs of the rule form. (From the header of the form, you cannot add or delete Custom Fields.)
See:
Your application can customize the presentation of the Custom Fields area on the header of a rule form, to provide audience-specific labels and validation. For more information, see PDN article 17693 How to allow developers to review or update Custom Field values.
A developer can search for rules that contain a specific Custom Field value. Select> Process and Rules > Find Rules > Find by a Custom Field to start a wizard.
To filter by a custom field value, the custom field must be a database column in table pr_index_customfields
. If you add new custom fields and you want to report on them, expose them as columns.
By default, this facility only searches rules types that belong with the Decision category. Your application can override this behavior by overriding the standard list view rule named Rule-Obj-Class.getCategorizedRules.
The system stores custom field links as instances of the Index-CustomFields class, as elements of the @baseclass.pyCustomFields property, a Page Group
property. Physical storage within the PegaRULES database uses the pr_index_customfields
table.
For Text types, the system saves both the name and the value with the rule. When you upload a file as the value of a custom field, PRPC automatically creates a binary file rule instance containing the file and links the rule to the binary file rule.
New Custom Fields can be created by those who have the ability to create new properties.
Working with the PegaRULES database — Index- Tables |