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  |
Eclipse User |
|
|
|
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 #106526 is a reply to message #106512] |
Fri, 12 June 2009 05:33   |
Eclipse User |
|
|
|
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 #107980 is a reply to message #107853] |
Tue, 07 July 2009 06:20   |
Eclipse User |
|
|
|
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 #498213 is a reply to message #498209] |
Sun, 15 November 2009 17:08   |
Eclipse User |
|
|
|
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
|
|
| |
Goto Forum:
Current Time: Wed Apr 30 17:56:09 EDT 2025
Powered by FUDForum. Page generated in 0.09606 seconds
|