Query on SSA 7.1 Quiz question on Enterprise Class Structure
Why do we need to have a sixth rule in MyCo-FW-LoanApp-Work class when we have all the 5 requirements implemented in 5 Division classes. Even if we have one in FW class, which requirement's implementation will go in that rule? Thanks in advance.
Consider the following scenario: Organization: MyCo Five Divisions: DivA, DivB, DivC, DivD, DivE Framework: LoanAppFW The LoanAppFW contains an “IsApproved” rule, that directly calls the “GetRating” rule. The requirements for GetRating are different for all five divisions. All work types use these rules. In a best-practice design, how many GetRating rules are there? (Choose One)
No, the correct answer is 6. As the requirement says GetRating are different for all five divisions, we need atleast 5 rules in the corresponding 5 Division classes to implement the 5 different requirements. But, I am not sure what goes in the GetRating rule present in the FW Class. Please correct me if I am wrong.
Sorry, my bad. I was looking at the wrong question (the one above).
The question states that the framework contains a rule IsApproved that calls the GetRating rule. The IsApproved rule won’t save unless we have a GetRating rule in the framework since the framework can’t see rules in the implementation layer. The GetRating rule in the framework will only be called when you run the framework, which is only done during development, or if you add a new division without a custom GetRating rule. It is therefore recommended to configure a default behaviour in the framework version.