Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 976 Bytes

brms.getRuleById.md

File metadata and controls

33 lines (25 loc) · 976 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

CallingReturning
brms . getRuleById ( ruleId , params )Record
brms . getRuleById ( ruleId , params , ruleDate )
ParametersTypeDescription
ruleIdStringThe Id of a rule stored in BRMS.
paramsJSON Object To send values which is requried by the rule.
{"param1":value1,"param2":value2,...}
ruleDateDateThe calling date. Default is the system date.