[ATL] reference model elements of other rules [message #99019] |
Thu, 05 February 2009 11:18  |
Eclipse User |
|
|
|
Hello,
I have a refinement transformation for 2 input and output models (with
different meta-models). One of the models has to reference a model element
of the other model that is created in the same transformation. Consider
the following example:
rule Rule1 {
from i : MM1!ModelElement1
to o : MM1!ModelElement1
(
attribute <- attribute1
),
attribute1 : MM1!ModelElement2
(
stringAttribute <- 'aString'
)
}
rule Rule2 {
from i : MM2!ModelElement2
to o : MM2!ModelElement2
(
attribute <- ??? -- should reference the model element "attribute1" of
Rule1
)
}
Is there a solution for this problem? I tried to use the resolveTemp()
function, but it did not work...
Best regards,
Michael
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds