Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsproblem in helper
https://www.eclipse.org/forums/index.php/mv/msg/495877/1075558/#msg_1075558
I have a lazy rule and this lazy rule calls a helper. Although I pass the elements of input model to this helper, It checks for both elements of input and output and it stops with OUT! <unnamed>.
Before, that I use a helper in a rule not lazy rule, was fine. Is it because that I defined it in a lazy rule?
Thanks]]>Jeni Martin2013-07-29T16:27:29-00:00Re: problem in helper
https://www.eclipse.org/forums/index.php/mv/msg/495877/1075562/#msg_1075562
helper context MM! Dependency
def: findCM (): Set (MM! Association) =
MM!Association.allInstances()->select (e|e-> debug ('CM').hasStereotype('PRO1::CM') and
and e.endType -> at (1) =self.client -> at(1)
);
How I can specify that allInstances () should be calculated only for input elements not output elements?]]>Jeni Martin2013-07-29T16:35:53-00:00Re: problem in helper
https://www.eclipse.org/forums/index.php/mv/msg/495877/1075569/#msg_1075569
This should be
allInstancesFrom('model name')
Btw you can remove the () in the helper name, that way it does cache for the helper and it behaves just like a property so it's only calculated once for each element and not re-computed afterwards.]]>Sylvain EVEILLARD2013-07-29T16:50:22-00:00Re: problem in helper
https://www.eclipse.org/forums/index.php/mv/msg/495877/1075573/#msg_1075573
]]>Jeni Martin2013-07-29T16:58:13-00:00