camunda / dmn-scala

DMN engine written in Scala
Apache License 2.0
34 stars 15 forks source link

Import and evaluate a decision from another DMN #71

Open saig0 opened 3 years ago

saig0 commented 3 years ago

I can import other decisions from another DMN file. I can evaluate these decisions with the given import name as a prefix.


(DMN 1.4, section 6.3.3, page 34)

image

falko commented 3 years ago

Interesting feature.

saig0 commented 3 years ago

Idea:

falko commented 3 years ago

The primary concepts that DMN offers for calling imported elements are BKM and Decision Service invocations.

falko commented 3 years ago

There should be examples in the machine-readable files included with the spec as well as in the DMN TCK. If not, those would be great test cases to add ;-)

saig0 commented 3 years ago

Yes, the DMN TCK has two test cases. Both are linked with this issue.

saig0 commented 1 year ago

There is an open contribution to implement this feature: #215.

I also drafted a PoC to show how the feature can be implemented but with a different approach: #222.