Featured post

GetNextWork functionality in pega

What is GetNextWork in pega? Pega provided a functionality to get the most urgent assignment(task) for user to work on. This is configured o...

Rule availability in pega

What is rule availability in pega

Rule availability in pega determines if the rule is accessible in rule resolution algorithm and can we SaveAs, edit and Open a rule in Dev Studio.

Rule resolution algorithm in pega

"Rule resolution is a search algorithm used to find the most appropriate instance of a rule to execute in any situation."

Types of rule availability in pega

We have below five rule availability options in pega.
  1. Available (Yes)
  2. Final
  3. Not Available (No)
  4. Blocked
  5. Withdrawn
Rule Availability of a rule is visible on the rule form next to the rule name or description.
types of rule availability in pega

Available (Yes):

When we create rule the default availability is "Available" and it determines the rule is accessible during rule resolution process. We can view, save as, edit, and execute rules in Dev Studio.

Final:

If the rule availability is Final indicates that rule may be used during the rule resolution process.
We can not save as or edit the rule into another ruleset if the availability is Final however we can open and see the rule and execute in dev studio.
pega final rule
If we see any pega OOTB rules marked as final indicates the rules may be changed in future releases.

Not Available (No):

If the rule availability is "Not Available" indicates that rule may not be used during the rule resolution process but the next highest version of the rule instance will be used.
rule availability NotAvailable
For example:
Activity "Uploadusers" instance is there in 3 versions and highest version is marked as "Not Available".
rule availability No
The rule in the next-highest version — MyTown311:01-01-04 is considered for rule resolution.
tracer execution
We can SaveAs, view and edit NotAvailable rules in dev studio but we can not execute it.We will set the availability of a rule to Not Available during initial development which allows us to save a rule without validation.

Blocked:

If the rule availability is "Blocked" indicates that rule may be used during the rule resolution process but will not be executed. If the selected rule is the highest versioned instance and is marked as Blocked, execution will be stopped and will see an error message in the logs as well.
rule availability Blocked
For example:
Activity "Uploadusers" instance is there in 3 versions and highest version is marked as "Blocked" and it will be selected during rule resolution but not executed, system stops the process and throws an error.
blocked rule
At run time we can see an the exception int racer.
tracer error for blocked rule
We can SaveAs, view and edit Blocked rules in dev studio but we can not execute it.

Withdrawn:

If the rule availability is "Withdrawn" indicates that Withdrawn version and below (lower) versions of the same rule (same rule type, name and class) will not be selected during rule resolution process.
For example:
from the below table, the availability of the rule (Section) named RequestForm in the Training:01-01-10 ruleset is set to Withdrawn. All rules that are in the same ruleset with an equal or lower version number and have the same purpose and Apply to: class are not considered during rule resolution. The rule named RequestForm in the Training:01-01-15 is considered during rule resolution because the ruleset version is higher than the ruleset version of the withdrawn rule. 
withdrawn example
If the rule in Training:01-01-15 did not exist, a rule in the parent class, TGB-Training-Work, will be selected.
withdrawn example-parent
We can SaveAs, view and edit Withdrawn rules in dev studio but we can not execute it.



No comments:

Post a comment