Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]
[ATL] [message #89517] Mon, 01 September 2008 12:40
Amalia Garcia is currently offline Amalia GarciaFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I have the next hierarchy:
Key (Granparent)
AlternateKey, ForeignKey and InversionEntry (All are children of Key)
PrimaryKey (It is child of AlternaKey)

And in one rule I want to go to PrimaryKey and in other go to
ForeignKey.My rules are:

rule PrimaryKey2ClavePrimaria
{
from
source: logical!PrimaryKey
to
target:MCD_MetaModel!ClavePrimaria
(
atributo<-source.attributes, entidad<-source.entity
)
}

rule ForeignKey2ClavePrimaria
{
from
source: logical!ForeignKey
....
}

But when I went to run, The rule doesn't execute.

But if I put his parent, the execution is correct:
rule PrimaryKey2ClavePrimaria
{
from
source: logical!AlternateKey (parent of Primary Key)
......
}

rule ForeignKey2ClavePrimaria
{
from
source: logical!Key (parent of Foreign key)
......
}

Can you help me?, Why do it happen?

Thank you
Previous Topic:[ATL] Use Case - Rational Rose to UML2 Tools
Next Topic:[ATL]Problem with entry metamodel that it has hierarchy
Goto Forum:
  


Current Time: Thu Apr 25 08:54:38 GMT 2024

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

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

Back to the top