Open Marius-U opened 5 months ago
Note: There are some related UML objects that have not been exported since they belong to other packages but the Dependency to those is marked in the XML as stereotype 'mandatory
' and 'optional
'.
Those cases have been ignored for the time being.
Hi @Marius-U, thank you for implementing this! I think it needs a couple of things before I can accept your pull request.
Dependency with stereotype 'realyze' is processed before Source and Destination elements are added to diagram resulting in exception to be raised. First, UML:Interface needs to be implemented since it is the Destination of the 'realize' dependency.
After, to handle the situation where 'realize' dependencies cannot be drawn because the source and destination elements do not exist yet when the script runs, I modifyed the code to defer the creation of these dependencies until all elements are imported. Here's the approach: 1) Modify the
createMxGraphCells
function to defer the creation of 'realize' dependencies. 2) After importing all elements, loop through the deferred 'realize' dependencies and attempt to draw them again.Result is visible in the diagram: