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.

How to Set Execution Strategy

You can set the execution strategy in two ways:

  • Solver API → by adding the appropriate HTTP header.

  • Test Bench → select the strategy from the dropdown.

Options for Decision Table
Options for Lookup Table

Allowed Strategies per Rule Type

Rule Type
Allowed Strategies

Decision Table

Standard, Array, First Match, Evaluate All

Decision Tree

Standard, Array

Scripting Rule

Standard, Array

Rule Flow

Standard, Array

Decision Flow + Integration Flow

Standard

Lookup Table

Lookup Exists, Lookup Value

Setting Strategy via API

Standard Rules Header

For all rule types except Lookup Tables, use the X-Strategy header to set the execution strategy:

HTTP Header
Possible value

X-Strategy

STANDARD

X-Strategy

ARRAY

X-Strategy

FIRST_MATCH

X-Strategy

EVALUATE_ALL

circle-exclamation

Lookup Table Header

Lookup Tables use a dedicated header X-Lookup-Method instead of X-Strategy :

HTTP Header
Possible value

X-Lookup-Method

LOOKUP_VALUE

X-Lookup-Method

LOOKUP_EXISTS

circle-exclamation

Strategy Behavior

Standard

Returns all matching rows in the same order as they appear in the rule.

If 2 rows are matching the input, the output will contain all matching rows:

Useful for:

  • Getting all possible matches for a given input.

  • Scenarios where multiple rules can apply simultaneously.

First Match

Returns only the first matching row from the rule. Evaluation stops after the first match is found.

If 2 rows are matching the input, only the first match is returned:

Useful for:

  • Priority-based rules where order matters.

  • Decision scenarios where only one outcome should apply.

circle-info

Available for Decision Tables only.

Array

Returns all matching outputs merged into a single object where each output field contains an array of all matched values.

If 2 rows are matching the input, the outputs are returned in array format:

Useful for:

  • Aggregating multiple matching results into a single response.

  • Building lists of applicable values from multiple matches.

Evaluate All

Returns a result for every row in the table regardless of whether it matched or not. Each result includes a _match field indicating whether that row was satisfied by the input.

Useful for:

  • Auditing and compliance - see which rules applied and which didn't.

  • Debugging complex tables with many conditions.

  • Satisfiability analysis across all rows - table has N rows, the response will contain N objects.

circle-info

Available for Decision Tables only.

Lookup Value

Returns the value found in the Lookup Table that match the input. This is the standard way to retrieve data from a Lookup Table.

Useful for:

  • Retrieving actual data stored in the Lookup Table.

  • Any scenario where you need the actual stored value.

For detailed information with examples see Lookup Value function.

circle-info

Available for Lookup Table only.

Lookup Exists

Returns a boolean indicating whether a matching record exists in the Lookup Table, without returning the actual value.

Useful for:

  • Validating if a value is in an allowed list.

  • Checking membership (e.g., is this customer in the VIP list?).

  • Input validation before processing.

  • Blacklist/whitelist verification.

For detailed information with examples see Lookup Exist function.

circle-info

Available for Lookup Table only.

Last updated

Was this helpful?