in (ruleset parameter)

The in keyword defines a ruleset parameter.

Purpose

This keyword is used in a ruleset declaration to define an in ruleset parameter.

Context

Ruleset declarations

Syntax

ruleset rulesetName
 {
   [in typeName variableName;] 
   [inout typeName variableName;] 
   [out typeName variableName [= value];] 
  };

Description

Ruleset parameters are a simple way to exchange data between the application and the ruleset. Ruleset parameters are accessible from a rule, a function, or a task definition in the ruleset.

Rulesets support three types of parameters: in, inout, and out.

You cannot specify an initial value in the ruleset for the in and inout parameters because they are initialized by the IlrContext#setParameters(ilog.rules.engine.IlrParameterMap) method. However, you can initialize the out parameter.