Turning off the asynchronous mode

By default, rulesets are parsed asynchronously. You can modify the default behavior.

About this task

The default behavior ensures that a ruleset that has not already been parsed can be executed based on its previous version if such previous version exists in the cache.

You can change this default behavior by turning off the asynchronousRulesetParsing property. Turning this property off alters the behavior of the execution unit (XU) to execute the last deployed ruleset version.

Note:

This is a global property of the execution unit that affects all ruleset executions.

Procedure

To change the XU for ruleset parsing:

  1. Open the RAR deployment descriptor in any text or XML editor.
  2. Locate the property name <config-property-name>asynchronousRulesetParsing</config-property-name>.
  3. Replace the default value of:

    <config-property-value>true</config-property-value>

    with:

    <config-property-value>false</config-property-value>

  4. Save the deployment descriptor.
  5. Restart the application server.

Results

When a ruleset is updated and this property is set to false, the next ruleset execution parses the new ruleset. This behavior prevents the use of an old ruleset by all ruleset executions until the ruleset parsing is finished.