Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 05 03:31:58 EDT 2025

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

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

Back to the top