Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: gwieser on May 03, 2006, 08:50:25 am

Title: export to EMF ecore and openarchitectureware
Post 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
Title: Re: export to EMF ecore and openarchitectureware
Post by: Jos Fries on June 02, 2006, 08:41:22 am
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
Title: Re: export to EMF ecore and openarchitectureware
Post by: gwieser on June 06, 2006, 02:53:42 am
hi jos,

thx for your reply, we will try that!

kr,
guenther
Title: Re: export to EMF ecore and openarchitectureware
Post by: mklink on September 29, 2006, 01:22:59 am
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
Title: Re: export to EMF ecore and openarchitectureware
Post by: StephanK on April 16, 2007, 05:37:22 am
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
Title: Re: export to EMF ecore and openarchitectureware
Post by: Gary W. on April 16, 2007, 10:23:37 am
Hi,

Quote
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
Title: Re: export to EMF ecore and openarchitectureware
Post by: mikewhit on April 16, 2007, 10:28:09 pm
Quote
... 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.
Title: Re: export to EMF ecore and openarchitectureware
Post by: StephanK on April 16, 2007, 11:17:27 pm
This link works for Jos' stylesheet
http://sharepoint.standardcase.com/external/eaug/Shared%20Documents/EA2ecore.xsl
Title: Re: export to EMF ecore and openarchitectureware
Post by: Paolo F Cantoni on April 17, 2007, 12:25:26 am
Quote
This link works for Jos' stylesheet
http://sharepoint.standardcase.com/external/eaug/Shared%20Documents/EA2ecore.xsl
Not for me...

Paolo
Title: Re: export to EMF ecore and openarchitectureware
Post by: «Midnight» on April 17, 2007, 01:31:19 am
Nor me.
Title: Re: export to EMF ecore and openarchitectureware
Post by: thomaskilian on April 17, 2007, 11:02:24 pm
Use "Show Source"
Title: Re: export to EMF ecore and openarchitectureware
Post by: Paolo F Cantoni on April 18, 2007, 01:12:48 pm
Now the link works OK - even without the "Show Source".

Just one of life's little mysteries, I guess...  ;)

Paolo
Title: Re: export to EMF ecore and openarchitectureware
Post by: thomaskilian on April 18, 2007, 10:35:56 pm
Well, it's Microsoft.
Title: Re: export to EMF ecore and openarchitectureware
Post by: «Midnight» on April 19, 2007, 01:49:28 am
And mine still won't connect, even via show source...
Title: Re: export to EMF ecore and openarchitectureware
Post by: stalew on June 18, 2007, 01:36:04 am
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
Title: Re: export to EMF ecore and openarchitectureware
Post by: paphko on June 18, 2007, 03:02:00 am
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...
Title: Re: export to EMF ecore and openarchitectureware
Post by: gwieser on June 19, 2007, 11:06:17 pm
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.