You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the diagram is build and stored as dmn-xml, the information present in the builder (condition-type, and/or) is lost.
To reuse builder declarations and have better interoperability and transperency, it would be great if we could read/write the current state of a builder from json.
Hint: Conditions and data types use interfaces and sealed classes, so the trick here is to use jackson type values to add the additional information for deSer to the classes.
Flaw: This will add a (compile time) dependency to the jackson annotations ... but jackson is already used for xml generation and spring boot (with jackson default) is a main target platform, so I am willing to sacrafice runtime independency here.)
The text was updated successfully, but these errors were encountered:
jangalinski
changed the title
read/write dmn as json
read/write dmn-diagram builder as json
Sep 11, 2020
Once the diagram is build and stored as dmn-xml, the information present in the builder (condition-type, and/or) is lost.
To reuse builder declarations and have better interoperability and transperency, it would be great if we could read/write the current state of a builder from json.
Hint: Conditions and data types use interfaces and sealed classes, so the trick here is to use jackson type values to add the additional information for deSer to the classes.
Flaw: This will add a (compile time) dependency to the jackson annotations ... but jackson is already used for xml generation and spring boot (with jackson default) is a main target platform, so I am willing to sacrafice runtime independency here.)
The text was updated successfully, but these errors were encountered: