An application developer completed initial development on a classic rule project and now opens the Rule Analysis view in Rule Designer to analyze the rule project for consistency.
The rule project contains a package with the following rule named Set Package Loan Type:
definitions set 'my customer1 to a customer in 'the customers' ; if the loan type requested of 'my customer' is one of { "A" , "B" } then set the loan type of 'the package' to "Type " + the loan type requested of 'my customer' ; When the rule analysis report returns, the results include the following identified problem:
Several executions of rule 'Set Package Loan Type' are conflicting.
For instance, when:
then the loan type of the package is set to "Type " + "A" in the first execution of the rule 'Set Package Loan Type' and to "Type " + "B" in the second execution of the rule 'Set Package Loan Type' How should the application developer resolve the self-conflicting rule without causing additional rule conflict(s)?
A. Utilize the HrvocabularyMergeConf lictHandler API to merge the customer objects into one so there is no conflict at runtime.
B. Redefine the rule project's ruleset parameter to be a single customer verbalized as my customer' and remove the definition part from the rule.
C. Include the complete domain for the loan type requested in the condition of the rule as follows: the loan type requested of 'my customer1 is one of { "A" , "B" , "C" , "D" }.
D. Split the rule into two rules with one rule using condition if the loan type requested of my customer1 is "A" and action then set the loan type of 'the package" to "Type A", and follow the same pattern in the second rule using "B" and "Type B".
Answer: D
No comments:
Post a Comment
Note: only a member of this blog may post a comment.