adamecr / Common.DMN.Engine

DMN Engine is a decision engine (rule engine) allowing to execute and evaluate the decisions defined in a DMN model. Its primary target is to evaluate the decision tables that transform the inputs into the output(s) using the decision rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not compatible with Kie DMN documents?

michaelglasson opened this issue · comments

I have been looking at how to use either Camunda Modeler or the Kie/DROOLS VS Code plugin to edit DMN files for use with your excellent DMN Engine and in particular with its simulator. I have found a few issues. One is that the simulator declares that it cannot parse a simple Kie/DROOLS DMN document owning to an error in line 2, column 2. This looks to be a question of namespace incompatibility. Simultaneously, I don't think I can use Camunda Modeler, as it does not recognise an information requirement. This means that the simulator does not offer me the chance to enter test inputs. Kie/DROOLS has a nice information requirement function and if I copy and paste the InputData and InformationRequirement elements from Kie/DROOLS across to a Camunda document, I get a very nice experience in the simulator. On balance, I think the Kie/DROOLS editor in VS Code offers the better opportunities, but I don't know how to manipulate the namespaces to avoid the error in your simulator. Do you have any advice?

Hi @michaelglasson , thanks for using the library and providing the feedback.
The Simulator used DMN v1.3 (parser 1.3ext to be exact) and that's the reason, why the Kie Editot for VS Code model can't be read as Kie uses DMN v1.2 there.
I found a repo https://github.com/kiegroup/kie-tools/tree/main/packages/dmn-vscode-extension that seems to provide VS Code extension with support of DMN up to v1.5. Maybe this could help