Reference tables of configuration properties

A complete list of engine configuration properties and their descriptions.

This table gives you access to the details of configuration properties.

Property Brief description
Autoboxing Specifies whether you can get automatic conversion to and from primitive data types and their corresponding wrapper classes.
Character set encoding Indicates the character set encoding to create Java™ readers and writers from byte streams.
Date literals Defines the format for date literals in the rule properties.
Default locale Provides the default locale used, for example, to format date literals. By default, the current locale of the system is used.
Deprecation warnings deselection Indicates whether to issue deprecation warnings.
DoubleModeForLiterals setting Specifies whether real constants are shown as Java floats or as double.
EnableGenerics setting In the context of executing rules, specifies whether you get generic classes and methods or not.
Hasher activation Controls whether to activate the hashers for rulesets that are built with the classic rule engine.
JIT activation Indicates whether to apply Just-In-Time compilation to a ruleset that is built with the classic rule engine.
Rete sharing Detects similar tests in the rule conditions of a ruleset that is built with the classic rule engine. This behavior reduces memory usage and speeds up the matching algorithm.
Static agenda selection Indicates whether to use a static agenda on a ruleset that is built with the classic rule engine.

Autoboxing

This property relates to data types. It specifies whether you get automatic conversion to and from primitive data types and their corresponding wrapper classes. By default, this property is true. If you set it to false, data handling is done as in earlier product versions.

Table 1.
Property Description
Name ilog.rules.engine.autoboxing
Type boolean
Default true
Category Public property
Example node ilog.rules.engine { element autoboxing = false; };

Character set encoding

This property indicates what character set encoding method is applied to create Java readers and writers from byte streams. This parameter applies whenever the engine API does not provide explicit encoding. By default, the parameter is not defined and the current default encoding of the system applies.

Property Description
Name ilog.rules.engine.encoding
Type String
Default Not defined
Category Static property
Example node ilog.rules.engine { element encoding = "gbk"; // a chinese encoding };

Date literals

This property defines the format for date literals in rule properties. The format is compliant with the documentation of the java.text.SimpleDateFormat API. It uses only numbers and starts with the month. The hours are specified in the 24-hour format. For example, java.util.Date("6/28/2001 15:30") is compliant with the default format.

If the format is "M/d/yyyy", then this literal works: java.util.Date("6/28/2001").

Property Description
Name ilog.rules.engine.dateFormat
Type String
Default "M/d/yyyy H:mm"
Category Static property
Example node ilog.rules.engine { element dateFormat = "M/d/yyyy"; }

Default locale

This property provides the default locale used under certain circumstances, for example, for the formatting of date literals. By default, this property is not defined and the current locale of the system is used. If you define this property, the value is a string that must be equal to the toString method call of the required locale. All the locales of the system are retrieved using the Locale.getAvailableLocales method and for each of them, the toString method is called and compared to the value provided. The method returns the first locale that matches the value. Consequently, the internal code of the engine uses the default locale whenever it needs a locale.

Property Description
Name ilog.rules.engine.locale
Type String
Default Not defined
Category Static property
Example node ilog.rules.engine { element locale = "fr_FR_EURO"; };

Deprecation warnings deselection

This property indicates whether deprecation warnings are issued.

Property Description
Name ilog.rules.engine.deprecationWarnings
Type boolean
Default true
Category Public property
Example node ilog.rules.engine { element deprecationWarnings = false; };

DoubleModeForLiterals setting

This property specifies whether real constants are shown as Java floats (the default) or as double (as is done in Java).

Property Description
Name ilog.rules.engine.doubleModeForLiterals
Type boolean
Default false
Category Public property
Example node ilog.rules.engine { element doubleModeForLiterals = true; };

EnableGenerics setting

This property relates to rule execution. It specifies whether you get generic classes and methods in your execution object model. By default, this property is set to true. If you set it to false, Java classes are imported into the XOM, as was the case with earlier versions of Java.

Property Description
Name ilog.rules.engine.enableGenerics
Type boolean
Default true
Category Public property
Example node ilog.rules.engine { element enableGenerics = false; };

Hasher activation

This property can be set for rulesets that are built with the classic rule engine. The property controls whether the hashers must be activated for the conditions that match these class instances.

Property Description
Name <packageName>.<className>.useHashers
Type boolean
Default false
Category Private class property
Example node com.mypackage.MyClass { element useHashers = true; };

JIT activation

This property indicates whether to apply Just-In-Time compilation to a ruleset that is built with the classic rule engine. You must set the system property ilog.rules.engine.config.file to a value that represents the name of the file to be loaded.

Property Description
Name ilog.rules.engine.useJIT
Type boolean
Default Not defined
Category Static property
Example
node ilog.rules.engine {    element useJIT = true; }

Rete sharing

The Rete sharing mechanism is an essential feature of the RetePlus algorithm. Its purpose is to detect similar tests in the rule conditions of a ruleset that is built with the classic rule engine. By default, Rete sharing is turned on. It reduces memory usage and speeds up the matching algorithm.

However, use Rete sharing with caution because it can be time-consuming at rule compilation time. If you are an expert of the RetePlus algorithm and you know that the tests in your conditions are not shared, you can reduce the time used to compute the sharing by turning off the Rete sharing property.

Property Description
Name ilog.rules.engine.useReteSharing
Type boolean
Default true
Category Static property
Example
node ilog.rules.engine {   element useReteSharing = false; };

Static agenda selection

This property indicates whether to use a static agenda on a ruleset that is built with the classic rule engine. You can use this property only when no rule of the ruleset has been assigned a dynamic priority.

Property Description
Name ilog.rules.engine.useStaticAgenda
Type boolean
Default false
Category Public property
Example
node ilog.rules.engine {    element useStaticAgenda = true; }

Use of equals for the hashers

By default, only the equality tests (using ==) in rule conditions are used to compute the hashers. However, the class instances for which equality is managed by the Java equals method can use this property to turn on the hashing algorithms, based on the equals method. If you set this property to true, you indicate to the optimizer that the specified class defines the equals and hashCode methods properly and that the rule tests involving the equals method should be considered for optimization.

Property Description
Name <packageName>.<className>.useEquals
Type boolean
Default false
Category Public final class property
Example
node com.mypackage.MyClass {   element useEquals = true; };