algorithm

The algorithm keyword defines an execution mode.

Purpose

This key is used to define an execution mode for a rule task, either RetePlus, sequential, or Fastpath.

Context

Rule task definitions

Syntax

ruletask ruleTaskName 
{
    algorithm = default|sequential; 
};  

Description

The value that follows the algorithm keyword indicates which execution mode is used to run the rules in that rule task. You can apply one of the following execution modes to rule tasks:

  • The RetePlus mode: default

  • The sequential mode: sequential

  • The Fastpath mode: Set the algorithm property to sequential and the custom property ilog.rules.engine.sequential.fastpath to true. For example:

    ruletask R1
    {
       property ilog.rules.engine.sequential.fastpath = true;
       algorithm = sequential;
    };