Define a hit policy and the completeness requirement

With the hit policy, you define how your decision table manages inputs that are handled by several rules and inputs for which no rules are defined. There are two types:

  • Single hit policies produce one result per input. Here, only one rule is applied at a time, even if several rules exist.

  • Multi hit policies produce an array of outputs. Here, all applicable rules are considered regardless of their position in the table. The resulting output can be a list or aggregated to a single value.

With the completeness requirement, you define whether your decision table is only valid if its rules consider all possible inputs. This means, a table is only valid if the modeler added rules for all input data. When checking the decision table with Verify, the completeness is checked as well.

Unique (single) is the default hit policy. Read more in section Hit policy types.

To select another hit policy for a decision table, follow these steps:

  1. In a DMN diagram, click in the decision element.

    The decision table opens.

  2. Click the letter in the upper left corner.

    The configuration dialog opens.

  3. Select the hit policy. Find details on each hit policy type below.

  4. In case of a multi hit policy, select the aggregation:

    • Collect (multiple)

    • Sum

    • Minimum

    • Maximum

    • Count

  5. Select the completeness requirement:

    • Complete: A complete decision table is only valid if it considers all possible inputs.

    • Incomplete: An incomplete decision table is valid even if it doesn't consider all possible inputs.

  6. Confirm with Save.

    The hit policy and completeness is set.

Hit policy types

Unique (single)

One input combination is covered by exactly one rule. It's assumed that all inputs are independent of each other, so any combination is possible. Overlapping rules are not allowed.

Unique (single) is the default hit policy. In the decision table, it's indicated with the letter U.

Any (single)

Multiple rules cover the same combination of input values. This overlap is only allowed if the rules also lead to the same result.

In the decision table, this hit policy is indicated with the letter A.

Priority (single)

Multiple rules can apply for one input value. The results are ordered according to their priority. The result with the highest priority is returned.

In the decision table, this hit policy is indicated with the letter P.

First (single)

Overlapping rules are allowed, but only the first applicable rule is used. As the rules are evaluated from top to bottom, you must sort the rules in the table.

In the decision table, this hit policy is indicated with the letter F.

Collect (multiple)

By default, the collect hit policy collects the outputs of matching rules, but can be configured to determine the sum, minimum, maximum, or count of matching outputs instead.

In the decision table, this hit policy is indicated with the letter C.

Output order (multiple)

Results are ordered by the priority of the output values.

In the decision table, this hit policy is indicated with the letter O.

Rule order (multiple)

Results are ordered by the order of matching rules.

In the decision table, this hit policy is indicated with the letter R.