Evaluation Error of DMN Table

beverage.dmn (3.4 KB)

This is my simple DMN table. Uploaded it successfully over Tomcat Camunda Cockpit. When I am trying to evaluate the conditions, the following exception occurs:-

Caused by: org.camunda.bpm.dmn.engine.impl.DmnEvaluationException: DMN-01002 Unable to evaluate expression for language ‘Juel’: ‘${Lemonade}’

Lemonade is one of my entries in the table.

Please help what is wrong here?

Thanks

Can you show exactly how you trigger the table?
What call do you use?

I am following your tutorial on Youtube. But I have used Tomcat Server instead of Wildfly.

I am calling through API. I tried the following calls from Postman:-

localhost:8080/engine-rest/decision-definition/decideOnBeverage:1:61f84c05-8076-11ea-8da5-105bad00bfe7/evaluate

localhost:8080/engine-rest/decision-definition/key/decideOnBeverage/evaluate

The same error is coming in logs in both the calls.

Thanks

Have you added a body to those requests?

Yes…

{
“variables”:{
“name”:{“value”:“Manoj”,“type”:“String”},
“timeOfDay”:{}
}
}

There is one entry in my decision table with name as “Manoj” and undefined timeOfDay.

So, there are 2 things you need to fix.

First there’s what i could call a UX problem with the DMN modeler which doesn’t want you that you need to have quotes around strings in the output field.
Lemonade -> "Lemonade"

Also - you’ll probably need to add an actual time of day.
But let me know how you get on after adding the quotes.

Thanks Niall for your help. Inserting double quotes worked out…!

1 Like

Hey Niall one last question. Is it possible to create DMN table and BPMN diagram (that we usually creates using Camunda Modeler) using some APIs? Does Camunda provides APIs or libraries for creation of DMN table and BPMN diagram?

Thanks