matchedclasses

The matchedclasses keyword specifies the classes on which the sequential execution mode is to be applied.

Purpose

Deprecated feature:

Deprecation icon 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.

In a rule task, this keyword is used to specify the classes to which the sequential execution mode applies.

Context

Rule task definitions

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

Use the matchedclasses and iterator keywords to configure the rule task when the rule engine execution mode is sequential. This execution mode needs to detect on which objects the rules execute 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 that follows the keyword is an 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.