I am trying to execute the example calc-credit-sum.dmn from the blog post: Full Coverage of DMN FEEL 1.2 starting with Camunda BPM 7.13. I am using the embed library DmnEngine. The example
is using the rest api. Is it possible to execute this dmn from the embedded library? I am sending in the “credit_history” as a json string:
VariableMap variables = Variables
.putValue(“credit_history”, creditHistoryJson)
error returned is:
FEEL/SCALA-01008 Error while evaluating expression: failed to evaluate expression ‘{
avg_score: mean(credit_history[type = credit_type].score),
avg_granted_sum: mean(credit_history[type = credit_type].granted_sum)
}’: expected number but found ‘ValError(expect List but found ‘ValString({[{“type”:“personal-loan”, “score”: 505, “granted_sum”: 1554.30}, {“type”:“mortgage”, “score”: 931, “granted_sum”: 600900.43}, {“type”:“mortgage”, “score”: 754, “granted_sum”: 210000.00}, {“type”:“personal-loan”, “score”: 437, “granted_sum”: 1900.44}]})’)’
thanks,