Skip to content

What would these FEEL expressions evaluate to? #451

Answered by StrayAlien
deostroll asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @deostroll ,

The first would be {a: 10, b:20}, the second would be {b: null, a:12}.

As context entries are evaluated, they are available in scope for subsequent entries. For the second one, the a is not in scope so therefore would be null. Adding 10 to null is null.

I'm not sure if that was for 1.1 or not (I came to DMN after 1.1), but that is what it is now.

You'll find some tests here: https://github.com/dmn-tck/tck/tree/master/TestCases/compliance-level-3/0057-feel-context.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tarilabs
Comment options

Answer selected by tarilabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants