"Hit Policy: Rule Order" using tblPolicyRuleOrder
This decision table returns the amount of funding available to a student based on their grade point average and number of times they took the ACT.
Funds may be provided via a scholarship, loan, or work study program. The "Rule Order" Hit policy returns the collection of results as created in
rule order.
This decision table has three input parameters, gpa, act_count and honor_member, and two output parameters, eligibility and rule. Notice that
this decision table also has input and output values. The input values are number, number and Boolean and pertain to the input parameters, gpa,
act_count and honor_member respectively. The two output values are both "text" and pertain to both output parameters. Recall that input and
output values specify the input and output type such as number or text.
{decisionTables: {
"tblPolicyRuleOrder": {
inputs: ["gpa", "act_count", "honor_member"], outputs: ["eligibility", "rule"],
refTypes: ["number", "number", "boolean", "text", "text"],
hitPolicy: "R",
rules: [
[">3.5", ">=4", true, "20% scholar", "r1"],
[">3.0", "-", true, "30% loan", "r2"],
[">3.0", ">=2", false, "20% work", "r3"],
["<=3.0", "-", "-", "20% work", "r4"]
]
}
},
formulas: {
"Rule_Order": { formula: "tblPolicyRuleOrder('eligibility',, 3.6, 4, TRUE)", finalValue: [] }
}
}
Given an honor student with a gpa = 3.6 taking the ACT for the 4th time (see the formulas section above), this student would be eligible to
receive a scholarship covering 20% of tuition (rule 1) and a student loan covering 30% of tuition (rule 2). Rules 3 and 4 are not applicable
because the student is an honor student (honor_member = TRUE) and the student's GPA is greater than 3.0.
"Rule_Order": { "value": ["20% scholar", "30% loan"] }
|