Skip to main content



      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 18:34 Go to next message
Eclipse UserFriend
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 03:15 Go to previous messageGo to next message
Eclipse UserFriend
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 04:10 Go to previous messageGo to next message
Eclipse UserFriend
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 05:04 Go to previous messageGo to next message
Eclipse UserFriend
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 08:49 Go to previous message
Eclipse UserFriend
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 Jul 07 21:58:34 EDT 2025

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

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

Back to the top