Rule Builder > Ruleset Parameters > Working With Ruleset Parameters > Executing a Ruleset that Contains Parameters

The execution of a ruleset from the Rule Builder creates a new environment. The editing (design) world and the execution world are separate. If you change the properties of a parameter in the editing world, it does not change the parameter in the execution world. The new values are only taken into account the next time the ruleset is executed.

In the execution world (that is, at runtime), rules, functions, and tasks can change the value of a parameter. In the action part of the rule, you set the new value for a parameter in the same way as you set a value for an attribute. For example in BAL, for a parameter parameter with the type int you could set:

set Parameter to 2

An example is shown in Figure 15.4:

images/parameter_inruleeditor.png

Figure 15.4    Setting Ruleset Parameter Values in the Rule Builder

When you test the execution of a ruleset that contains ruleset parameters, the values of the input parameters can be set using the Execution tab of the Options dialog box. This dialog box can either be accessed before execution or, if the "Display parameters before executing" option is active, is automatically displayed when you execute the ruleset.

To access the dialog box before execution:

The Execution tab enables you to specify the parameter input values in the Value field, see Figure 15.5.

images/execution_dialog.png

Figure 15.5    Inputting Parameter Values

See Also

Setting Ruleset Parameter Values | Introduction to Ruleset Parameters | Adding Parameters to a Query | Ruleset Parameter Properties


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT