(Deprecated) iterator
The iterator keyword specifies the iterator
for the objects on which the sequential execution mode is to be applied.
Purpose
iterator and matchedclasses keywords and
ilrTupleIterator interface in the sequential algorithm are deprecated as of
V8.6.0.0. These features will be removed in a future release. See Deprecated and removed features for migration details.
This keyword is used to specify in a rule task the iterator of objects when the execution mode is sequential.
Context
Rule task definitions
Syntax
ruletask ruleTaskName
{
algorithm = sequential;
iterator = value;
matchedclasses = matchedClasses
};
Description
Use the matchedclasses and iterator keywords
to configure the rule task when the rule engine execution mode is
sequential. because this execution mode does not use the working memory,
it needs to detect on which objects the rules are executed. 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 that follows the keyword is the object whose class implements
the IlrTupleIterator interface. This
iterator provides the tuples of objects on which the sequential execution
mode applies. 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 of a
type that implements the java.util.Collection package.
This collection object contains the references to IlrClass objects.