public class IlrPackageFilter extends java.lang.Object implements IlrAgendaFilter, java.io.Serializable
This class implements an agenda filter that tests whether a rule belongs to a package. The test is done on the rule name. If the rule belongs to the package, it is fired. Otherwise, it is not fired.
| Constructor and Description |
|---|
IlrPackageFilter(java.lang.String packageName)
Creates an
IlrPackageFilter using a package name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
toFire(IlrRuleInstance instance)
Tests whether a rule instance is to be fired.
|
public IlrPackageFilter(java.lang.String packageName)
Creates an IlrPackageFilter using a package name. This object will
filter the rule instances that belong to the specified package.
packageName - The package name of the rule instances to fire.public boolean toFire(IlrRuleInstance instance)
Tests whether a rule instance is to be fired. The filter tests whether the rule's package name is the same as the package name of this filter.
For example, the rule name ilog.rules.bizrules.rule1
matches the package name ilog.rules.bizrules.
toFire in interface IlrAgendaFilterinstance - The rule instance to be filtered.true if the rule belongs to the package specified in the filter
constructor, and false otherwise.© Copyright IBM Corp. 1987, 2017