Hello,

Unfortunately it looks like the thing that you need is not exposed in the API.  
 You can do the following

DataflowRunsComponent.getInstance().getPreviousWFRuns();

this gives you access to a list of DataflowRuns ie List<DataflowRun> - every 
run for that current instance of Taverna.  
Each of these DataflowRun objects has access to its ResultsComponent which in 
turn has access to the WorkflowInstanceFacade, Dataflow, ReferenceService and 
the results.  However this is all private!  I guess it is because this is a UI 
bit and not really to be used for exposing data.  

I guess what you could do is implement net.sf.taverna.t2.facade.ResultListener 
in your plugin which would let you capture the workflow results as they happen. 
 Or if you know the unique workflow id (you can get it from 
dataflowRun.getRunId()) for the run you are interested in then you could get 
the results using the Provenance API, see the MonitorViewComponent for an 
example of its use.

There are apparently plans to expose the results through the API but I have no 
idea when/if it will happen.  Sorry there isn't an easier way or a better 
answer (at least from me - any other Taverna folks know any different).

Cheers,

Ian


On 10 Aug 2010, at 11:51, Dennis Neumann wrote:

> Hello,
>> I guess the key thing is to make sure that the action can find the results - 
>> not 100% sure how it does that because  I haven't got the code checked out 
>> on my machine at the moment.
>> 
>> Cheers,
>> 
>> Ian
>> 
>> 
> this is exactly my problem. If I had the results, I could store them 
> myself to wherever I want. I thought that the result button could find 
> and store them automatically.
> 
> Cheers
> Dennis
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> taverna-hackers mailing list
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/
> Developers Guide: http://www.taverna.org.uk/developers/

Ian Dunlop
myGrid Team
School of Computer Science
University of Manchester


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to