Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » convert or refactor classic-uml model?
convert or refactor classic-uml model? [message #911794] Wed, 12 September 2012 10:38 Go to next message
Stefan Krecher is currently offline Stefan KrecherFriend
Messages: 1
Registered: September 2012
Junior Member
Hi,
we're using StarUML to design models and export them via xmi. StarUML is only able to use uml 1.3 (iirc) and no uml 2.0. We use lots of stereotypes/ tagged values.
We have our own meta-model, based on the uml-classic meta-model. The meta-model is very complex.
We have lots of Xpand/ xtend templates and generate lots of ejb stuff (java-classes, deployment descriptors etc.)
Now we want to get rid of StarUML since development was discontinued. We'd like to develop our own textual DSL that fits our needs.
What would be a good way to do the change?
Should we first migrate our meta-model to an ecore-meta-model? Then we could write xpand-templates that generate ecore-models from our uml-models and we could reuse our "old" templates to generate code.
Reusing xpand-templates would be greate since they are very complex. Is it possible to use stereotypes/ tagged values with ecore-models?
Or would it be to complicated to transfer the uml-classic-meta-model to an ecore model?
Maybe we would be better off doing everything from scratch?
We had the idea to load our uml-models with another uml-tool to export them as uml 2.0 models - sadly that did not work (with enterprise architect).
Any other ideas?
regards,
Stefan
Re: convert or refactor classic-uml model? [message #911816 is a reply to message #911794] Wed, 12 September 2012 11:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Stefan,

Comments below.


On 12/09/2012 12:38 PM, Stefan Krecher wrote:
> Hi,
> we're using StarUML to design models and export them via xmi. StarUML
> is only able to use uml 1.3 (iirc) and no uml 2.0. We use lots of
> stereotypes/ tagged values.
> We have our own meta-model, based on the uml-classic meta-model. The
> meta-model is very complex.
> We have lots of Xpand/ xtend templates and generate lots of ejb stuff
> (java-classes, deployment descriptors etc.)
> Now we want to get rid of StarUML since development was discontinued.
> We'd like to develop our own textual DSL that fits our needs.
> What would be a good way to do the change?
> Should we first migrate our meta-model to an ecore-meta-model?
If you want a textual DSL you'll want to use Xtext, and it can infer an
Ecore model from the grammar, so that might be a good starting point.
> Then we could write xpand-templates that generate ecore-models from
> our uml-models
I'm not sure you'd want to use templates for that. I expect your want
to write more of a model-to-model transformation, perhaps not unlike
what the UML to Ecore importer does.
> and we could reuse our "old" templates to generate code.
The old templates use what as input?
> Reusing xpand-templates would be greate since they are very complex.
> Is it possible to use stereotypes/ tagged values with ecore-models?
No. But Ecore supports EAnnotations.
> Or would it be to complicated to transfer the uml-classic-meta-model
> to an ecore model?
The UML importer does that, but won't pay attention to your stereotypes.
> Maybe we would be better off doing everything from scratch?
Probably you could use a clean room to learn from all the mistakes of
the past and not repeat them.
> We had the idea to load our uml-models with another uml-tool to export
> them as uml 2.0 models - sadly that did not work (with enterprise
> architect).
Frustrating.
> Any other ideas?
If you want to design a DSL, I'd suggest focusing on that first with
Xtext. This will give you an Ecore model. You could then look at now
to transform your UML models (you must have some way of reading them)
into an instance of your new DSL, which you could then serialize to text
and continue from there.
> regards,
> Stefan


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF Serialization in older XMI format
Next Topic:[CDO] Opening an EMF editor on a remote CDO repository
Goto Forum:
  


Current Time: Fri Mar 29 08:34:19 GMT 2024

Powered by FUDForum. Page generated in 0.01719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top