ATLAS Transformation Language
How to know if an object and its parent are the same object
Posts  1 - 1  of  1
javitroya
Hello all. I have in my metamodel a class with a PARENT reference to itself.
I want to create a matched rule and in the from section I want to take only those objects whose parent are themselves, but I can't do it.
I try to write
Rule....
from
c : ClassMM!Class (c = c.parent)
.....
.....
But then I have the following error message:
“GRAVE: message: ERROR: OclUndefined has no property”

Any ideas??
Thank you
Save
Cancel
Reply
 
x
OK