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 04:16 Go to next message
El Arbi Aboussoror is currently offline El Arbi Aboussoror
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 08:47 Go to previous message
Ronan B is currently offline Ronan B
Messages: 229
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: Wed Jul 23 01:52:46 EDT 2014

Powered by FUDForum. Page generated in 0.02106 seconds