Selecting rules at run time

You can define a selection filter on a rule task to specify dynamically what rules of the rule task must execute.

About this task

You use runtime rule selection to specify dynamically the rules you want to include in each task in a ruleflow.

You define runtime rule selection by selecting a rule task and using the Rule Selection tab in the Properties view. You can specify a filter:

The filter is applied at run time and the rule engine only evaluates the rules that pass through the filter.

In the decision engine for zRule Execution Server for z/OS®, there is no difference between the dynamic BAL and static BAL filters. The static BAL filter has the same behavior as the dynamic BAL filter and runs each time the task is called.

Note:

In rule selection statements, the variable scope is restricted to ruleset parameters and variables. It does not include access to working memory.

Procedure

To define runtime rule selection:

  1. In the ruleflow diagram, click the rule task that you want to edit.
  2. In the Properties view, click the Rule Selection tab.

    Rules can be referenced using Dynamic BAL, Static BAL, or with IRL.

  3. Type the conditions of the filter. For example:
    Static BAL in runtime selection
  4. Save the ruleflow (Ctrl+S).