Author Topic: export to EMF ecore and openarchitectureware  (Read 9775 times)

gwieser

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
export to EMF ecore and openarchitectureware
« 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

Jos Fries

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #1 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

gwieser

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #2 on: June 06, 2006, 02:53:42 am »
hi jos,

thx for your reply, we will try that!

kr,
guenther

mklink

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #3 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

StephanK

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #4 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

Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #5 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

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #6 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.

StephanK

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #8 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #9 on: April 17, 2007, 01:31:19 am »
Nor me.
No, you can't have it!

thomaskilian

  • Guest
Re: export to EMF ecore and openarchitectureware
« Reply #10 on: April 17, 2007, 11:02:24 pm »
Use "Show Source"

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #11 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

thomaskilian

  • Guest
Re: export to EMF ecore and openarchitectureware
« Reply #12 on: April 18, 2007, 10:35:56 pm »
Well, it's Microsoft.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #13 on: April 19, 2007, 01:49:28 am »
And mine still won't connect, even via show source...
No, you can't have it!

stalew

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: export to EMF ecore and openarchitectureware
« Reply #14 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