Reference > Rule Languages > ILOG Rule Language > IRL Keywords > in (Ruleset Parameter)

Summary

The keyword in a ruleset declaration to define an in ruleset parameter.

Syntax

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

Description

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

There are three types of ruleset parameters: in, inout, and out.

The in and inout ruleset parameters cannot have an initial value specified in the ruleset. Their initialization is done through the API IlrContext.setParameters(IlrParameterMap). The out ruleset parameters can be initialized in the ruleset.

See Also

ruleset