Summary
The keyword used to specify the classes on which the sequential execution mode is to be applied in a rule task. This keyword is used in the ruletask definition.
Syntax
ruletask ruleTaskName
{
algorithm = sequential;
[iterator = value;]
matchedclasses = matchedClasses
};
where matchedClasses is given a value in one of two ways:
matchedclasses = {class1, class2, ..., classn}
matchedclasses = value;
Description
The matchedclasses and iterator keywords are used to configure the rule task when the rule engine execution mode is sequential. This execution mode needs to know on which objects the rules will be fired because it does not use the working memory. These objects are given to the engine by tuples. The tuples can be either inferred from the working memory or specified through the iterator keyword. The value following the keyword is the instantiation of an object whose class implements the ilog.rules.engine.IlrTupleIterator interface. This iterator provides the tuples of objects on which the sequential execution mode will be applied. In this case it is necessary to indicate how the tuples are formed, that is, the type of the objects that compose the tuple. This information is given as the value of the matchedclasses keyword. There are two ways to define the matched classes, either by giving the explicit list of classes names or by referencing a value whose type implements java.util.Collection. This collection object contains the references to ilog.rules.bom.IlrClass objects.
See Also
ruletask