Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 790 Bytes

brms.getRuleById.md

File metadata and controls

24 lines (18 loc) · 790 Bytes

brms.getRuleById

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.

Sample

var record = brms.getRuleById("ChineseFavorites", {
	"lessThan" : 30
}).sort("years", "asc");

API

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.