Skip to Content
Flower BPM 3.8.0 is released 🎉 See what's new
DocsGuidesDecide with Decision Tables (DMN)
Guides· 10 min read· Updated November 2026

Decide with Decision Tables (DMN)

Some decisions in a process are rules, not judgment: which discount a customer gets, who has to approve a purchase of this size, which team handles a complaint of this kind. You can write such a rule as conditions at a gateway. When the rule grows, or several processes need the same rule, keep it as a decision: a decision table in DMN, a model of its own next to your BPMN models.

A business rule task of a process calls the decision. When the process reaches the task, Flower BPM evaluates the decision with the data of the process instance and keeps the result. A gateway after the task takes the path of the result.

📖

Reference: what DMN, the decision requirements diagram, decision tables, hit policies and FEEL are in general, and which DMN elements Flower BPM evaluates, is in the DMN Reference.

What a decision table is, how you build it in the DMN modeler, and how a business rule task evaluates it and an exclusive gateway routes on the result (Advanced).
💎

Editions: everybody can create, model, version and evaluate decisions. Running them in a process is part of Flower BPM Advanced on Jira Cloud and is included on Jira Data Center. On Standard (also on the free tier), a 30-day preview for the site starts with the first decision you pick at a business rule task, or with the first run of a process instance whose model calls a decision, whichever comes first. When the preview or the Advanced edition (or its trial) ends, process instances that are already running are not affected: they keep evaluating their decisions until they end, also in loops, always with the latest published version. Only process instances created after the end pass their business rule tasks without a result: the value under the result name is empty, and the process instance gets a warning comment. The moment that counts is when Jira created the work item of the process instance. When the site has Advanced again, every process instance decides again. See Editions.

What a Decision Is

A decision is a Jira work item of the work type of your models, like a BPMN model. It holds:

  • the DMN of the decision: one or more decisions, each a decision table or a literal expression (a single FEEL expression), and the diagram that connects them (the DRD, decision requirements diagram);
  • the draft you edit and the published versions, each with the date and the person who published it.

The repository shows decisions as cards next to the models, with the diagram of the latest published version. The filter above the cards shows All, BPMN models or Decisions (DMN); the label filter and the archive work for decisions as for models.

Create a Decision

  1. In the repository, choose Create Model and the tab Decision (DMN), or Create decision (DMN) in the menu ⋯ (more) next to it.
  2. Enter a name. Space and work type are the ones of your models (you can change them under Show advanced options).
  3. Start with an empty decision table (hit policy Unique, one input without an expression, one output result), or import a .dmn or .xml file in DMN 1.3 (for example from Camunda Modeler). A file in another DMN version, or one that is no DMN, is refused before anything is created.

The first version is published at once, so a business rule task can call the decision right away.

Write the Rules

The DMN modeler opens with the diagram (DRD). The icon at the top left of a decision opens its table.

Part of the tableWhat you writeExample
Input (column header)The value the rules compare, an expression on the process instancepi.fields.priority.name
Input cellA test of that value"High", >= 1000, [1..10], "A", "B", not("X"), - (anything)
Output (column header)The name of the resultpercent
Output cellThe value of the result10, "gold", true
Hit policyHow many rules may fit, and what happens thenUnique, First, Collect

The cells are written in FEEL, the expression language of DMN (see FEEL). Type pi. or cur. and the type-ahead proposes the fields of the process instance or the work item; Ctrl+Space shows all proposals. The question mark above the table explains the syntax.

The names you can use:

NameWhat it is
piThe process instance that calls the decision: pi.fields.summary, pi.fields.priority.name, pi.fields.customfield_10010
curThe work item that continued the process (the one resolved before the business rule task)
parThe calling process instance, in a sub-process
modelThe model work item
pi.decisions.<name>The results of decisions that ran earlier in the same process instance

Hit policies

More examples and when to use which: Hit Policies.

Hit policyMeaning
Unique (U)At most one rule may fit. Two or more is an error; none gives an empty result (null).
First (F)The first rule that fits, from the top.
Any (A)Several may fit if they give the same result.
Priority (P)The rule whose output comes first in the output values.
Output order (O)All results, ordered by the output values.
Rule order (R)All results, in the order of the rules.
Collect (C)All results; with +, <, > or # their sum, minimum, maximum or count.
💡

Add a last rule with - in every input cell for “anything else” and use the hit policy First: then a decision always has a result.

Try It: Evaluate

Evaluate runs the decision once in the modeler, with values you give it. It evaluates what is in the modeler now (the draft), not the published version, with the names built as a business rule task builds them (also pi.summary for pi.fields.summary, and pi.decisions). Nothing is saved and no process changes; the values you enter stay while the page is open and are not stored in the browser.

  1. Decision: choose the decision of the diagram (the top one is preset; the decisions it requires run with it).
  2. Values (JSON): pi, cur, par, model: the values in the shape of a process instance, for example {"pi": {"fields": {"summary": "Big order", "priority": {"name": "High"}}}}. Or enter the key of a process instance (for example FLOW-12) and choose Take its values: this fills pi with its fields and the results of its earlier decisions. Add cur, par or model yourself when the rules read them.
  3. Choose Evaluate. You see the result (as pi.decisions.<id of the decision>), the rules that fit, and up to five warnings, for example a field that is missing, or the error that a process would get.

Publish and Versions

Save keeps the draft. Publish makes the draft the next version: from then on, every business rule task that calls the decision uses it. Versions opens the versions page: it lists every version with the date and the person who published it.

Restore: on the versions page, Restore this version makes a published version the draft again. It overwrites the current draft, which cannot be recovered. The next publish creates a new version, and the versions page shows Restored from version n.

Call a Decision from a Process

  1. In the BPMN modeler, add a business rule task (the task with the table icon).
  2. In its panel, group Decision, choose the Decision. The list shows the published decisions of your site.
  3. Optional: choose the Decision in the diagram (default: The top decision) and the Name of the result. Without a name, the result is kept under the id of the chosen decision of the diagram, else under the id of the top decision.
  4. After the task, add an exclusive gateway and give its paths conditions on the result:
PathCondition
Discount of 10 % or more${pi.decisions.discount.percent >= 10}
Other ordersnone, the default flow

When the process reaches the task, Flower BPM evaluates the latest published version of the decision, keeps the result at the process instance as pi.decisions.<name>, and writes a comment with the decision, its version, the result, the rules that fit and up to five FEEL warnings (for example a field that does not exist, or values that cannot be compared). When the result is empty and FEEL warned, the process instance also gets a warning comment: most likely an input expression is wrong. The task needs no person and no Jira Automation rule; the tick Wait for Jira Automation does not apply to a task with a decision.

When a Decision Cannot Be Evaluated

If the decision cannot be evaluated, the process instance gets an error comment that says why, the value under the name of the result is empty (null), and the process goes on. Give the gateway a default flow, so it always has a path. The causes:

  • the decision does not exist, the work item is no decision of Flower BPM, or the decision has no published version;
  • two rules fit a Unique table, or the rules of an Any table give different results;
  • a Priority or Output order table has no output values;
  • a cell cannot be read (the message names the rule and the column), or an input has no expression;
  • a required decision is not in the DMN, the decisions require each other, or the decision is no decision table and no literal expression;
  • a limit is reached (see below).

A missing field is no error: it is null, and the rules that test it do not fit; the comment lists the FEEL warning.

When Jira does not answer while the decision is read (for example during an outage), nothing is decided and the process does not take a path. A process instance that is being started does not start, and the start is tried again. After a resolved work item, the process instance gets the error comment Could not continue the process after … has been resolved: Jira did not answer. Reopen … and resolve it again.

Limits

  • The loops of one FEEL expression (for, some, every; nested loops multiplied) may take at most 100,000 steps, all expressions of one evaluation together 1,000,000.
  • The result of a decision may have at most 4,000 characters as JSON, all results kept at one process instance at most 8,000 together.

Above a limit, the task gets an error comment as above, and the process goes on. The messages are in DMN Coverage.

See Where a Decision Is Used

  • The report button on the card of a decision lists the published models whose business rule tasks call it, with these tasks and the number of process instances of each model, the published versions, and the inputs, outputs and rules of each decision.
  • The panel of the decision work item in Jira shows its diagram; the icon of a decision opens its table, and Edit decision opens the DMN modeler.

Decision Tables in Older Models

Earlier, a BPMN model could carry a DMN table of its own. Such a table is not evaluated. The BPMN modeler shows it in the tab DMN (old), read only, with Convert into a decision: Flower BPM saves the tab, creates a decision from the table, names it after the model with (decision) at the end, and opens it in the DMN modeler. The old table stays at the model. Then call the new decision from a business rule task as described above, and give the gateway after the task conditions on its result.

Frequently Asked Questions

Can I import decisions from Camunda?

Yes, files in DMN 1.3. Import the .dmn file when you create a decision. Flower BPM evaluates decision tables with all hit policies, literal expressions and required decisions, with FEEL; other elements of the file are kept but not evaluated. Inside the DMN a table with one output gives its value, as in DMN and Camunda 8, so a decision that requires it reads Customer level = "gold"; toward the process its result is a context of the outputs. See DMN Coverage.

Does the decision see all fields of the process instance?

It sees what the process instance has: pi.fields with every field of its work item, and the results of earlier decisions. Fields of other work items go through cur (the work item resolved before the task) or par (the calling process instance).

What happens on Standard after the preview?

Process instances that were already running keep deciding until they end. A process instance created after the preview ended passes its business rule tasks without a result, gets a warning comment, and goes on (a gateway after the task takes its default flow). What counts is when Jira created the work item of the process instance. Modeling, versions and Evaluate keep working, and with Advanced every process instance decides again.

Does it work on Jira Data Center?

Yes. Decisions run on Jira Data Center as on Jira Cloud.

Last updated on