On 10 Apr 2007, at 14:01, Anika Joecker wrote:
Hello,
In my program I integrated Taverna for the execution of workflows
without Gui.
By updating the classes from Taverna 1.4 to Taverna 1.5.1 I
couldn't find the
freefluo classes
(uk.ac.soton.itinnovation.freefluo.util.xml.XmlUtils).
But I found a WorkflowLauncher class in the JavaDoc, which enables
executing a
workflow without the gui.
I tried to use the WorkflowLauncher too, but couldn't find the
execute method
in 1.5.1. Only a main method, which returns no result.
You need to create an instance of the WorkflowLauncher.
Try something like this:
String workflow = "RPSBlastWorkflowWithParameters.xml";
File workflowXmlFile = new File(workflow);
URL workflowURL = workflowXmlFile.toURI().toURL();
WorkflowLauncher launcher = new WorkflowLauncher(workflowURL);
Map inputs = new HashMap();
(..)
Map results = launcher.execute(inputs);
Note that unfortunately there are currently some issues with how you
invoke Taverna 1.5 code because we have introduced Raven, which for
now would mean you also need to launch your code through Raven, and
also at the first launch do some initialisation.
How to run your code through Raven is unfortunately non-trivial, but
the wiki page http://www.mygrid.org.uk/wiki/Mygrid/
ExecutingWorkflowOutsideOfTaverna should show an example of how this
whole thing can be done.
We are working on making it easier to do these API things by
separating these initialisation steps into a utility class, also I
have to mention we are currently developing an 'execute workflow' web
service: http://www.mygrid.org.uk/jira/browse/TAV-18