Hi,
Suppose I want to do the following:
if input > 0.5 then
"X"
else
"Y"
I can use javascript to do the implememtation, as follows:
<outputEntry id="LiteralExpression" expressionLanguage="javascript">
<text><![CDATA[if (input > 0.5) { "X" } else { "Y" }]]></text>
</outputEntry>
How can do the same using juel?
Thanks for the help. I works for me.
The Camunda DMN engine uses different script languages in different places of a DMN table by default, it is important to be aware which language is used where: https://docs.camunda.org/manual/latest/user-guide/dmn-engine/expressions-and-scripts/#default-expression-languages.
Frankly, I find this less than ideal when explaining DMN to business people - although it is probably just fine if programmers maintain the DMN tables anyway who usually know the Java EL syntax.
I usually reconfigure the engine to use FEEL everywhere, and add the feel-scala extension for better support.
Can I used FEEL do the conditional expression?