Skip to Content
Flower BPM 3.8.0 is released 🎉 See what's new
Documentation· 4 min read· Updated November 2026

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

TypeLiteralNotes
number42, -1.5, 0.1Decimal numbers, no separate integer type
string"gold"Double quotes only
booleantrue, false
datedate("2026-11-22")
timetime("14:30:00")
date and timedate and time("2026-11-22T14:30:00")With an optional time zone
days and time durationduration("P2DT4H")Days, hours, minutes, seconds
years and months durationduration("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), >= 5Ends included [ ] or excluded ( ) and ] [
functionfunction(x) x * 2
nullnullThe value of anything missing or undefined

Operators

KindOperatorsExample
Arithmetic+ - * / **amount * 1.19, 2 ** 10
Text+ joins strings"Team " + region
Comparison= != < <= > >=level = "gold" (one =, not ==)
Logicand, or, not(...)amount > 1000 and not(vip)
Betweenx between a and bage between 18 and 65 (both ends included)
Inx in list or rangeregion in ["EU", "UK"], score in [1..5]
Dates+ and - with durations, - between datesdate("2026-11-22") + duration("P30D")

Paths, Filters and Conditions

ConstructExampleValue
Pathorder.customer.levelA value inside a context
Path on a listorders.amountThe list of the amounts of all orders
Filterorders[amount > 1000]The orders above 1000 (item is the element itself: [1,2,3][item > 1])
Positionorders[1], orders[-1]The first and the last order
Ifif amount > 1000 then "review" else "accept"The value of one branch
Forfor o in orders return o.amount * 2A new list
Somesome o in orders satisfies o.amount > 1000true when one element passes
Everyevery o in orders satisfies o.paidtrue 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.

AreaFunctions (examples)
Textstring 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"], ",")
Numbersfloor, ceiling, round half up(2.5, 0) → 3, decimal(1/3, 2) → 0.33, abs, modulo(7, 3) → 1, sqrt, odd, even
Listscount, sum, mean, min, max, list contains, append, concatenate, distinct values, flatten, index of, sort(list, function(a, b) a < b), reverse
Dates and timestoday(), now(), day of week(date) → "Sunday", years and months duration(from, to)
Conversionnumber("1.5"), string(12), date("2026-11-22"), duration("P1D")
Contextsget value(context, "key"), context put(context, "key", value), get entries(context)
Rangesbefore, after, includes, overlaps, …

Examples

ExpressionValue
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"]) > 2More 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: type pi. or cur., or press Ctrl+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.2 gives 0.30000000000000004. Test amounts with ranges, or round with decimal(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.
Last updated on