Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] lazy rules condition(ATL)
[ATL] lazy rules condition [message #499440] Sun, 22 November 2009 15:52 Go to next message
Rodo  is currently offline Rodo Friend
Messages: 3
Registered: November 2009
Junior Member
Hello everyone,
i am trying to call a lazy rule that has a condition as guard. My Problem is that the condition in the lazy rule is not evaluated at all, so i can not filter any objects when calling the lazy rule .

rule FM2FemaleP{
from s: MMFamilies!Member (s.isFemale())

to t: MMPersons!Female (fullName <- s.fisrtName + ' ' + s.refImmediateComposite().lastName,
gf<- thisModule.GF(s)
--calling the lazy rule
)
}

lazy rule GF{
from s: MMFamilies!Member (s.hasGF()) --the filter that does not work

to t: MMPersons!Male (fullName <- 'Opi' + '' + s.refImmediateComposite().lastName)
}

could anyone tell me why is this, i thought that the only difference between normal rules and lazy ones, was how they where called

[Updated on: Sun, 22 November 2009 15:53]

Report message to a moderator

Re: [ATL] lazy rules condition [message #499820 is a reply to message #499440] Tue, 24 November 2009 09:49 Go to previous message
Marcel  is currently offline Marcel Friend
Messages: 54
Registered: July 2009
Member
I have had the same problem.
Instead of putting the condition on the lazy rule, I made a selection before the lazy rule is called.
In this way, the selection is done on beforehand and you don't need a condition in the lazy rule.

I would also like to know why it appears that this condition is not evaluated.
Previous Topic:[ATL] Unique lazy rules with multiple arguments
Next Topic:How ATL is different from Xtend
Goto Forum:
  


Current Time: Thu Oct 24 04:52:37 GMT 2019

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

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

Back to the top