Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

How to restrict which RuleSets can contain rules that have a specific Applies To class

Suggest edit Updated on September 10, 2021

Summary

The Limit Rules to RuleSets feature allows you to identify those RuleSets that can contain your class as the first key part of a class-based rule.

Many rule types (for example activities, properties and models) are class-based, meaning that they have an Applies To class as a first key part.  The RuleSet of such rules can be different – even unrelated to – the RuleSet that the Rule-Obj-Class key part belongs to.

This article describes how you can restrict which RuleSets can contain rules that apply to a specific class in your application.

Suggested Approach

Open the Class form.

Under the Restrictions tab of the class, enter the RuleSet of the class itself (in this case, Test-A) in the Limit Rules to RuleSets field as the only value.

This action results in limiting the creation of class-based rules to only your class RuleSet when such rules are defined in your class.

Example

Below is Class "Test-A-B" in the RuleSet "Test-A".

Class Test-A-B in RuleSet Test-A

This class has its RuleSet in the Limit Rules to RuleSets area as its only value.

Limit Rules to Class RuleSet Only

As a result, saving a rule (such as an activity) belonging to class Test-A-B in a RuleSet other than Test-A is not allowed:

Limited Rule from RuleSet

An error message documents the restriction:

Limited RuleSet Message

Did you find this content helpful? YesNo

50% found this useful

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us