Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Execute .qvto transformations from MWE
[QVTo] Execute .qvto transformations from MWE [message #106153] Sun, 07 June 2009 11:45 Go to next message
Eclipse UserFriend
I am looking for a WorkflowComponent implementation for executing .qvto
transformation from .mwe scripts (Eclipse EMFT Modeling Workflow Engine).
Do you know any such implementation? If not, some directions how to write
one would be wonderful.

Thanks,

Ioan
Re: [QVTo] Execute .qvto transformations from MWE [message #106235 is a reply to message #106153] Mon, 08 June 2009 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ioan,

The M2M/QVT Operational component does not implement any support for
integration with EMFT Modeling Workflow and
I'm not aware that some does.

Concerning QVT, you might want to look at the link bellow for learning how
to call a transformation programmatically:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.qvt.oml/examples/org.eclipse.m2m.qvt.oml.econ20 09.tutorial/projects/qvto.ecore2uml.invoke/src/qvto/ecore2um l/invoke/ConvertEcore2UML.java?root=Modeling_Project&vie w=markup

I assume, there is a mechanism to hook your transf. invocation into the
workflow but
better to ask at eclipse.technology.emft.

Regards,
/Radek


On Sun, 07 Jun 2009 17:45:01 +0200, Ioan <ioan.salau@insighteck.com>
wrote:

> I am looking for a WorkflowComponent implementation for executing .qvto
> transformation from .mwe scripts (Eclipse EMFT Modeling Workflow
> Engine). Do you know any such implementation? If not, some directions
> how to write one would be wonderful. Thanks,
>
> Ioan
>
Re: [QVTo] Execute .qvto transformations from MWE [message #106512 is a reply to message #106235] Thu, 11 June 2009 22:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Radek,
Thanks for your help. The code you wrote is working fine from Action
but when I try to run from WME or run as Java Application ( main() ) I get
following Exception:


Exception in thread "main" java.lang.ExceptionInInitializerError
at
qvto.ecore2uml.invoke2.executor.TransformationExecutor.doLoa d(TransformationExecutor.java:189)
at
qvto.ecore2uml.invoke2.executor.TransformationExecutor.loadT ransformation(TransformationExecutor.java:92)
at
qvto.ecore2uml.invoke2.executor.TransformationExecutor.execu te(TransformationExecutor.java:121)
at qvto.ecore2uml.invoke2.InvokeQVT.convertEcore2UML(InvokeQVT. java:71)
at qvto.ecore2uml.invoke2.InvokeQVT.main(InvokeQVT.java:59)
Caused by: java.lang.NullPointerException
at
org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry$1.readFactories(UnitResolverFactory.java:66)
at
org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry$1. <init>(UnitResolverFactory.java:44)
at
org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry. <clinit>(UnitResolverFactory.java:43)
... 5 more


Apparently, inside of UnitResolverFactory, QVTo is trying to access
Extension Registry but pluginRegistry is null.


private List<UnitResolverFactory> readFactories() {
ArrayList<UnitResolverFactory> factoryEntries = new
ArrayList<UnitResolverFactory>();
IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
IExtensionPoint extensionPoint =
pluginRegistry.getExtensionPoint(POINT_ID);




Regards,

Ioan
Re: [QVTo] Execute .qvto transformations from MWE [message #106526 is a reply to message #106512] Fri, 12 June 2009 05:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ioan,

In case you are trying to run standalone (no Eclipse),
the bad news is that QVTo does not support this yet, though you can
use a headless eclipse application.

However, the good news is that we plan to support that in early milestones
of the next release.

Obviously, we should have handled such a situation gracefully, check for
the extension
registry availability and drop an explaining message.
Sorry for not clearly manifesting this limitation, the doc material is
always behind
the implementation due to lack of resources ;(.
We will improve that just after the Galileo release.

Regards,
/Radek



On Fri, 12 Jun 2009 04:54:29 +0200, Ioan <ioan.salau@insighteck.com>
wrote:

>
> Hi Radek,
> Thanks for your help. The code you wrote is working fine from Action
> but when I try to run from WME or run as Java Application ( main() ) I
> get following Exception:
>
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> qvto.ecore2uml.invoke2.executor.TransformationExecutor.doLoa d(TransformationExecutor.java:189)
> at
> qvto.ecore2uml.invoke2.executor.TransformationExecutor.loadT ransformation(TransformationExecutor.java:92)
> at
> qvto.ecore2uml.invoke2.executor.TransformationExecutor.execu te(TransformationExecutor.java:121)
> at qvto.ecore2uml.invoke2.InvokeQVT.convertEcore2UML(InvokeQVT. java:71)
> at qvto.ecore2uml.invoke2.InvokeQVT.main(InvokeQVT.java:59)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry$1.readFactories(UnitResolverFactory.java:66)
> at
> org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry$1. <init>(UnitResolverFactory.java:44)
> at
> org.eclipse.m2m.internal.qvt.oml.compiler.UnitResolverFactor y$Registry. <clinit>(UnitResolverFactory.java:43)
> ... 5 more
>
> Apparently, inside of UnitResolverFactory, QVTo is trying to access
> Extension Registry but pluginRegistry is null.
> private List<UnitResolverFactory> readFactories() {
> ArrayList<UnitResolverFactory> factoryEntries = new
> ArrayList<UnitResolverFactory>();
> IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
> IExtensionPoint extensionPoint =
> pluginRegistry.getExtensionPoint(POINT_ID);
> Regards,
>
> Ioan
>
Re: [QVTo] Execute .qvto transformations from MWE [message #106616 is a reply to message #106526] Tue, 16 June 2009 01:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Radek,
For now, I just created a Command that executes the MWE script and I am
OK with this workaround. Basically, instead of using default launcher "Run
As/MWE Workflow", I am using a Custom Command which invokes
programmatically MWE script.

Thanks,

Ioan
Re: [QVTo] Execute .qvto transformations from MWE [message #107853 is a reply to message #106235] Mon, 06 July 2009 01:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Radek,

What should I change in your sample to generate the trace model as well?

Thanks,

Ioan
Re: [QVTo] Execute .qvto transformations from MWE [message #107980 is a reply to message #107853] Tue, 07 July 2009 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ioan,

Unfortunately, the current invocation API does not give you access to
traces.
The trace meta-model is still internal, though we could support the trace
serialization
at a user provided URI. Will be solved by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.

If it's essential to your application and you need to stick to the
released QVTo 2.0.0, you could
use a custom transf. executor class based on the #282645 resolution.

Regards,
/Radek


On Mon, 06 Jul 2009 07:35:04 +0200, Ioan <ioan.salau@insighteck.com>
wrote:

> Hi Radek,
> What should I change in your sample to generate the trace model as
> well?
>
> Thanks,
>
> Ioan
>
Re: [QVTo] Execute .qvto transformations from MWE [message #498209 is a reply to message #106153] Sun, 15 November 2009 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Radek,

Quote:

In case you are trying to run standalone (no Eclipse),
the bad news is that QVTo does not support this yet, though you can
use a headless eclipse application.



Actually I tried the same, until my try failed due to the same exception "ExceptionInInitializerError" as in Ioan's example.

Quote:

However, the good news is that we plan to support that in early milestones
of the next release.



Are there any updates from the release plan? Is it still planned to support the standalone invokation of the transformation?

Thanks,
Christoph
Re: [QVTo] Execute .qvto transformations from MWE [message #498213 is a reply to message #498209] Sun, 15 November 2009 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Christoph,

We have done a great progress in Eclipse dependency cleanup, but need to
complete
the blackbox support outside Eclipse. Also, it still requires
some extra testing.
Yes, it's still planned.

Regards,
/Radek



On Sun, 15 Nov 2009 22:48:48 +0100, <christoph.ainhauser@googlemail.com>
wrote:

> Hi Radek,
>
> Quote:
>> In case you are trying to run standalone (no Eclipse),
>> the bad news is that QVTo does not support this yet, though you can
>> use a headless eclipse application.
>
>
> Actually I tried the same, until my try failed due to the same exception
> "ExceptionInInitializerError" as in Ioan's example.
>
> Quote:
>> However, the good news is that we plan to support that in early
>> milestones
>> of the next release.
>
>
> Are there any updates from the release plan? Is it still planned to
> support the standalone invokation of the transformation?
>
> Thanks,
> Christoph
Re: [QVTo] Execute .qvto transformations from MWE [message #498306 is a reply to message #106153] Mon, 16 November 2009 07:15 Go to previous message
Eclipse UserFriend
Hi,

thanks for the fast reply! This are very good news. I'm waiting ... Smile

Regards
Christoph
Previous Topic:[ATL] Creating N copies of a model element and keeping references intact
Next Topic:[QVTO] Composite Transformations
Goto Forum:
  


Current Time: Wed Apr 30 17:56:09 EDT 2025

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

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

Back to the top