Failed to load dmn model


#1

This is an issue about interoperability. It helps a lot to convince people of dmn-js if it is able to load DMN models from other vendors. It appears some items of the model below are in a location where dmn-js does not expect them, some may not actually be supported, but I would assume they are perfectly valid, coming from a competing vendor like kie/Trisotech. So I suspect dmn-js makes too many assumptions about the xml structure.

Model:
https://raw.githubusercontent.com/kiegroup/drools/master/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/0019-flight-rebooking.dmn

Fails to load:
unparsable content detected
line: 9
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 12
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 15
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 18
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 21
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 24
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 27
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 36
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 39
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 42
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 45
column: 2
nested error: unknown type dmn:ItemComponent

unparsable content detected
line: 75
column: 2
nested error: unknown type dmn:Context

unparsable content detected
line: 107
column: 5
nested error: unknown type dmn:Invocation

unparsable content detected
line: 136
column: 6
nested error: unrecognized element dmn:decisionTable

unparsable content detected
line: 246
column: 3
nested error: unknown type dmn:Context

unparsable content detected
line: 326
column: 12
nested error: unrecognized element dmn:literalExpression


#2

First of all their naming is inconsistent, sometimes types start with an uppercase letter, sometimes a lowercase letter. Secondly, dmn-js doesn’t support Context, Invocation, and ItemComponent as the error suggest. As far as I know these are not going to be added any time soon, sorry.


#3

I’ve created an issue for this missing feature: