Dear David,

Thanks a lot for the quick reply. Assuming that I have all the plugins 
available, do I have to perform any other initialisations to get these methods 
to work or simply constructing the appropriate objects would be enough? Using a 
bit of Google-Fu, I found the following tutorial. However, it is for Taverna 
1.6. Do I have to perform any of the steps mentioned in it? If not, any 
documentation that would help me get started quickly?

--Kamran

On 27 Mar 2012, at 16:27, David Withers wrote:

> Hi Kamran,
> 
> To generate the DOT programmatically you will have to :
> 
> 1. Parse the workflow file to create a Dataflow object - see 
> net.sf.taverna.t2.workbench.file.impl.T2DataflowOpener.openDataflow()
> 2. Generate a Graph from the Dataflow - 
> net.sf.taverna.t2.workbench.models.graph.GraphController.generateGraph()
> 3. Generate the DOT from the Graph - 
> net.sf.taverna.t2.workbench.models.graph.DotWriter.writeGraph()
> 
> It's not quite as simple as this though; as Taverna has a plugin based 
> architecture you will have to ensure that you also have all the required 
> activity plugins for all the activity types that your workflows use.
> 
> David.
> 
> On 27 Mar 2012, at 14:32, Kamran Soomro wrote:
> 
>> Hi,
>> 
>> I am looking to convert a bunch of Taverna 2 workflows to the DOT language 
>> in bulk as I don't want to load up each workflow in the application and save 
>> it manually. I was wondering if there was any way to do that? I have looked 
>> at the command line tool but apparently it doesn't support exporting the 
>> workflows to DOT. I see that there is an API method to write a Taverna graph 
>> to a DOT file. If there is no existing way to do what I want, I am ready to 
>> write my own code and convert the workflow through the API. In that case, I 
>> would appreciate it somebody can point me to any tutorials which can help to 
>> understand how I can load the workflows and convert them programmatically. 
>> Thank you.
>> 
>> --Kamran
>> 
> 
> -- 
> David Withers
> School of Computer Science, University of Manchester,
> Oxford Road, Manchester, M13 9PL, UK.
> +44 (0)161 275 0683
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> taverna-users mailing list
> [email protected]
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to