3 messages in net.sourceforge.lists.taverna-usersRe: [Taverna-users] Taverna workflow ...
FromSent OnAttachments
Anika JoeckerApr 10, 2007 6:01 am 
Stian SoilandApr 11, 2007 2:31 am 
Anika JoeckerApr 11, 2007 5:05 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [Taverna-users] Taverna workflow execution without GuiActions...
From:Stian Soiland (ssoi@cs.man.ac.uk)
Date:Apr 11, 2007 2:31:25 am
List:net.sourceforge.lists.taverna-users

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