Hi All
I Have this simple transformation
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
)
}
}
I try to add anothor target that is the trace of my transformation
So, my transformation will be
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
)
person2Student : TraceMM!Person2Student
(per <- person,
std <- student
)
}
}
the problem that I have the same cross reference in the trace instance between person and student
and that is the student cross reference.
for example,
<?xml version="1.0" encoding="ISO-8859-1"?>
<trace:Trace xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"......
<pr2st>
<per href="My.student#//@students.0"/>
<std href="My.student#//@students.0"/>
</pr2st>
So, How Can I reference to a source element in my trace model
Thanks