Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Running qvto Transformations with in/out Metamodels registered by Metamodel-Plugins
Running qvto Transformations with in/out Metamodels registered by Metamodel-Plugins [message #1268429] Mon, 10 March 2014 09:41 Go to next message
Matthias Jurisch is currently offline Matthias Jurisch
Messages: 3
Registered: September 2013
Junior Member
Hello,

I am trying to run a Qvto transformation from an eclipse plugin. The input and output metamodel of the transformation are both registered by their respective Metamodel-Plugins.

For running the transformation, I am following the approach described here:https://wiki.eclipse.org/QVTOML/Examples/InvokeInJava. However, the execution of the Transformation fails. The error message received from TransformationExecutor.execute (Unresolved compilation errors, ''Unknown Type'') show that when running the transformation, the model itself can be found, but some types can not.

All elements that have ''unknown type'' errors are from the output metamodel. The difference between the input and output metamodel is that the latter consists of several packages, that each have different URIs. I believe that this is the reason for the compilation errors. When running the Qvto-Transformation via the run-as dialogue from the qvto project, the transformation works.

So here is my question: How do I have to change the transformation/registration of the metamodels so I can avoid this problem?

Greetings,

Matthias Jurisch

[Updated on: Mon, 10 March 2014 10:33]

Report message to a moderator

Re: Running qvto Transformations with in/out Metamodels registered by Metamodel-Plugins [message #1268502 is a reply to message #1268429] Mon, 10 March 2014 11:39 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4035
Registered: July 2009
Senior Member
HI

https://wiki.eclipse.org/OCL/ForumNetiquette

Regards

Ed Willink


On 10/03/2014 14:20, Matthias Jurisch wrote:
> Hello,
>
> I am trying to run a Qvto transformation from an eclipse plugin. The
> input and output metamodel of the transformation are both registered
> by their respective Metamodel-Plugins.
>
> For running the transformation, I am following the approach described
> here:https://wiki.eclipse.org/QVTOML/Examples/InvokeInJava. However,
> the execution of the Transformation fails. The error message received
> from TransformationExecutor.execute (Unresolved compilation errors,
> ''Unknown Type'') show that when running the transformation, the model
> itself can be found, but some types can not.
> All elements that have ''unknown type'' errors are from the output
> metamodel. The difference between the output and input metamodel is
> that the latter consists of several packages, that each have different
> URIs. I believe that this is the reason for the compilation errors.
> When running the Qvto-Transformation via the run-as dialogue from the
> qvto project, the transformation works.
>
> So here is my question: How do I have to change the
> transformation/registration of the metamodels so I can avoid this
> problem?
>
> Greetings,
> Matthias Jurisch
>
>
Previous Topic:Research survey to improve quality of QVTo code
Next Topic:helper with side effect in QVT - OML
Goto Forum:
  


Current Time: Fri Aug 29 16:26:27 EDT 2014

Powered by FUDForum. Page generated in 0.01773 seconds