Skip to main content

Decision Table Expression Reference

This page lists the column types, condition syntax, hit policies and functions that decision tables support, followed by worked expression examples. To check a table, see validating decision tables and testing decision tables.

Column types​

Column typeBehavior
StringExact text comparison by default. Blank conditions are wildcards; = "" matches an empty string.
BooleanBoolean true or false. A no-value test input is null; it is distinct from false.
IntegerSigned 32-bit whole numbers. Use Number for fractions and Long for imported 64-bit contracts.
Number / Double / FloatNumeric comparison uses exact decimal values within the supported decimal128 bounds.
LongImported or API signed 64-bit whole-number contracts; confirm transport precision for values beyond JavaScript safe integers.
Decimal / BigDecimalExact decimal arithmetic within the supported decimal128 bounds. Integer and Long also enforce their declared whole-number ranges.
DateA date without a time, sent as ISO YYYY-MM-DD. Calendar comparison uses typed dates.
Time / Date TimeTyped ISO time or date-time. Local values keep their local meaning and offset values keep their offset. Use time(...) or date and time(...) in FEEL expressions. An invocation time zone never assigns an offset to a local value.
Day Time Duration / Year Month DurationNot supported as declared column types. duration(...) is supported inside FEEL expressions.

Column names​

An input column name must start with a letter or underscore, followed by letters, numbers or underscores, and can't be a FEEL keyword such as null, true, if, in or and. Names must be unique. Put spaces in the label or description, not the name. Validate reports a name that breaks these rules.

Condition syntax​

SyntaxMeaningColumn types
Blank or -Wildcard condition, including no value. A blank output becomes a null value, not a missing output key.All
nullMatches a no-value input. This is different from a blank condition.All
= valueEquality using the declared type. Boolean cells support true, false and null.String, Boolean, Number, Integer, Date
!= valueInequality using the declared type. Equality with null is false for non-null values, so its negation can match null; add an explicit null rule when needed.String, Boolean, Number, Integer, Date
< value, <= value, > value, >= valueOrdered comparison. Null does not satisfy a numeric or date ordering test.Number, Integer, Date
[a..b], (a..b), [a..b), (a..b]Between. Square brackets include an endpoint and parentheses exclude it. The open-bracket form ]a..b[ is also accepted.Number, Integer, Date
IN a,b, NOT_IN a,bAlternative literal values, or their complement. Quote String values when needed.String, Number, Integer, Date
not(< 10)Negates a unary test. Null stays unknown for an ordered comparison, so this doesn't replace an explicit null rule.Number, Integer
lower case(?) = "pending"A FEEL expression. The current cell input is available as ? or cellInput.String

<> is not FEEL syntax. Use !=.

A String cell containing only - is a wildcard. Use = "-" to match a literal dash.

FEEL expression mode​

A cell that is a FEEL expression runs as written. Pass the input explicitly: write contains(?, "a,b"), not contains("a,b").

Date conditions​

Date columns also offer Before and After conditions. Both are strict: After 2026-03-22 is > date("2026-03-22") and excludes that date, and Before is < and excludes it. A date can be written YYYY-MM-DD or YYYY/MM/DD. A value such as 22/3/2026 is rejected with "Use YYYY-MM-DD for a date condition".

Null semantics​

  • A missing input property and an explicit null are distinct request states. In the examples below, both give a no-value input. Test the exact expression you use.
  • false is a Boolean value and never becomes null. Zero is a number and never becomes missing.
  • An empty string has length zero. Match it with = ""; an empty condition is a wildcard.
  • A blank output is an explicit null property in each matched output row.
  • A comparison involving null can be unknown. Negating an unknown comparison doesn't make it true. Add a null rule when the table must cover no-value inputs.
  • No match is an evaluated result with no rows. It is distinct from an error.

Hit policies​

PolicyBehavior
FirstThe first matching rule determines the decision. Rule order matters. Overlap can be intentional, and a rule covered by earlier rules is shadowed.
UniqueAt most one rule can match an input. Provable overlaps block publication, and the runtime rejects a violation.
AnyMultiple rules can match only when their outputs agree. Different constant outputs block publication. The evaluator returns one selected result and rule; matchCount is selected-rule evidence, not a count of every satisfied row.
CollectKeep all matched output rows. Don't infer execution order from collected results.
Collect (Sum), (Min), (Max), (Count)Return the matching raw rows and a separate aggregate. A no-match keeps an empty aggregate.
Rule orderReturn matching rows in authored rule order.

Priority and Output order are not supported, and publication rejects them.

Aggregate rules​

  • Collect (Sum), (Min) and (Max) need exactly one numeric output column and ignore null values.
  • Collect (Count) needs exactly one output column and counts the matched rules.

Functions​

FunctionMeaning
today()Date at the invocation clock in the selected IANA time zone.
now()Date and time at the same captured invocation clock; it doesn't recapture the wall clock per row.
date("2026-03-31")Creates a typed date literal.
duration("P6M")A calendar duration, here six months; it is not a fixed number of days.
lower case(?)Converts text to lower case for a predicate.
pnx.ageFromDOB(cellInput)Optional platform function: completed years at the captured local date. Requires domain functions to be enabled. It is a platform extension, not portable standard DMN.

Expression examples​

These examples come from the versioned authoring guide. Each shows the rules, test inputs and expected fields checked by its executable reference examples. Collect row order is not guaranteed.

True, false and no value​

The same records/items contract preserves false and null, including an omitted input property.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
true-ruletrueyes
false-rulefalseno
null-rulenullabsent
Input recordStatusOutput rows or error
{}evaluated[{"answer": "absent"}]
{"value": null}evaluated[{"answer": "absent"}]
{"value": false}evaluated[{"answer": "no"}]
{"value": true}evaluated[{"answer": "yes"}]

Empty text is not null​

Use = "" for empty text and null for no value. The final wildcard covers other text.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
empty-rule= ""empty
null-rulenullabsent
other-rule-text
Input recordStatusOutput rows or error
{"value": ""}evaluated[{"answer": "empty"}]
{"value": null}evaluated[{"answer": "absent"}]
{}evaluated[{"answer": "absent"}]
{"value": "hello"}evaluated[{"answer": "text"}]

Inclusive numeric boundaries​

Both endpoints of [18..65] are included.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Ruleageanswer (output)
eligible-rule[18..65]eligible
other-rule-outside
Input recordStatusOutput rows or error
{"age": 17}evaluated[{"answer": "outside"}]
{"age": 18}evaluated[{"answer": "eligible"}]
{"age": 65}evaluated[{"answer": "eligible"}]
{"age": 66}evaluated[{"answer": "outside"}]

Zero survives numeric input​

The result is typed Boolean, and zero does not disappear.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevaluezero (output)
zero-rule= 0true
other-rule-false
Input recordStatusOutput rows or error
{"value": 0}evaluated[{"zero": true}]
{"value": 1}evaluated[{"zero": false}]
{"value": null}evaluated[{"zero": false}]

Calendar months and exclusive date comparison​

At the fixed clock, six calendar months after March 31 is September 30. The < comparison excludes that date.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
within-rule< today() + duration("P6M")within six months
other-rule-outside
Input recordStatusOutput rows or error
{"value": "2026-09-29"}evaluated[{"answer": "within six months"}]
{"value": "2026-09-30"}evaluated[{"answer": "outside"}]
{"value": "invalid-date"}errorError: DECISION_INVALID_DATE

The invocation timezone determines today​

At this instant Auckland is already April 1. A UTC evaluation would use March 31.

Hit policy: First. Test clock: 2026-03-31T23:30:00Z. Timezone: Pacific/Auckland.

Rulevalueanswer (output)
within-rule< today() + duration("P6M")within six months
other-rule-outside
Input recordStatusOutput rows or error
{"value": "2026-09-30"}evaluated[{"answer": "within six months"}]

A case-insensitive cellInput predicate​

cellInput is the current input value, not an arbitrary column label.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulestatusanswer (output)
pending-rulelower case(cellInput) = "pending"true
other-rule-false
Input recordStatusOutput rows or error
{"status": "PENding"}evaluated[{"answer": true}]
{"status": "closed"}evaluated[{"answer": false}]

The equivalent question-mark predicate​

The standard FEEL ? variable expresses the same predicate.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulestatusanswer (output)
pending-rulelower case(?) = "pending"true
other-rule-false
Input recordStatusOutput rows or error
{"status": "PENding"}evaluated[{"answer": true}]
{"status": "closed"}evaluated[{"answer": false}]

Unique rules and a legitimate no-match​

An unmatched value remains an evaluated item; it is not converted into an input error.

Hit policy: Unique. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Ruleplanprice (output)
basic-rule= "basic"10
premium-rule= "premium"20
Input recordStatusOutput rows or error
{"plan": "basic"}evaluated[{"price": 10}]
{"plan": "premium"}evaluated[{"price": 20}]
{"plan": "unknown"}evaluated[]

Collect returns complete matched rows​

Multiple matches stay inside one input envelope and preserve output-column alignment.

Hit policy: Collect. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulescorelabel (output)points (output)
positive-rule>= 0nonnegative1
high-rule>= 10high2
Input recordStatusOutput rows or error
{"score": 5}evaluated[{"label": "nonnegative", "points": 1}]
{"score": 15}evaluated[{"label": "nonnegative", "points": 1}, {"label": "high", "points": 2}]
{"score": -1}evaluated[]

Raw rows and their separate sum​

The aggregate is separate from the evidence rows. An unmatched input has an empty aggregate.

Hit policy: Collect (Sum). Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulescorepoints (output)
positive-rule>= 01
high-rule>= 102
Input recordStatusOutput rows or error
{"score": 15}evaluated[{"points": 1}, {"points": 2}]; aggregate {"points": 3}
{"score": -1}evaluated[]

Any permits equal output matches​

Matching outputs must agree. Any returns one selected result; evidence reports the rules selected by the evaluator, not every condition that could match. Different matching outputs violate Any.

Hit policy: Any. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
first-rule> 0yes
second-rule> 10yes
Input recordStatusOutput rows or error
{"value": 15}evaluated[{"answer": "yes"}]

Optional domain function uses the fixed date​

Requires domain functions enabled. The birthday boundary follows the fixed invocation date.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Ruledobadult (output)
adult-rulepnx.ageFromDOB(cellInput) >= 18true
other-rule-false
Input recordStatusOutput rows or error
{"dob": "2008-03-31"}evaluated[{"adult": true}]
{"dob": "2008-04-01"}evaluated[{"adult": false}]

Inclusive between across leap day​

Typed date intervals preserve both inclusive boundaries and leap day.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
between-rule[2024-02-28..2024-02-29]inside
outside-rule-outside
Input recordStatusOutput rows or error
{"value": "2024-02-27"}evaluated[{"answer": "outside"}]
{"value": "2024-02-28"}evaluated[{"answer": "inside"}]
{"value": "2024-02-29"}evaluated[{"answer": "inside"}]
{"value": "2024-03-01"}evaluated[{"answer": "outside"}]

Fractions and an exact half boundary​

Number accepts fractions; < excludes the boundary, while >= includes it.

Hit policy: Unique. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Ruleamountband (output)
small-rule< 0.5small
large-rule>= 0.5large
Input recordStatusOutput rows or error
{"amount": 0.49}evaluated[{"band": "small"}]
{"amount": 0.5}evaluated[{"band": "large"}]
{"amount": 0.51}evaluated[{"band": "large"}]

An imported 64-bit numeric contract​

Long contracts preserve a whole number larger than the 32-bit Integer range. This sample stays within JavaScript safe integer precision.

Hit policy: First. Test clock: 2026-03-31T12:00:00Z. Timezone: UTC.

Rulevalueanswer (output)
long-rule= 21474836482147483648
Input recordStatusOutput rows or error
{"value": 2147483648}evaluated[{"answer": 2147483648}]