Question
3
Replies
2490
Views
TCS
Posted: December 5, 2017
Last activity: December 5, 2017
Closed
Solved
Circumstancing
I have a section which is circumstanced with Property "Country" such as India,Australia and 8 others.
There is a requirement that now the section needs to be similarly displayed for all the countries.
What is the best approach to remove circumstancing?
Thanks
Hi Mamta,
Thanks for posting your query on PSC.
You can achieve the desired requirement by two ways:-
1. Overriding a circumstanced rule with the base rule:-
You can configure a rule as the base rule, by checking the "Base rule" option in the rule's availability.
In this method, you need to override the circumstanced rule by defining a new base rule. When a rule is marked as a base rule, all previous circumstances are ignored during rule resolution.
For Example, if we have below rules available with respective circumstance options:-
Versioning Circumstance
1. 01-01-10 None
2 01-01-13 .Country= India
3 01-01-20 None, Base rule Checked
4 01-01-25 .Country = US
5 01-01-27 None
Considering the above example, if user executes the rules for .Country="US". Rule resolution process will use (ver: 01-01-25 ). If user execute the rule when .Country="India", rule resolution will pick 01-01-27 as Pega uses 01-01-20 is considered as base rule and ver:01-01-27 is highest available base rule.
2. Overriding a circumstanced rule by withdrawing a rule:-
Override the circumstanced rule in a higher ruleset version and configure it as "Withdrawn" in the availability of the rule. Satisfying below conditions:-
a. Same defined on (Applies To) class.
b. Same qualifiers (Circumstance Property,Property Value,Date Property,Date Property Value,Start Date,or End Date)
c Same ruleset name.
d Same major version.
Using above list,
If there is the requirement to remove circumstancing as country-based classification no longer required.
You would withdraw that circumstance rule and not impact the base rule.
Versioning Circumstance
1. 01-01-10 None
2 01-01-13 .Country= India
3 01-01-20 None, Base rule Checked
4 01-01-25 .Country = US
5. 01-01-27 .Country =US, Withdrawn
6 01-01-28 None
You need to create a new rule (line-5).
Rule resolution will pick ver:01-01-28 as the circumstance rule will be considered as withdrawn.
Now based on your requirement, I would suggest to consider option 1 as you end up just overriding the base rule in higher version instead of overriding all the circumstanced rules and then withdraw.
Hope it helps you to understand the circumstancing and rule resolution at runtime.
Kindly let me know and mark as answered, if it helped you.
Thanks,
Asif