Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [QVTo] get the path of the in model
[QVTo] get the path of the in model [message #837616] Thu, 05 April 2012 22:34 Go to next message
Julien DeAntoni is currently offline Julien DeAntoniFriend
Messages: 37
Registered: July 2009
Member
Hello,

I'm trying to get the file path of one of the in model in QVTo....
It's very usefull to set an import/include of the input file in the resulting model

It seems impossible, is there a trick ?

thanks,

j.
Re: [QVTo] get the path of the in model [message #837855 is a reply to message #837616] Fri, 06 April 2012 07:15 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi Julien

Can you be clearer? This is the M2T newsgroup.

Are you trying to get QVTo to prepare for an M2T?

Regards

Ed Willink


On 05/04/2012 23:34, Julien DeAntoni wrote:
> Hello,
>
> I'm trying to get the file path of one of the in model in QVTo....
> It's very usefull to set an import/include of the input file in the
> resulting model
>
> It seems impossible, is there a trick ?
>
> thanks,
>
> j.
Re: [QVTo] get the path of the in model [message #837878 is a reply to message #837855] Fri, 06 April 2012 08:10 Go to previous messageGo to next message
Julien DeAntoni is currently offline Julien DeAntoniFriend
Messages: 37
Registered: July 2009
Member
Woooops sorry it should goes to the M2M forum, I do not know how to move it :-/

In fact I create a M2T transformation whose result is a QVTo specification. However my problem is for the QVTo specification itself.

In fact I have a model in input of my transformation provided by the runConfiguration (let's say '../adirectory/model.xmi'). In the resulting model, I'd like to set a String attribute with the model path (i.e. '../adirectory/model.xmi').

Can I do this ?

thanks,

j.
Re: [QVTo] get the path of the in model [message #837904 is a reply to message #837878] Fri, 06 April 2012 09:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi Julien

I think you can either pass an additional string parameter to the QVTo
transformation, or have a Java helper/blackbox to provide the interrogation.

Regards

Ed Willink

On 06/04/2012 09:10, Julien DeAntoni wrote:
> Woooops sorry it should goes to the M2M forum, I do not know how to
> move it :-/
>
> In fact I create a M2T transformation whose result is a QVTo
> specification. However my problem is for the QVTo specification itself.
>
> In fact I have a model in input of my transformation provided by the
> runConfiguration (let's say '../adirectory/model.xmi'). In the
> resulting model, I'd like to set a String attribute with the model
> path (i.e. '../adirectory/model.xmi').
>
> Can I do this ?
>
> thanks,
>
> j.
Re: [QVTo] get the path of the in model [message #838017 is a reply to message #837904] Fri, 06 April 2012 12:49 Go to previous message
Julien DeAntoni is currently offline Julien DeAntoniFriend
Messages: 37
Registered: July 2009
Member
Thanks Ed, it works fine by calling java code...

best regards,

j.
Previous Topic:[XPAND] Convert real to integer
Next Topic:MWE: Using GUI components in workflow?
Goto Forum:
  


Current Time: Mon Nov 24 14:22:13 GMT 2014

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

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