The getRuleById
function is established to call a rule by Id from the BRMS of innorules. Its return is an instance of the Record
class.
var record = brms.getRuleById("ChineseFavorites", {
"lessThan" : 30
}).sort("years", "asc");
Calling |
Returning |
brms. getRuleById ( ruleId, params ) |
Record |
brms. getRuleById ( ruleId, params, ruleDate ) |
Record |
Parameters |
Type |
Description |
ruleId |
String |
The Id of a rule stored in BRMS. |
params |
JSON Object |
To send values which are required by the rule.
{"param1":value1,"param2":value2,...} |
ruleDate |
Date |
The calling date. Default is the system date. |