Question
Rule Resolution Approach
Hello Guys,
When I am going through SSA course I came across a question in Rule Resolution but with two different answers for it. Please let me know why.
Question 1:
Consider the following scenario:
The PIPFW application has the following application RuleSets:
- PIPFW:01-01
- PIPFWInt:01-01
- LES:01-01
- LESCatalog:01-01
- LESInt:01-01
A rule with an applies-to class of “ABC-FW-LoanReq-Work-Autoloan” calls “Rule123”. There are 9 copies of Rule123 in the system as shown below.
- Option A: ABC-FW-LoanReq-Work, PIPFW:01-01-05, Availability = Withdrawn
- Option B: ABC-FW-LoanReq-Work, PIPFW:01-01-03, Availability = Yes
- Option C: ABC-FW-LoanReq-Work, LESCatalog:01-01-05, Availability = No/Draft
- Option D: ABC-FW-LoanReq-Work, LESCatalog:01-01-03, Availability = Blocked
- Option E: ABC-FW-LoanReq-, PIPFW:01-01-05, Availability = Withdrawn
- Option F: ABC-FW-LoanReq-, PIPFW:01-01-03, Availability = Final
- Option G: ABC-FW-LoanReq-, LESCatalog:01-01-05, Availability = Yes
- Option H: ABC-FW-LoanReq-, LESCatalog:01-01-03, Availability = Yes
- Option I: @baseclass, Pega-RULES:07-10-99, Availability = Yes
Which rule is chosen by Rule Resolution? (Choose One)
C, error raised
D, error raised
A, error raised
F, no error raised
I, no erorr raised
D, no error raised
C, no error raised
H, error raised
B, error raised
A, no error raised
F, error raised
H, no error raised
E, no error raised
B, no error raised
G, no error raised
G, error raised
E, error raised
Question 2:
Consider the following scenario:
The PIPFW application has the following application RuleSets:
- PIPFW:01-01
- PIPFWInt:01-01
- LES:01-01
- LESCatalog:01-01-01
- LESInt:01-01
A rule with an applies-to class of “ABC-FW-LoanReq-Work-Autoloan” calls “Rule123”. There are 9 copies of Rule123 in the system as shown below.
- Option A: ABC-FW-LoanReq-Work, PIPFW:01-01-05, Availability = Withdrawn
- Option B: ABC-FW-LoanReq-Work, PIPFW:01-01-03, Availability = Yes
- Option C: ABC-FW-LoanReq-Work, LESCatalog:01-01-05, Availability = No/Draft
- Option D: ABC-FW-LoanReq-Work, LESCatalog:01-01-03, Availability = Blocked
- Option E: ABC-FW-LoanReq-, PIPFW:01-01-05, Availability = Withdrawn
- Option F: ABC-FW-LoanReq-, PIPFW:01-01-03, Availability = Final
- Option G: ABC-FW-LoanReq-, LESCatalog:01-01-05, Availability = Yes
- Option H: ABC-FW-LoanReq-, LESCatalog:01-01-03, Availability = Yes
- Option I: @baseclass, Pega-RULES: 07-10-99, Availability = Yes
Which rule is chosen by Rule Resolution? (Choose One)
A, error raised
E, error raised
B, no error raised
G, error raised
D, no error raised
B, error raised
H, no error raised
I, error raised
F, no error raised
I, no error raised
A, no error raised
C, error raised
H, error raised
C, no error raised
D, error raised
F, error raised
G, no error raised
My question is even though the question is same why there are two different answers? Did I miss something while understanding?? Please educate me.
Thanks in advance
Major difference in both the questions is the ruleset restriction for LESCatalog.
In question 1 : This ruleset is defined in ruleset stack as LESCatalog:01-01 so all the rules in LESCatalog:01-01-01 to LESCatalog:01-01-99 will be considered, hence D option since blocked rule is picked in LESCatalog:01-01-03.
In question 2 : This rule stack is restricted till patch version LESCatalog:01-01-01 and hence Option C,D,G and H are out of scope since they are in higher ruleset version (03 and 05) and finally it will go to baseclass rule and find it.
Let me know if this clarifies