Summary
The keyword in a ruleset declaration to declare class instances. This keyword is used at the top level of the ruleset.
Syntax
ruleset rulesetName
{
instances (className) = value|{value1,...,valuen};
};
Description
Class instances allow the user to declare on which instances for a specified class the rule engine will work on instead of looking for objects of this class in the working memory. There are two ways to define class instances:
-
Give a value whose type implements
java.util.Collection. This collection contains the objects of the specified class on which the rule engine will work.
-
Specify explicitly the instances used by the engine. Values are given to compute these instances. The value type is derived from the specified class.
See Also
ruleset