Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Execute MWE Workflow programmatically(Execute MWE Workflow with Java)
Execute MWE Workflow programmatically [message #555880] Sun, 29 August 2010 18:34 Go to next message
Eclipse UserFriend
Hi all,

I'm trying to execute a M2T transformation using Xpand on a model created by GMF in a running instance of Eclipse. I have been doing some research and I think I need to use the WorkflowRunner class in order to dynamically specify the path of the instance model and the output path.

Can anyone suggest any tutorials that can help me to create a java class that can execute my MWE workflow file?

Another Question I have is how can I specify the path of the instance model directly in the MWE file? currently I am using the path 'org.Sparql.transformation/src/Top.xmi' to point to an instance model i have created in the development workbench, however the path of the model I want to transform is 'C:\Users\Owner\Desktop\runtime-EclipseApplication\Test\defa ult10.sparql' in the runtime Workbench.

Many thanks and regards,

jB

[Updated on: Sun, 29 August 2010 18:57] by Moderator

Re: Execute MWE Workflow programmatically [message #555975 is a reply to message #555880] Mon, 30 August 2010 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Am 8/30/10 12:34 AM, schrieb jaga1@hotmail.co.uk:
> Hi all,
>
> I'm trying to execute a M2T transformation using Xpand on a model
> created by GMF in a running instance of Eclipse. I have been doing some
> research and I think I need to use the WorkflowRunner class in order to
> dynamically specify the path of the instance model and the output path.
>
> Can anyone suggest any tutorials that can help me to create a java class
> that can execute my MWE workflow file?
>
> Many thanks and regards,
>
> jB

If you just want to invoke Xpand, you can use XpandFacade.

Sven


--
--
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Re: Execute MWE Workflow programmatically [message #557399 is a reply to message #555975] Tue, 07 September 2010 06:00 Go to previous messageGo to next message
Eclipse UserFriend
And if you need to run an MWE workflow?


Enrico
Re: Execute MWE Workflow programmatically [message #557400 is a reply to message #557399] Tue, 07 September 2010 06:05 Go to previous message
Eclipse UserFriend
Hi,

Then use WorkflowRunner

Regards
Christian
Previous Topic:Model to Text : case of "unsuported by target language"
Next Topic:[Acceleo] Problem with String replaceAll
Goto Forum:
  


Current Time: Sun Jul 06 22:47:46 EDT 2025

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

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

Back to the top