How to restrict which RuleSets can contain rules that have a specific Applies To class
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".
This class has its RuleSet in the Limit Rules to RuleSets area as its only value.
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:
An error message documents the restriction: