Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » running workflow from java
running workflow from java [message #697837] Mon, 18 July 2011 07:42 Go to next message
st oehm is currently offline st oehmFriend
Messages: 79
Registered: October 2009
Member
hi
i tried to run my workflow from java and used the same calls as in the eclipse helpcontents

String wfFile = "somePath\\workflow.mwe";
Map properties = new HashMap();
Map slotContents = new HashMap();
new WorkflowRunner().run(wfFile ,
new NullProgressMonitor(), properties, slotContents)

it does not work, because the run-method is expecting a ProgressMonitor and things like this lead to an error:

ProgressMonitor p = new NullProgressMonitor();

so i tried it with just null for the progressmonitor, it runs but doesn't work like i expected, because the properties are set in a false way
so maybe someone knows what the right call is.

best regards
stoehm
Re: running workflow from java [message #697873 is a reply to message #697837] Mon, 18 July 2011 09:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14735
Registered: July 2009
Senior Member
Hi,

it should work with the org.eclipse.emf.mwe.core.monitor.NullProgressMonitor
what is the error you get?

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: running workflow from java [message #697883 is a reply to message #697873] Mon, 18 July 2011 09:27 Go to previous message
st oehm is currently offline st oehmFriend
Messages: 79
Registered: October 2009
Member
hi christian
i just saw it, i have selected the wrong NullProgressMonitior (a little bit dopey)
thanks for help
stoehm
Previous Topic:[Xpand] execute template in workspace
Next Topic:[Acceleo] Java Service Wrapper issues
Goto Forum:
  


Current Time: Sat Dec 07 21:14:01 GMT 2024

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

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

Back to the top