Declaring variables with camunda dmn-modeler

Hi,

when I import a .dmn-file, designed with the camunda-dmn-modeler to a redhad-driven dmn-engine, I get the following error-message:

DMN: Decision node 'Decision 1' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: Decision_0defrxy, A variable declaration is missing)

How can I declare variables in the camunda-modeler?

Thanks in advance
Stefan

P.S.: The same happens when I import the dmn from the camunda-dmn-simulator (https://camunda.com/dmn/simulator/) which seemed to me complete for automation. Then the errormessage is multiplied to all decisions.

Mind sharing the DMN file?

2 Likes

I think the best example is the file from
https://camunda.com/dmn/simulator/

which I downloaded from the site to upload it hiere:
simulation.dmn (8.9 KB)

It generates the error message as follows:
The model could not be imported, the following errors have occurred:

DMN: Decision node 'Beverages' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: beverages, A variable declaration is missing)
DMN: Decision node 'Dish' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: dish, A variable declaration is missing)
DMN: Input Data node 'Season' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: InputData_0rin549, A variable declaration is missing)
DMN: Input Data node 'Number of Guests' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: InputData_1axnom3, A variable declaration is missing)
DMN: Input Data node 'Guests with children?' is missing the variable declaration (resource: 51a06510-371b-431c-a0f0-dde68937403d.dmn, DMN id: InputData_0pgvdj9, A variable declaration is missing)

I cannot reproduce this issue using the diagram you shared. Iā€™m using Camunda Modeler v3.3.5.

Actually I try to upload the model to an alternative DMN-tester: declab,
(https://github.com/materna-se/declab/)
since there seems no way to use DMN-simulator on premise.

However, the question is: How can I declarate variables using camunda modeler?