Hi, i am making a investigation about this tecnology to know if i can
use in my tesis, but i need to make a integration of 2 or more
metamodels into 1, but i canŽt, in the time that i write two inputs in
the from inside of the rule this doesnŽt make anything, dont crash, dont
message error, just a output without information. i take the
Author2Person example for this, i include another package, my atl is this
module Author2Person2; -- Module Template
create OUT : Person from IN : Author, IN2 : Author2;
rule Author2
{
from a : Author!Author
to
p : Person!Person
(
name <- a.name, surname <- a.surname
)
}
the output i like the example without modification
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns="Person">
<Person name="Yuni" surname="Higuera"/>
<Person name="Jorge" surname="Rivas"/>
<Person name="Juan" surname="Rivas"/>
<Person name="Elsie" surname="Higuera"/>
</xmi:XMI>
but when i do this
module Author2Person2; -- Module Template
create OUT : Person from IN : Author, IN2 : Author2;
rule Author2
{
from a : Author!Author, b : Author2!Author2
to
p : Person!Person
(
name <- a.name, surname <- a.surname
)
}
note: the from in the rule is the diference, the output is this
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns="Person">
<Person/>
<Person/>
<Person/>
<Person/>
</xmi:XMI>
with no message error.
any help its usefull, sorry for my english, its not my native lenguaje.
thanks, bye