Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: TheTwo on July 23, 2008, 07:45:13 pm

Title: Export Constraints to XML/XMI
Post by: TheTwo on July 23, 2008, 07:45:13 pm
Hi,

I have tried to export constraints to a XML file. Therefore I added several constraints to the classes, attributes and operations.

For exporting I have used XMI Type "UML 2.1 (XMI 2.1)".

In result I only have the pre- and postconditions of the operations in the XMI file. All other Constraints are only written to the EA Tagged Values.

Is it possible to export them to the normal <uml:model> part of the xmi file?

Thanks
TheTwo
Title: Re: Export Constraints to XML/XMI
Post by: Frank Horn on July 23, 2008, 10:13:19 pm
Quote
Is it possible to export them to the normal <uml:model> part of the xmi file?

Are you sure that this is where they belong?

Anyway, there's probably no way to influence EA's xmi export. Export to XMI 2 is still full of bugs, as you can see from the release notes (for almost every build there's some fix). No wonder they still use XMI 1 for version control.

This reminds me of another issue I once reported: regions in state machines are exported to the extensions section too, while in the model section every state machine has a dummy region which is hidden from the users. I'm not the world's biggest UML expert, but I just can't believe that this is correct.