"Hit Policy: Any" using the Decision Table, tblPolicyAny
The tblPolicyAny decision table returns the loan compliance for an individual given their credit rating, current card balance, and current student loan balance.
This table uses three input parameters, creditRating, creditCardBalance and studentLoanBalance, and one output parameter, loanCompliance.
{
decisionTables: {
"tblPolicyAny": {
inputs: ["creditRating", "creditCardBalance", "studentLoanBalance"],
outputs: ["loanCompliance"],
hitPolicy: "A",
rules: [
["A", "<10000", "<50000", "compliant"],
["Not(A)", "-", "-", "not compl"],
["-", ">=10000", "-", "not compl"],
["-", "-", ">=50000", "not compl"]
]
}
},
formulas: {
"Any": { formula: "tblPolicyAny(,,'B', 12000, 75000)", finalValue: [] }
}
}
Given the input data, passed to the RASON server within the formulas section, of creditRating = B, creditCardBalance = 12,000 and studentLoanBalance = 75,000, all rules except for rule 1 are evaluated successfully for a "hit". However, since the result collection only includes 1 "not compl" entry, "not compl" is returned. If there had been more than 1 result in the result collection, say "not compl" and "compliant", an error would have been returned from the RASON Server.
"Any": { "value": "not compl"},
|