[ATL] remove elements [message #758770] |
Thu, 24 November 2011 09:07  |
Eclipse User |
|
|
|
Hi All,
I have a problem with this simple transformation
that generate the result and also inappropriate elements (adresses of persons that person.age > 26)
rule Person2Student{
from
person : PersonMM!Person(person.age < 26)
to
student : StudentMM!Student(
name <- person.name --attribute
has_adress <-person.has_adress -- reference Person ----- 1..* : has_adress ----> Home
)
}
rule Home2Adress{){
from
home : PersonMM!Home
to
adress : StudentMM!Adress(
adress <- home.adress
)
}
So plz, How remove these elements from my output model
I want to express : remove Adresses of persons which are not transformed to Student
Thanks
[Updated on: Thu, 24 November 2011 09:27] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06423 seconds