Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [ Xpand ] Alternative of WorkflowRunner.run
[ Xpand ] Alternative of WorkflowRunner.run [message #1077380] Thu, 01 August 2013 16:07 Go to next message
Adnan AL-SOSWA is currently offline Adnan AL-SOSWAFriend
Messages: 41
Registered: May 2010
Member
Hi all ,

During implementation of Xpand workflow programmtically , I noticed that the function WorkflowRunner.run is now deprecated. what is the alternative of this function.

thanks in advance.

[Updated on: Thu, 01 August 2013 16:07]

Report message to a moderator

Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1077419 is a reply to message #1077380] Thu, 01 August 2013 17:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
Guess you should call doRun. Or WorkflowRunner.main

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de

[Updated on: Fri, 02 August 2013 08:13]

Report message to a moderator

Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1078059 is a reply to message #1077419] Fri, 02 August 2013 13:36 Go to previous messageGo to next message
Adnan AL-SOSWA is currently offline Adnan AL-SOSWAFriend
Messages: 41
Registered: May 2010
Member
HI Christian ,

Thank you for response , Could you please help me with example how I can
specify the modelpath , and the outputpath using dorun
I read about Commandline but I faild to understand how I manage it

any guidance or refrence I appreciate it .
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1078089 is a reply to message #1077419] Fri, 02 August 2013 14:24 Go to previous messageGo to next message
Adnan AL-SOSWA is currently offline Adnan AL-SOSWAFriend
Messages: 41
Registered: May 2010
Member
No Message Body

[Updated on: Fri, 02 August 2013 14:24]

Report message to a moderator

Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1078211 is a reply to message #1078089] Fri, 02 August 2013 17:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
Sorry you have to Digg into the Code Yourself
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1081807 is a reply to message #1078211] Wed, 07 August 2013 18:18 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Hey guys,

I think Adnan has a question that begs more than a "figure it out for yourself" kind of answer. Because I've been working with Xpand for more than five years now, and though I've built a couple of frameworks that actually do this magic, it's still not clear to me how to cleanly execute an arbitrary workflow against an arbitrary file from within a running Eclipse instance without going through a lot of machinations with class loaders and various hacks. It seems to me that this has to be one of the major potential use cases for Xpand. I've been wanting to demo some very basic Xpand capabilities to folks I work with, and wanting to start from a clean sheet, I have spent the better part of a day trying to get this to work, using both mwe and mwe2 workflows and all sorts of combinations of runtime environments.

Not only are there not any clear recipes for what should be a very simple thing to do, there are still significant long-standing blockers. (See e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=318721) not to mention capability to bork your running Eclipse instance.. http://www.eclipse.org/forums/index.php/mv/msg/170632/542911/#msg_542911.

So, just my opinion, but I think we need a better recipe here! Very Happy

cheers,

Miles
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1081905 is a reply to message #1081807] Wed, 07 August 2013 21:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
Hi,

if i dont know it and would have to dig myself i can only say: dig yourself.

regarding your other thoughts. we are talking about mwe1 here and not mwe2.
i am neither a commiter to xpand nor to xtext nor to mwe and i dont have the time to work on bugfixes next to my (spare time) community work.
so i think contributions are always welcome.

~Christian
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1081908 is a reply to message #1081905] Wed, 07 August 2013 21:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
P.S: in my project i dont use parsed workflows at all. we stick them together with java which basically solves all these problems.
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1081911 is a reply to message #1081908] Wed, 07 August 2013 21:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6485
Registered: July 2009
Senior Member
P.P.S: regarding the reccipes: maybe you can file bugs against the docs.
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1081916 is a reply to message #1081905] Wed, 07 August 2013 21:36 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Christian Dietrich wrote on Wed, 07 August 2013 17:19
Hi,

if i dont know it and would have to dig myself i can only say: dig yourself.


hehe

Quote:
regarding your other thoughts. we are talking about mwe1 here and not mwe2.
i am neither a commiter to xpand nor to xtext nor to mwe and i dont have the time to work on bugfixes next to my (spare time) community work.
so i think contributions are always welcome.


Yeah, I just hijacked this thread. Didn't mean to imply that you were the one that should be coming up with the solution..!
Re: [ Xpand ] Alternative of WorkflowRunner.run [message #1082570 is a reply to message #1081916] Thu, 08 August 2013 19:30 Go to previous message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1340
Registered: July 2009
Senior Member
Heh, I just found http://www.eclipse.org/Xtext/documentation.html#TutorialCodeGeneration, which solves all of my issues in a much simpler way. Very Happy
Previous Topic:JET2 Editor Improvement
Next Topic:[Acceleo] Error installing 'Ecore to Python code generator' for Acceleo 3.2
Goto Forum:
  


Current Time: Sun Nov 23 22:41:16 GMT 2014

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

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