Problem running WorkflowRunner from java. [message #524053] |
Tue, 30 March 2010 13:30 |
Syed Imran Messages: 25 Registered: October 2009 Location: Ireland |
Junior Member |
|
|
Hi All,
When i call the the class from my GMF-editor where i have have written the method to call workflow by using WorkflowRunner the code is not generated
new WorkflowRunner().run(workflowFile, new NullProgressMonitor(), new HashMap(), new HashMap());
Although when i run the workflow.oaw using Run as -> oAW Workflow then the code is there.
Any idea why is this happening, secondly the STACK (INFO)is in red color in console rather then black.
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO: ------------------------------------------------------------ --------------------------
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO: openArchitectureWare 4.x Development
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO: (c) 2005-2008 openarchitectureware.org and contributors
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO: ------------------------------------------------------------ --------------------------
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO: running workflow: ../Analysis.diagram/src/workflow.oaw
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner prepare
INFO:
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.container.CompositeCompone nt internalInvoke
INFO: XmiReader(xmiParser): file 'E:/Eclipse_workspace/runtime-New_configuration/Allah/exampl e.analysis' => slot 'model'
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.container.CompositeCompone nt internalInvoke
INFO: DirectoryCleaner(dirCleaner): cleaning directory 'srccode, srccode'
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.common.DirectoryCleaner invokeInternal
INFO: Cleaning C:\Documents and Settings\S. Imran\srccode
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.common.DirectoryCleaner invokeInternal
INFO: Cleaning C:\Documents and Settings\S. Imran\srccode
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.container.CompositeCompone nt internalInvoke
INFO: Generator(generator): generating 'template::Root::Root FOR model' => srccode/
Mar 30, 2010 2:22:42 PM org.openarchitectureware.xpand2.Generator invokeInternal2
INFO: Written 1 files to outlet [default](srccode/)
Mar 30, 2010 2:22:42 PM org.openarchitectureware.workflow.WorkflowRunner executeWorkflow
INFO: workflow completed in 16ms!
|
|
|
|
Re: Problem running WorkflowRunner from java. [message #524060 is a reply to message #524053] |
Tue, 30 March 2010 13:51 |
|
When invoking the WorkflowRunner from within a plugin you have to ensure that the classpath is set up correct.
The console appeares red because log4j is not on the classpath. commons-logging will use stdout then. Add a dependency to log4j and that's it.
Kind regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03971 seconds