[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.gmt.amw] Re: What is this warning?

Hi Leila,

First, about the warning:

Did you create one specific metamodel extension? For instance, you should not use the "base extension" and the "traceability extension" together, because they both have ElementRef elements. You can check on the .ecore file with the weaving metamodel to see if it has more than one ElementRef.

Second, I didn't manage to reproduce the "internal errors". These errors typically happen when the transformation cannot find (or configure) the input models. Do you use the AMW model handler?

The method setElementIDbyRefType does not have any return type (I just corrected the description on the Wiki), so this could be the cause of the internal error (if you were trying to get its result).

Let me know if this information helps you.

Regards,

Marcos.

Leila wrote:
Hi (Marcos :)),

So I have 2 transformations that also create the traceability models:
T1 : from UML2 to MMA (outputs : out1 and trace1)
T2 : from MMA to MMB (input: out1, outputs: out2, trace2)


During T2, I'm getting the following warning:


Warning: metamodel contains several classifiers with same name: ElementRef

More specifically, when the following line is executed:

wmodel : Trace!TraceModel (
     wovenModels <- Sequence {model_IN, model_OUT}
   ),


What is interesting (and I don't know if its related) is that when I use setElementIDbyRefType to set xmi:ids of out1, T2 gives the warning and 'internal error launching'.


BUT, if the elements in out1 don't have the xmi:ids previously set with setElementIDbyRefType, then, T2 gives the warning, but proceeds creating the right models (out2 and trace2).


Do you have an idea of what could be going on?


Thanks in Advance!


- Leila