Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Using of Sequence as global variable
Using of Sequence as global variable [message #1341863] Thu, 08 May 2014 17:41 Go to next message
Samantha Parker is currently offline Samantha Parker
Messages: 4
Registered: April 2014
Junior Member
Hi, I am doing a model transformation and I need to save some items that I can reuse. I used a Sequence as a global variable like these:

helper def: events: Sequence(TypeA!ViewElementEvent) = Sequence{};


and I use it in that way:

do {
	    thisModule.events <- thisModule.search(s.viewElements);
}


This way is correct in fact contain what I need, but when I associate the Sequence to the element to transform in the Rule

composedBy <- thisModule.events


this does not produce any results. Where am I wrong?
Re: Using of Sequence as global variable [message #1349438 is a reply to message #1341863] Mon, 12 May 2014 07:36 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
Be careful that there is no guarantee on the order for the rules execution. You can't do something in a rule in order to re-use the result in another rule for exemple.
Previous Topic:[EMFTVM] Exception while loading metamodel
Next Topic:[solved] helper call two sentences ??
Goto Forum:
  


Current Time: Tue Sep 02 21:30:40 GMT 2014

Powered by FUDForum. Page generated in 0.03670 seconds