Execution Strategy
Execution strategy allows you to change the outcome produced by the rule solver. There are several options for the execution strategy described below.
You can set the execution strategy in two ways:
Solver API → by adding the X-Strategy header (if not specified, the system defaults to the STANDARD strategy).
Test Bench → select the strategy from the dropdown.
Allowed Strategies per Rule Type
Not all strategies are supported for every rule type. If an unsupported strategy is selected, the system will automatically fall back to an allowed default strategy — STANDARD.
Decision Table
Standard, Array, First match, Evaluate all
Decision Tree
Standard, Array
Workflow
Standard
Scripting Rule
Standard, Array
Rule Flow
Standard, Array
List of execution strategies
Standard strategy (default)
Array strategy
First Match strategy
Evaluate All strategy - Available only in decision tables
You can easily set the execution strategy for solver API by adding the X-Strategy header. If the header is not specified, the system automatically chooses the STANDARD strategy.
X-Strategy
STANDARD
X-Strategy
ARRAY
X-Strategy
FIRST_MATCH
X-Strategy
EVALUATE_ALL

The distinct types of execution strategies are described below.
Standard (Default)
If 2 lines are matching the input, the output will be all the matching rows. The order will be the same as the order of rows in the rule.
The output looks like this:
[
{
"client": {
"segment": "affluent"
},
"profitability": 1
},
{
"client": {
"segment": "top affluent"
},
"profitability": 1.6
}
]
First match
If 2 lines are matching the input, the output is returning just the first matching line from the rule (table, script).
The output looks like this:
[
{
"client": {
"segment": "affluent"
},
"profitability": 1
}
]
Array
If 2 lines are matching the input, the outputs are returned in the array format.
The output looks like this:
[
{
"client": {
"segment": [
"affluent",
"top affluent"
]
},
"profitability": [
1,
1.6
]
}
]
Evaluate all
This execution strategy allows you to obtain satisfiability based on the input conditions of all rows in the decision table. If your decision table has N rows, the evaluation response will also be N objects. For each output, you will have an indication of whether the line was met or not.
The output can looks like this:
[
{
"client": {
"segment": "affluent"
},
"profitability": 1,
"_match": true
},
{
"client": {
"segment": "top affluent"
},
"profitability": 1.6,
"_match": false
}
]
Last updated