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