On Tue, Oct 20, 2009 at 18:58, Michael Heuer <[email protected]> wrote: > I'm not very familiar with the Taverna interface, where can I create input > streams? I see io/Read Text File and ui/Select File, which provide > filecontents and selectedFile outputs respectively. I'm not sure where to > find their types, so I would guess String and File.
Almost any input data can be requested as an InputStream, however most current activities request data as byte[] or Strings. The reference service will in those cases need to load the full data up to memory to be available to the activity. This includes the current local workers, who don't currently return or accept streams. The easiest way to do so directly now would be to just use an input port, and when running the workflow provide a file as an input. The file path will be given as a reference, and when the activity requests an InputStream, a FileInputStream will be created under the hood. Another way would be for you to create a beanshell script that returns a java.util.File or URL instance - these would be registered in the same way as file and URL references in the run dialogue. -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
