|
Re: convert or refactor classic-uml model? [message #911816 is a reply to message #911794] |
Wed, 12 September 2012 11:31 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.01719 seconds