FEEL

context literal {…}

FEEL language construct

{ name: expression, name: expression }

A context is FEEL's record type, written as brace-delimited key/value entries. Later entries can refer to earlier ones by name, which makes a context literal usable as a let-binding block for breaking a long expression into named steps. Entry names may contain spaces.

Syntax elements

ElementTypeDescription
namename or stringthe entry key; may contain spaces
expressionanythe value; may reference entries defined above it

Examples

{a: 1, b: a + 1}.b
{customer: {name: "Anna", age: 34}}.customer.age
{net: 100, vat: net * 0.081, gross: net + vat}.gross

Related constructs

path access (.) · list projection (path on a list) · function definition

Related functions

context · context put · get entries

Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).