Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]
[ATL] [message #89634] Tue, 02 September 2008 11:44
Amalia Garcia is currently offline Amalia GarciaFriend
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
....
}
Previous Topic:[ATL] ATL Transformation Zoo
Next Topic:[ATL]Leaf metaclass donŽt run in rule
Goto Forum:
  


Current Time: Sat Apr 20 03:13:40 GMT 2024

Powered by FUDForum. Page generated in 0.02481 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top