Shared ruleset
A shared ruleset contains a small number of rules that each operate on a common, top-level page of a single class (or of subclasses of that class).
Shared rulesets have the following restrictions:
- A shared ruleset cannot contain a class rule.
- Rules must apply to classes that extend existing classes such as the Work- base class and the Data- base class.
Typically, shared rulesets contain only a few rules. The intent is to provide a small group of rules that provide common functions that can be shared among (unrelated) applications.
To facilitate reuse of the ruleset in multiple situations, use the keyword
Top
in property references in the rules of a shared ruleset to refer to the top-level class on which the rules operate. Do not identify this class explicitly.
When you log in, a ruleset list is developed from the information in your access group and rules that it references. Shared ruleset versions appear near the bottom of the list, just above the standard Pega- rulesets.
To mark a ruleset as a shared ruleset , set the RuleSet Type on the
Category tab of the ruleset form to Shared
.
To include a component ruleset in your own ruleset list, identify the ruleset in the Enabled components array on the Definition tab of an application rule referenced by your access group.