No generation with Unique Lazy rule calling itself [message #95739] |
Thu, 20 November 2008 04:23 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.06132 seconds