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.
MIT License
81 stars 23 forks source link

Not compatible with Kie DMN documents? #22

Open michaelglasson opened 4 months ago

michaelglasson commented 4 months ago

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?

adamecr commented 4 months ago

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

michaelglasson commented 4 months ago

Thank you so much for replying and for your explanation of the issue, Radek. Your DMNEngine is an outstanding piece of work and a tribute to both your expertise and hard work.

I will check out the extension you linked below.

Regards,

Michael Glasson

From: Radek Adamec @.> Sent: Sunday, March 10, 2024 1:19 AM To: adamecr/Common.DMN.Engine @.> Cc: michaelglasson @.>; Mention @.> Subject: Re: [adamecr/Common.DMN.Engine] Not compatible with Kie DMN documents? (Issue #22)

Hi @michaelglasson https://github.com/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

— Reply to this email directly, view it on GitHub https://github.com/adamecr/Common.DMN.Engine/issues/22#issuecomment-1986869310 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHXM74DU2NVW74WSO26WZDYXMK3XAVCNFSM6AAAAABDOXO2ICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHA3DSMZRGA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ADHXM73NADHLIK4WHV2EGUDYXMK3XA5CNFSM6AAAAABDOXO2ICWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTWNU4D4.gif Message ID: @. @.> >