[ATL] [message #89634] |
Tue, 02 September 2008 11:44 |
Amalia Garcia Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hello,
I want to tranform a entry metamodel in other. My entry metamodel has
inheritance.
My problem is with inheritance of metaclass and when I try use this
metaclass in the rules.
The inheritance of metaclass is:
Key (Granparent)
AlternateKey, ForeignKey and InversionEntry (All are children of Key)
PrimaryKey (It is child of AlternaKey)
If I try use in a rule the Grandparent o parent Metaclass I donŽt have
problem, but if I use a leaf metaclass I have a problem: my rule doesn't
execute ¿Why?, but if I donŽt use leaf metaclass, the rules execute
good.¿why?
Now put examples os transformation that run o don't run.
rule PrimaryKey2ClavePrimaria
{
from
source: logical!PrimaryKey -- DON'T RUN
to
target:MCD_MetaModel!ClavePrimaria
....
}
rule ForeignKey2ClavePrimaria
{
from
source: logical!ForeignKey -- DON'T RUN
....
}
rule AlternateKey2ClavePrimaria
{
from
source: logical!AlternateKey -- RUN
to
target:MCD_MetaModel!ClavePrimaria
....
}
rule Key2ClavePrimaria
{
from
source: logical!Key -- RUN
to
target:MCD_MetaModel!ClavePrimaria
....
}
|
|
|
Powered by
FUDForum. Page generated in 0.07006 seconds