You can define a selection filter on a rule task to specify dynamically what rules of the rule task must execute.
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:
Dynamic BAL: Runs each time the task is called. The keyword used is 'the rule'.
Static BAL: Runs the first time the task is called. The keyword used is 'the rule'.
IRL: Defines a rule filter in IRL with "body = ...."
Refer to the IRL rule selection keywords dynamicselect, select, and scope for more information.
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.
In rule selection statements, the variable scope is restricted to ruleset parameters and variables. It does not include access to working memory.
To define runtime rule selection: