Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (23 loc) · 990 Bytes

brms.getRuleByAlias.md

File metadata and controls

28 lines (23 loc) · 990 Bytes

brms.getRuleByAlias

The getRuleByAlias function is established to call a rule by name from the BRMS of innorules. Its return is an instance of the Record class.

Sample

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

API

CallingReturning
brms . getRuleByAlias ( ruleAlias , params )Record
brms . getRuleByAlias ( ruleAlias , params , ruleDate )
ParametersTypeDescription
ruleAliasStringThe alias 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.