Hi All,
I have a DMN utilizing FEEL and have expressions like:
kpis.`1708` = 0
I use this DMN inside a BPMN as a Business Rule Task.
When I provide the input to DMN as a Java Map, it all works okay. However when the input is Spin JSON, it fails saying context contains no entry with key ‘1708’.
execution.setVariable('kpis', map); // -> this works
execution.setVariable('kpis', Spin.JSON(map)); // -> this fails
I’m pretty sure the Spin has the entries, since I print it to console. And I even converted it back to Map, which also works fine.
execution.setVariable('kpis', Spin.JSON(map).mapTo(Map.class)); // -> this works too
Any clues?
This is running inside spring-boot-starter
. Following are FEEL related dependencies:
<dependency>
<groupId>org.camunda.feel</groupId>
<artifactId>feel-engine</artifactId>
<version>1.12.4</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.extension.feel.scala</groupId>
<artifactId>feel-engine-plugin</artifactId>
<version>1.10.1</version>
</dependency>
Thanks,
Hakan