filter
The
filter keyword defines an agenda filter.
Purpose
This keyword is used to define the
filter of an agendafilter in a rule task.
Context
Rule task definitions
Syntax
ruletask ruleTaskName
{
agendafilter = filter (variableName)
{
action1
...
actionn
}
};
Description
This format presents a way to
define an agenda filter in the rule task. In this case, you write
the code of the agenda filter within the task definition. Such code
is similar to an IRL function with an IlrRuleInstance parameter and
a Boolean return type. The (variableName) placeholder
represents this IlrRuleInstance object. The inline
code of the agenda filter can hold a reference to it. Ruleset variables
are accessible from the agenda filter code. This agenda filter is
applied to each instance of the rules that compose the task body.
Only the instance for which the agenda filter returns true is
executed. Others are not.