Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:34 Go to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: July 2010
Junior Member
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 22:57]

Report message to a moderator

Re: Execute MWE Workflow programmatically [message #555975 is a reply to message #555880] Mon, 30 August 2010 12:32 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
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 10:00 Go to previous messageGo to next message
Enrico Randazzo is currently offline Enrico RandazzoFriend
Messages: 13
Registered: July 2009
Junior Member
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 10:05 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

Then use WorkflowRunner

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Model to Text : case of "unsuported by target language"
Next Topic:[Acceleo] Problem with String replaceAll
Goto Forum:
  


Current Time: Thu Mar 28 22:57:13 GMT 2024

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

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

Back to the top