We are using Literal Expressions for one of our decisions.
Would like to see if coinditionals is supported inside the then ?
Returns with an invalid dmn
if(somecondition) then { if(newcondition) then {....} else {}
}else if (another condition) then {}
else {}
Yes, conditionals can be used inside the then block of a FEEL/Literal expression in DMN.
The problem you are experiencing is that
{ }
in FEEL is used to denote a context, while you possibly wanted to use()
to parenthesise part of your expression.In other words, you expression should be ~like:
For example:
Demo: