Discussion
Pegasystems Inc.
SG
Last activity: 24 Jun 2019 17:56 EDT
Rule Resolution Process & Rule Availability- Cheat Sheet
Rule resolution is the internal process by which Process Commander / Rules Engine decides at run-time which rule (of a set of candidate rules) to execute.
Below is the step by step process on how Rule resolution works to find the rule to execute :
- Choose rule instance with correct purpose or family (rule type, rule name )
- Discard rules with rules availability set to “Not Available” or “No” or “Draft”
- Remove rules not in user’s ruleset list (ruleset & version)
- Remove rules not in class ancestry
- Sort rules (circumstance property , circumstance date , Date-time , version) group by class & ruleset
- Discard rules(in Ruleset name & Major version) with rules availability set to “Withdrawn”
- Discard multiple Default rules (across all “apply’s to” class & rulesets )
- Display Error on rules with rules availability set to “Blocked”
- Display Error where current users has restricted access
- Finally, Select a Rule to execute
Below table explains, how Rule availability influences rule resolution :
Rule Availability |
View |
Copy or Save As |
Edit |
Execute |
Comments |
Available |
Yes |
Yes |
Yes |
Yes |
|
Final |
Yes |
No |
No |
Yes |
|
Not Available |
Yes |
Yes |
Yes |
No |
Rule ignored , rules in next available version are considered |
Withdrawn |
Yes |
Yes |
Yes |
No |
Rules in same class and ruleset are ignored, rules in higher class , ruleset version are considered |
Blocked |
Yes |
Yes |
Yes |
|
Halts the rule resolution and displays error. |
Hope this post helps you in understanding rule resolution process better.
Note: Please comment with edits needed , if any . Thanks!
Thanks & Regards,
Praveen John Kumar