Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] how to pass a parameter to a Query
[ATL] how to pass a parameter to a Query [message #103537] Wed, 15 April 2009 12:16
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Hello

I am using some existing code (an ATL query) where the result model is
hard coded in the ATL source (see code below). The transformation query
is launched programatically.

I would like to pass the result file name and its path as parameters.

Is it possible, and how ?

8< -------------------------------

query XML2Text_Query = XML!XMLDocument.allInstances()->
collect(doc | doc.toText().writeTo(
('/tmp/'
+
'Output.grf').debug('Persiform XML2Text - Writing XML file')
));


uses XML2Text;

8< -------------------------------

--
Cordialement

Vincent MAHÉ

Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71
Previous Topic:[ATL] conditionally run a transformation based on the result of another transformation
Next Topic:[ATL] can we "cast" an EMFModel to an ASMModel?
Goto Forum:
  


Current Time: Tue Apr 16 18:47:30 GMT 2024

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

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

Back to the top