Skip to main content
DECISION TABLES

What is a decision table, and how do you make one from business rules?

Updated · By Adam Polak, founder

A decision table shows which outcome a decision gives for each combination of conditions: a column for each condition and outcome, and a row for each rule. To make one, list the conditions and their values, write a row for each combination with its outcome, and take every gap or conflict to the decision's owner; do it in a spreadsheet, model it in DMN with a tool such as Camunda, or run it in a rules engine such as Drools or InRule. When the rules are still in someone's head, ask that person yourself, or have RuleFoundry interview them and link each rule to where it was said.

The parts of a decision table

Decision Model and Notation (DMN), the Object Management Group's standard, names these parts; software testers (ISTQB) call inputs conditions and outputs actions.

  • Conditions (inputs). What the decision depends on, each with its values, such as days since delivery: 30 or fewer, 31 to 60, over 60.
  • Outcomes (outputs). What the decision gives: full refund, store credit or decline.
  • Rules (rows). Each row is one rule; it applies when a case matches every cell in it. “-” means any value.
  • Hit policy. What happens when several rows match a case. DMN's default, Unique, allows no overlap.
  • Annotations. Optional columns that don't change the result, such as each rule's source.

A decision table example, before and after

Four made-up returns rules, as a store's policy might state them, and the table they became once the policy's owner settled what it showed.

  • Rule A. An item returned 30 days or fewer after delivery gets a full refund.
  • Rule B. An item returned 31 to 60 days after delivery gets store credit.
  • Rule C. An opened item gets store credit.
  • Rule D. A final-sale item cannot be returned.
RuleFinal saleOpenedDays since deliveryOutcomeSource
1Yes--DeclineRule D
2NoNo30 or fewerFull refundRule A
3NoNo31 to 60Store creditRule B
4NoYes60 or fewerStore creditRule C; the owner chose it over rule A
5No-Over 60DeclineThe owner: a gap, and rule C's new limit

Under the Unique hit policy, each of the 12 possible cases (2 × 2 × 3) lands on exactly one row. Days count from delivery to the return request; opened means the seal is broken. What the table showed: a conflict (an opened item returned on day 10 fits rules A and C; the owner chose store credit), a gap (no rule covered an unopened item on day 75), an outcome nobody meant (rule C had no time limit; the owner set 60 days) and an exception that wins (rule D overlaps every rule, so rows 2 to 5 say “No” under final sale). For conflicts across a whole set of rules, see finding conflicting or missing business rules.

Decision table vs decision tree vs if/else code vs a list of rules

The four forms often follow each other: sentences from the expert, a table to check them, then code or a DMN model to run them.

FormGood forWeak at
Decision tableConditions that combine; seeing that every case has one answer.Steps in sequence, and many conditions at once: split the decision into sub-decisions, each with its own table (DMN links them in a decision requirements diagram).
Decision treeWalking someone through a decision step by step.It grows with each condition, sub-branches repeat, and it's hard to see whether similar cases on different branches get the same outcome.
If/else codeRunning the decision in one system.Most owners can't read it, and branch order settles overlaps silently.
A list of rulesCapturing rules as the expert says them.Two sentences can both apply, or neither, unnoticed.

A decision tree here is a diagram of questions people follow, not the machine-learning model.

Decision table testing

Decision table testing is a black-box technique in the ISTQB Foundation Level syllabus (CTFL v4.0.1). Build the table with the steps below, then draw each rule as a column: conditions marked T (true), F (false), “–” (irrelevant) or N/A (infeasible), and X for an action that should occur. The returns table is extended-entry, as its days take ranges. Coverage is exercised columns divided by feasible columns: five tests, one for each row, cover the simplified table; all 12 combinations take 12.

How to make a decision table from business rules

On paper or in a spreadsheet, one decision at a time.

  1. 1

    List the conditions and their values

    Write down what each rule tests and the values it can take, in the business's units: days since delivery, opened or not, final sale or not. Say exactly what each term means.

  2. 2

    Make the ranges complete and non-overlapping

    Every value should fall in exactly one range: 30 or fewer, 31 to 60, over 60. “Under 30 days” and “over 30 days” both leave day 30 out; “within 30 days” doesn't say whether it counts from purchase or delivery. DMN asks for input values that are exclusive and complete.

  3. 3

    Fill in the rows

    Multiply the values to count the combinations (2 × 2 × 3 = 12 here) and write a row for each, with its outcome and the rule that gives it.

  4. 4

    Check for gaps and overlaps

    A row no rule covers is a gap; a row where two rules give different outcomes is a conflict. Write each as a question for the owner; don't answer it yourself.

  5. 5

    Simplify with “any” (-)

    Where rows share an outcome and differ in one condition only, merge them: with “-” when they cover every value of that condition (six final-sale rows become row 1), or with a wider range when they cover only some (row 4's “60 or fewer”). Then check that no merged row overlaps another.

  6. 6

    Get the owner's sign-off

    Take the table and its open questions to the decision's owner and try it on a few real, recent cases. Note who signed it off, and when.

DMN decision tables: hit policies, FEEL, and when DMN is worth it

The Object Management Group's site describes DMN as a modeling language and notation for the precise specification of business decisions and business rules; 1.6 is the current formal version. DMN has two layers: a decision requirements diagram (DRD) that links a decision to its sub-decisions, input data and knowledge sources, and each decision's logic, often a decision table. For a tool to run a table, its cells are usually written in FEEL, DMN's default expression language. The returns table in FEEL, with the hit policy's letter top left:U Final sale Opened Days Outcome 1 true - - "Decline" 2 false false <= 30 "Full refund" 3 false false [31..60] "Store credit" 4 false true <= 60 "Store credit" 5 false - > 60 "Decline"DMN is worth it when the table must run in software or be maintained by several teams; to agree a policy with its owner, a spreadsheet usually does. The hit policies:

Hit policyLetterWhen several rows matchUse it for
UniqueUNot allowed; the default.One answer per case, like returns.
AnyAAllowed if all give the same outcome.Overlapping rows that agree.
PriorityPReturns the one whose outcome ranks highest in the ordered outcome list.Ranked outcomes, such as decline before approve.
FirstFReturns the first, in row order.Rarely: the spec says First tables are not good practice.
Output orderOReturns all outcomes, in priority order.Lists sorted by importance.
Rule orderRReturns all outcomes, in row order.Messages or reasons in a fixed order.
CollectCReturns all outcomes, or with C+, C<, C> or C# their sum, minimum, maximum or count.Totals, such as scores or fees.

Unique, Any, Priority and First return one row; the rest can return several. Tools may support only some: Camunda's documentation lists Unique (its default), Any, First, Rule order and Collect.

A blank decision table template

Copy it into a document or a Markdown editor, or make each column a spreadsheet column.

Template

DECISION TABLE: <the decision, e.g. the outcome of a return>
Owner: <name>    Signed off: <name, date>
Hit policy: Unique (each case matches exactly one row)

CONDITIONS (one column each; values complete, none overlapping)
<Condition 1>: <value> | <value> | <value>
<Condition 2>: <value> | <value>
<Condition 3>: <value> | <value>
Combinations: <3> x <2> x <2> = <12>

TERMS
<term>: <exact meaning, with its number and unit>

RULES ("-" means any value)
| # | <Condition 1> | <Condition 2> | <Condition 3> | <Outcome> | Source |
|---|---------------|---------------|---------------|-----------|--------|
| 1 |               |               |               |           |        |
| 2 |               |               |               |           |        |
| 3 |               |               |               |           |        |

OPEN QUESTIONS (gaps and conflicts, for the owner)
Q1. <the combination>: <the gap or the conflicting rules>
    Answer: <the owner's answer, date>

Fill in a row for every combination before you simplify. For rules to start from, and another worked table (a discount approval), see business rules examples and how to write them.

Where RuleFoundry fits

A table only holds rules someone has stated. When they are still in the expert's head, RuleFoundry interviews that person, pins down vague terms like “usually” or “large order”, and follows each exception until the rule is clear. The table and the sign-off stay with you.

  • The conditions, from the person who knows

    Be interviewed yourself, by voice or text, or have RuleFoundry email the expert a link to talk it through in the web app; your own interview can also run in a panel beside the chat in ChatGPT on the web. An interview runs 10 to 60 minutes; the default is 20.

  • A source for every row

    Each rule cites the transcript lines it came from, so each row can name its source. Rules stay tentative until the expert confirms them.

  • Open questions become the table's gaps

    What the expert did not settle is listed as an open question rather than filled in, so a missing row stays visibly missing.

  • Both sides of a conflict

    Keep the interviews and recordings about one decision in a Project. When two sources disagree, it keeps both statements and picks neither, for the owner to settle.

RuleFoundry keeps a rule only after checking that the lines it cites say it. See turning expert interviews into business rules, what a result contains and the facts page for limits and prices.

See it run

The walkthrough film shows an interview inside ChatGPT. To get the rules for one of your own tables, sign up and choose From me, or add RuleFoundry to ChatGPT (how) and say:

Use RuleFoundry to interview me about how we decide whether a customer return gets a full refund, store credit or nothing.

When something else fits better

  • Camunda, to model a DMN table and run it in a process. Camunda's documentation describes Camunda Hub (in the browser) and Desktop Modeler for BPMN, DMN and forms; its site says a decision engine like Camunda executes decision tables directly.
  • A spreadsheet, when the table is for people to agree on, not for software to run. Do step 4 by hand.
  • A rules engine such as Drools or InRule, to run the table in your software. The Apache KIE (incubating) site describes the Drools DMN engine as an open source Java implementation that checks decision tables for gaps and overlaps; InRule's site describes a decision automation platform for mission-critical applications, and its documentation says irAuthor Web flags a table's overlaps and gaps.
  • RuleFoundry, when the rules are still in people's heads and need asking for, each written down with where it was said, before anyone lays them out as rows.

Descriptions of DMN, ISTQB and other products come from their own sites, documentation and specifications, checked on 2026-11-30. The returns rules are made up.

Questions people ask

Is a decision table the same as a decision matrix?
Usually not: a decision matrix most often scores options against weighted criteria. In Salesforce's Business Rules Engine both are lookup tables; Trailhead describes decision matrices as having user-defined columns, and decision tables as reading Salesforce objects.
Is there a decision table generator?
InRule's documentation describes generating missing combinations, and ChatGPT, Claude or a coding agent can draft a table from rule sentences, such as the rules it reads through RuleFoundry's MCP server. None knows your rules: each outcome needs a source or the owner's answer.
Is what I tell RuleFoundry used to train models?
No. RuleFoundry does not use customer content to train models; only members of your workspace can read a Project's knowledge base.
What does RuleFoundry cost?
Your first Extraction (one interview or recording) is free; Personal is $20 a month for unlimited Extractions, and Team is $20 per active member a month with a two-seat minimum.

Related: business rules examples and how to write them, finding conflicting or missing business rules, what an edge case is and how to find them, turning expert interviews into business rules, claims adjudication: the steps and the rules behind each, acceptance criteria examples, written from business rules, event storming, from policy stickies to business rules, facts about RuleFoundry.

What changed: 2026-11-30, first version.

Try it on one process

Your first Extraction is free.