|Extract Model Element Type with getReferredElement [message #897068]
||Sat, 21 July 2012 12:19
| Giacomo Lamonaco
Registered: July 2012
I need to create an ATL trasformation that, starting from a weaving model and two generic model, allows to generate a new weaving model.
My interested is related to the instances of the two input model.
In the weaving model i have information about the metaclass relation, and i want to generate all'instance starting from this relation, not knowing the metamodels of the input models.
I've founded this function, getReferredElement, that seems to be right for me, but when i call it i receive an oclundefined element.
Starting from this result, i can call allInstancesFrom('left or right model') n order to obtain the instances.
Where i'm wronging?
[Updated on: Sat, 21 July 2012 12:20]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02165 seconds