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 03:42 Go to next message
st oehm is currently offline st oehm
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 05:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6126
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
Re: running workflow from java [message #697883 is a reply to message #697873] Mon, 18 July 2011 05:27 Go to previous message
st oehm is currently offline st oehm
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: Wed Jul 23 20:31:02 EDT 2014

Powered by FUDForum. Page generated in 0.02207 seconds