In my DMN file, I have a literal expression in Javascript :
When I deploy the DMN file, this is the log I get :
06:51:51.053 [main] WARN org.camunda.dmn.DmnEngine - Failure(Fail to parse file 'test_js.dmn': Failure(Expression language 'javascript' is not supported))
It seems that the DMN Engine worker does not support JS.
Am I missing some setup ? Is there a better way to do this ?
The engine comes with a bunch of built-in functions which are defined by the DMN specification. And it allows you to define own functions as FEEL expressions (using the keyword function) or as context entry element.
However, the engine provides also a SPI to add custom functions which are written in Scala / Java. The classes are loaded via Java’s service loader mechanism. Please have a look at the documentation to see how to implement the SPI.