FEEL
FEEL (Friendly Enough Expression Language) is the expression language of DMN. Every input expression, every cell of a decision table and every literal expression is written in FEEL. It is meant to be readable by the business: no semicolons, no assignments, names may contain spaces, and every expression simply has a value.
FEEL in DMN is not the expression language of the gateways of Flower BPM. A gateway condition is written as ${...} in the expressions of Flower BPM; a decision is written in FEEL. Both read the same data: pi, cur, par, model.
Data Types
| Type | Literal | Notes |
|---|---|---|
| number | 42, -1.5, 0.1 | Decimal numbers, no separate integer type |
| string | "gold" | Double quotes only |
| boolean | true, false | |
| date | date("2026-11-22") | |
| time | time("14:30:00") | |
| date and time | date and time("2026-11-22T14:30:00") | With an optional time zone |
| days and time duration | duration("P2DT4H") | Days, hours, minutes, seconds |
| years and months duration | duration("P1Y6M") | Years and months |
| list | [1, 2, 3], ["a", "b"] | Positions start at 1 |
| context | {level: "gold", percent: 10} | Key-value pairs, may be nested |
| range | [1..10], (0..100), >= 5 | Ends included [ ] or excluded ( ) and ] [ |
| function | function(x) x * 2 | |
| null | null | The value of anything missing or undefined |
Operators
| Kind | Operators | Example |
|---|---|---|
| Arithmetic | + - * / ** | amount * 1.19, 2 ** 10 |
| Text | + joins strings | "Team " + region |
| Comparison | = != < <= > >= | level = "gold" (one =, not ==) |
| Logic | and, or, not(...) | amount > 1000 and not(vip) |
| Between | x between a and b | age between 18 and 65 (both ends included) |
| In | x in list or range | region in ["EU", "UK"], score in [1..5] |
| Dates | + and - with durations, - between dates | date("2026-11-22") + duration("P30D") |
Paths, Filters and Conditions
| Construct | Example | Value |
|---|---|---|
| Path | order.customer.level | A value inside a context |
| Path on a list | orders.amount | The list of the amounts of all orders |
| Filter | orders[amount > 1000] | The orders above 1000 (item is the element itself: [1,2,3][item > 1]) |
| Position | orders[1], orders[-1] | The first and the last order |
| If | if amount > 1000 then "review" else "accept" | The value of one branch |
| For | for o in orders return o.amount * 2 | A new list |
| Some | some o in orders satisfies o.amount > 1000 | true when one element passes |
| Every | every o in orders satisfies o.paid | true when all elements pass |
Null
FEEL never throws an error for missing data: a name that does not exist, or a property of null, is null. Most operations with null give null, and a comparison with null is not true. So a rule with > 1000 does not match a missing amount, and an expression on a missing field quietly gives null. Test for it with = null, or as an input entry null.
Unary Tests
The input entries of a decision table are unary tests: tests of a value that is not written. The forms are -, values, comparisons (< 100), ranges ([1..10]), lists of tests ("A", "B"), not(...) and, in full FEEL, any expression with ? for the value (? > 3 and ? < 10, contains(?, "urgent")). The full list with examples is in Decision Tables.
Built-in Functions
FEEL has a library of functions. Their names may contain spaces.
| Area | Functions (examples) |
|---|---|
| Text | string length("abc") → 3, substring("foobar", 4) → "bar", upper case, lower case, contains, starts with, ends with, matches("abc", "^a"), replace, split("a,b", ","), string join(["a","b"], ",") |
| Numbers | floor, ceiling, round half up(2.5, 0) → 3, decimal(1/3, 2) → 0.33, abs, modulo(7, 3) → 1, sqrt, odd, even |
| Lists | count, sum, mean, min, max, list contains, append, concatenate, distinct values, flatten, index of, sort(list, function(a, b) a < b), reverse |
| Dates and times | today(), now(), day of week(date) → "Sunday", years and months duration(from, to) |
| Conversion | number("1.5"), string(12), date("2026-11-22"), duration("P1D") |
| Contexts | get value(context, "key"), context put(context, "key", value), get entries(context) |
| Ranges | before, after, includes, overlaps, … |
Examples
| Expression | Value |
|---|---|
if order.amount >= 1000 then "manager" else "team lead" | Who approves |
sum(order.items.price) * (1 - discount / 100) | Net price after discount |
date(request.due) - today() < duration("P3D") | Due within three days |
count(complaints[status = "open"]) > 2 | More than two open complaints |
contains(lower case(summary), "urgent") | The summary mentions urgency |
In Flower BPM
Flower BPM evaluates FEEL with feelin, the FEEL interpreter of bpmn.io (the makers of the DMN modeler dmn-js), in the browser for Evaluate, and in the engine when a business rule task runs, on Jira Cloud and on Data Center alike.
- The names of the process. Every expression can use
pi(the process instance:pi.fields.summary,pi.fields.priority.name,pi.fields.customfield_10010),cur(the work item that continued the process),par(the calling process instance, in a sub-process),model(the model work item),pi.decisions.<name>(the results of earlier decisions) and the results of the decisions the decision requires. The DMN modeler proposes them: typepi.orcur., or pressCtrl+Space. - Jira values. Fields come as Jira sends them: a select field is a context (
pi.fields.customfield_10020.value), a date field is text (date(pi.fields.duedate)makes it a date), a number field is a number. - Missing names. A name that does not exist gives
null, as in FEEL, and a rule that tests it does not fit. FEEL warns about it, and about values that cannot be compared: Evaluate lists the warnings, and when a business rule task runs, its comment lists up to five of them. A result that is empty with warnings gets a warning comment of its own. - Limits. The loops of one expression (
for,some,every; nested loops multiplied) may take at most 100,000 steps, all expressions of one evaluation together 1,000,000. A larger range or list is an error before the expression runs. See DMN Coverage. - Results. The result is kept at the process instance as plain JSON: dates, times and durations as their FEEL text (
"2026-11-23","P1D","2026-11-22T14:30:00@Europe/Berlin"), a range as text ("[1..10]"); a function has no useful value. - Numbers. feelin computes with JavaScript numbers (binary floating point), not with the decimal numbers of FEEL:
0.1 + 0.2gives0.30000000000000004. Test amounts with ranges, or round withdecimal(x, 2)before you compare for equality. - Conformance. feelin reads the whole FEEL grammar, the built-in functions and the date and time types, but is not fully conformant with the DMN test suite (TCK); try special cases with Evaluate.