FEEL

list projection (path on a list)

FEEL language construct

listOfContexts.entryName

Applying a path to a list of contexts projects that entry out of every element and returns a list of the values, the equivalent of a map over a field. Combined with a filter this replaces most of what would otherwise need an explicit for expression.

Syntax elements

ElementTypeDescription
entryNamenamethe context entry to project from each element

Examples

[{x:1},{x:2}].x
[1, 2] Try it ↑
[{name:"a",age:30},{name:"b",age:20}].age
[30, 20] Try it ↑
[{name:"a",age:30},{name:"b",age:20}][age > 25].name

Related constructs

list filter […] · path access (.) · context literal {…}

Related functions

sum · distinct values

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