Thursday, December 3, 2020

What is rule availability in Pega?

 What are the types of rule availability in Pega?

 1. Available 

2. Not Available 

3. Withdrawn

 4. Blocked 

5. Final


In the Availability list, select an option to control how your application selects the rule during rule resolution:

  • You cannot change the availability of some rule types, such as classes and rulesets, which are always available to users.
  • To consider the rule in rule resolution, select Available.
  • To exclude the rule from rule resolution and disable validation logic so that you can continue to edit the rule even if errors occur, select Not available.
  • To consider the rule during rule resolution but to stop processing and return an error to the user when the user selects the rule, select Blocked.
  • To consider the rule during rule resolution but to prevent users from extending the rule by copying it to a different ruleset, unless the ruleset is a higher version of the current ruleset, select Final.
  • To exclude the rule and all instances with the same name, in previous versions of the same major-version ruleset, from rule resolution, select Withdrawn.

Troubleshooting final rules


After a rule is marked as final, no one can create a second rule with the same visible key in any ruleset other than the ruleset that the first rule belongs to. If the ruleset version of a final rule is locked, you cannot create a second rule with the same visible key in any version of any ruleset, except a higher version of the ruleset containing the final rule.

You cannot override a final rule except through a higher version in the same ruleset. Many rules in the Pega-* rulesets are marked Final because correct operation of these rules is essential to ensure the integrity and security of your system. However, most standard rules have the Availability field set to Available rather than Final; you can override those rules in your application.

No comments:

Post a Comment