Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem with a query on EMF-specific VM
[ATL] problem with a query on EMF-specific VM [message #743208] Fri, 21 October 2011 08:16 Go to next message
El Arbi Aboussoror is currently offline El Arbi AboussororFriend
Messages: 90
Registered: June 2010
Member
Hello,

I have a problem with the following query:

query test=
	thisModule.getInputActions().debug('Result')
;
helper def: getInputActions():Sequence(Scenario!Action)=
	Scenario!Action.allInstances()->select(a | a.kind='INPUT')
;


The execution using the EMF-Specific VM give me a wrong result:

Result: Sequence {}

BUT the model is not empty !

Using the Regular-VM I have the following result:
Result: Sequence {IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>}

Re: [ATL] problem with a query on EMF-specific VM [message #758264 is a reply to message #743208] Tue, 22 November 2011 13:47 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Hi,
Is the kind property of type enumeration? If so it should check for equaliy via #INPUT.
Regards,
Ronan
Previous Topic:[ATL] Unicode string literals in transformation
Next Topic:[ATL] "Continue" Java statement
Goto Forum:
  


Current Time: Fri Oct 04 21:22:51 GMT 2024

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

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

Back to the top