Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: gwieser on May 03, 2006, 08:50:25 am
-
hi,
we want to use EA as input for model driven software design using oAW (open architecture ware). to make this as smooth as possible (oAW forces the use of EMF and we have a project-proven setup already using EMF), we would like to get a EMF (ecore) model out of EA 6.1. anyone done that so far and can give us hints, templates, whatsoever? any input appreciated!
kr,
guenther
-
Hi,
Last year I created a stylesheet that has all the basic functionality for a transformation from EA's XMI to EMF ecore. It's able to create EClasses from UML classes, EAttributes from the attributes of a class and AssociationEnds from the associations of a class. It can be directly executed from EA's "Export package to XMI" menu.
It lacks however support for most ecore datatypes (but that's not hard to add), support for "multiple inheritance" for a class, support for tagged values, etc.
I uploaded this stylesheet to http://sharepoint.knowledgerecovery.com/external/eaug/Shared%20Documents/EA2ecore.xsl. It can be used and distributed under the GNU GPL.
Regards,
Jos
-
hi jos,
thx for your reply, we will try that!
kr,
guenther
-
I am still looking for ways to import the whole UML2 model into eclipse. Jos already showed a way to import basic class diagrams by using a XSLT file. However, this seems to be based on XMI 1.1.
Now that EA produces XMI 2.1 did anyone find alternative ways to get EA and OAW connected. Did someone develop the XSL sheet further?
I know someone who is working on the problem using the COM Automation Interface. I think in the long run this might be easier to maintain than the style sheet.
I would be very happy to find a solution to this problem and welcome any further hints...
Regards
Markus
-
I have the same wish (using XMI 2.1 and EMF ecore). Does someone know how the status of supporting and EMF UML2 export is at Sparx systems?
Regards,
Stephan
-
Hi,
EA does not export EMF compatible XMI.
In the above related thread (http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1176326978), the answer is no.
hth,
gary
-
... Last year I created a stylesheet that has all the basic functionality for a transformation from EA's XMI to EMF ecore ....
I uploaded this stylesheet to http://sharepoint.knowledgerecovery.com/external/eaug/Shared%20Documents/EA2ecore.xsl. It can be used and distributed under the GNU GPL.
Regards,
Jos
Jos, you'd better upload it to somewhere else - the link you gave is just an ad page.
-
This link works for Jos' stylesheet
http://sharepoint.standardcase.com/external/eaug/Shared%20Documents/EA2ecore.xsl
-
This link works for Jos' stylesheet
http://sharepoint.standardcase.com/external/eaug/Shared%20Documents/EA2ecore.xsl
Not for me...
Paolo
-
Nor me.
-
Use "Show Source"
-
Now the link works OK - even without the "Show Source".
Just one of life's little mysteries, I guess... ;)
Paolo
-
Well, it's Microsoft.
-
And mine still won't connect, even via show source...
-
All,
have a look at the results from the EU IST Project MADAM:
http://www.intermedia.uio.no/confluence/display/madam/D3.4+-+UML+Tool+Enhancements+for+Adaptation+and+Reflection+with+Transformation+Support
At the bottom there is a "Stylesheet for import in Enterprise Architect to convert the output to the XMI/EMF (.uml2) format"
And best of all: It's well documented!
-ståle
-
At the moment, I am writing an adapter to access an EA-model with EMF. It does not support all elements (e.g. diagrams are not included yet), but it works fine with Packages, Elements, Attributes, Methods, Parameter, TaggedValues and Connectors.
Both directions (read and write) are possible.
It is not yet possible to save the model as an XMI-file in EMF but all changes are directly applied to the EA model.
I use the Java API shipped with EA v6.5.
If someone is interested in this adapter and if I find some time, I can create some kind of release for it...
-
just to mention: we use a tool called EA exporter (http://uml2ea.blogspot.com/) that exports EA packages into UML2. we find it very useful, as it supports some more complex features like stereotypes etc.