DMN engine return object

Hello everyone,

I need suggestion, so I’m using dmn-scala for to run the DMN Engine
I have this configuration:

the result I got from this configuration is just the single value like this :

different with when I configure to have multiple result like this:


it gave me result in json, map key value :

{
	"contractValue" : "Sales Manager",
	"message" : "should report by Sales Manager",
	"contractValueResponse" : "more than 1000",
	"indicator" : "flag"
}

is there any way to make the single result to return as map(key, value) result?

Hi @emonica,

Try adding a literal expression to do the conversion

image

testDecision.dmn (2.4 KB)

1 Like