[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: AMW to ATL

Hi,

If in your configuration the weaving model conforms to the weaving metamodel from the example, this model must have a similar structure as in the example. The weaving model is created to weave only metamodels, not models. Otherwise, the higher-order transformation (AMWtoATL.atl) will not work correctly.

For example, the model must have root elements, than at least one "ElementLink". These element links contain "Equals", than "FK" and "Nested" elements if necessary.

If it doesn't work after you verify these issues, you can send a excerpt of your model, then we can try to find the problem.

Regards,

Marcos.


PS. in one previous post, when you sent a message saying it works, I thought it was about all your examples. :)





wg wrote:
Hi

I've tried to set up the examples in my own configuration, of which
the Keys2Nested_AMW2ATL example is the most relevant one to me.
Running the example works fine, but now I wanted to define my own
weaving model. I've created a weaving model between the two
metamodels, and one between two models from the examples folder
conforming to the right metamodel.

It works fine,if I use the weaving model form the example,but if I use my own weaving model as input to transform(amwtoatl), there is a problem,I could get the atl(like ATL-Model.ecore) file in ecore format, but when I extract this ecore to *.atl , I can not get the correct file,this atl format file is empty.Thanks.