Introduction to RASON
About RASON Models and the RASON Server
Rason Subscriptions
Rason Web IDE
Creating and Running a Decision Flow
Defining Your Optimization Model
Defining Your Simulation Model
Performing Sensitivity Analysis
Defining Your Stochastic Optimization Model
Defining Your Data Science Model
Defining Custom Types
Defining Custom Functions
Defining Your Decision Table
Defining Contexts
Using the REST API
REST API Quick Call Endpoints
REST API Endpoints
Decision Flow REST API Endpoints
OData Endpoints
OData Service for Decision Flows
Creating Your Own Application
Using Arrays, For, Loops and Tables
Organization Accounts

"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"},

Back to Decision Table Hit Policies