Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » No generation with Unique Lazy rule calling itself
No generation with Unique Lazy rule calling itself [message #95739] Thu, 20 November 2008 09:23
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
Hi, i have a problem with a unique lazy rule that is calling itself. In a
class property, to generate references to other model elements i use
unique lazy rule calls, they all work fine, but when it is a lazy rule
that calls itself, the reference is not generated.
In the model i have a model element that has a property named "extend"
that points to another model element of the same type, this is why the
unique lazy rule calls itself, here is the rule:

unique lazy rule myModelElements {
from s : UML2!Class
to t : MM!ModelElement (
name <- s.name,
extend<-s.getExtendingModelElements()
->collect(c |
thisModule.myModelElements(c))->first()
}

Can anybody tell me if i did something wrong? Or if there is a better way
to do that?
Thanks in advance for your help.
Previous Topic:[ATL] UML2!PrimitiveType.allInstancesFrom('IN') doesn't return any elements.
Next Topic:[ATL] Getting imported packages of a model
Goto Forum:
  


Current Time: Wed Sep 18 19:56:35 GMT 2024

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

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

Back to the top