Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Mar 15 01:18:41 EDT 2025

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

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

Back to the top