tiagobento commented on issue #577: URL: https://github.com/apache/incubator-kie-issues/issues/577#issuecomment-1789884567
Working on _"Make the DMN Editor convert all models to latest (1.5) (this means updating the xmlns attributes on the JSON). Version is hard-coded as 1.5. We need to actually convert the models to DMN 1.5. Remember to update the kie: namespace from http://www.drools.org/kie/dmn/1.2 to https://kie.org/dmn/extensions/1.0"_ now... I'll group all the migrations that need to be done here: ### 1.0 → 1.1 - Namespaces - dmn: `http://www.omg.org/spec/DMN/20130901` → `http://www.omg.org/spec/DMN/20151101/dmn.xsd` - Root element from `Definitions` to `definitions`. - `typeRef`s from `tDMNElementReference` to `xsd:QName`. ### 1.1 → 1.2 - Namespaces - dmn: `http://www.omg.org/spec/DMN/20151101/dmn.xsd` → `http://www.omg.org/spec/DMN/20180521/MODEL/` - +dmndi: `http://www.omg.org/spec/DMN/20180521/DMNDI/` - +di: `http://www.omg.org/spec/DMN/20180521/DI/` - +dc: `http://www.omg.org/spec/DMN/20180521/DC/` - FEEL namespace changed. Upgrade `expressionLanguage` and `typeLanguage` properties from `http://www.omg.org/spec/FEEL/20140401` to `http://www.omg.org/spec/DMN/20180521/FEEL/` - `typeRef`s from `xsd:QName` to `xsd:string`. ### 1.2 → 1.3 - Namespaces - dmn: `http://www.omg.org/spec/DMN/20180521/MODEL/` → `https://www.omg.org/spec/DMN/20191111/MODEL/` - dmndi: `http://www.omg.org/spec/DMN/20180521/DMNDI/` → `https://www.omg.org/spec/DMN/20191111/DMNDI/` - di: No changes - dc: No changes - FEEL namespace changed. Upgrade `expressionLanguage` and `typeLanguage` properties from `http://www.omg.org/spec/DMN/20180521/FEEL/` to `https://www.omg.org/spec/DMN/20191111/FEEL/` ### 1.3 → 1.4 - Namespaces - dmn: `https://www.omg.org/spec/DMN/20191111/MODEL/` → `https://www.omg.org/spec/DMN/20211108/MODEL/` - dmndi: `https://www.omg.org/spec/DMN/20191111/DMNDI/` → `https://www.omg.org/spec/DMN/20191111/DMNDI/` - di: No changes - dc: No changes - FEEL namespace changed. Upgrade `expressionLanguage` and `typeLanguage` properties from `https://www.omg.org/spec/DMN/20191111/FEEL/` to `https://www.omg.org/spec/DMN/20211108/FEEL/` ### 1.4 → 1.5 - Namespaces - dmn: `https://www.omg.org/spec/DMN/20211108/MODEL/` → `https://www.omg.org/spec/DMN/20230324/MODEL/` - dmndi: `https://www.omg.org/spec/DMN/20191111/DMNDI/` → `https://www.omg.org/spec/DMN/20230324/DMNDI/` - di: No changes - dc: No changes - FEEL namespace changed. Upgrade `expressionLanguage` and `typeLanguage` properties from `https://www.omg.org/spec/DMN/20211108/FEEL/` to `https://www.omg.org/spec/DMN/20230324/FEEL/` - Convert deprecated `allowedValues` to `typeConstraint` on ItemDefinitions. If the ItemDefinition is a collection, we need to "extract a new type" with the same "typeRef" as the ItemDefinition, add a description to it explaining why this was created (constraints are not projected to individual items on the list), and change the "typeRef" of the ItemDefinition to this new type. For non-collection types, simply copying `allowedValues` to `typeConstraint` is enough. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
