Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem when using allInstancesFrom(ATL)
[ATL] problem when using allInstancesFrom [message #499471] Sun, 22 November 2009 21:27 Go to next message
Rodo  is currently offline Rodo Friend
Messages: 3
Registered: November 2009
Junior Member
Hello everybody,
i want to apply the following rule ( see bottom) to transform a Family!Member to a Person!Male. A Person!Male have a fullName and Opa, an Opa is also a Person!Male and is the only element in IN1. I am trying to get it with MMPersons!Male.allInstancesFrom('IN1') command but it doesn't work could anyone tell me please what i am doing wrong?

module cloneTwoF2P;
create OUT : MMPersons from IN : MMFamilies, IN1 : MMPersons;

...

rule M2MannKind{
from s: MMFamilies!Member(s.isKindUndMale())

to t: MMPersons!Male(fullName <- s.fisrtName + ' ' + s.refImmediateComposite().lastName,
Opa <- MMPersons!Male.allInstancesFrom('IN1')-> any(e | e.oclIsTypeOf(MMPersons!Person))
)
}

[Updated on: Sun, 22 November 2009 21:29]

Report message to a moderator

Re: [ATL] problem when using allInstancesFrom [message #499479 is a reply to message #499471] Sun, 22 November 2009 22:39 Go to previous message
Rodo  is currently offline Rodo Friend
Messages: 3
Registered: November 2009
Junior Member
i have just figured it out. i was missing a rule Rolling Eyes

[Updated on: Tue, 24 November 2009 09:55]

Report message to a moderator

Previous Topic:[ATL] ATL-File to Ecore-Model
Next Topic:Debugger for QVTO?
Goto Forum:
  


Current Time: Thu Apr 25 12:08:20 GMT 2024

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

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

Back to the top