String[] does the trick, I must have forgotten to reload the service properly when testing.
Thank you :) Best wishes Allan Lind-Thomsen PhD. Student, Phone: +045 353 27819 Wilhelm Johanssen Centre For Functional Genome Research ICMM, University of Copenhagen Den 31/08/12 16.15 skrev "Stian Soiland-Reyes" <[email protected]>: >Both String[] and char[][] should work. List<String> is not supported. > >If you change the Java code you want to call, you would have to re-run >the API consumer, re-import the XML file, and re-add the tool to the >workflow, otherwise the old definition would be used, which could have >the wrong dimension specified, giving the behaviour you are >describing. > >On Mon, Aug 27, 2012 at 8:00 AM, Allan Lind-Thomsen <[email protected]> >wrote: >> >> >> >> Hi Alan >> >> >> >> Den 24/08/12 14.59 skrev "Alan R Williams" <[email protected]>: >> >>>On 24/08/2012 08:33, Allan Lind-Thomsen wrote: >>>> Hi >>> >>>Hello >>> >>>> I'm trying to use the API-Consumer tool to create some small script >>>>that >>>> I use in multiple workflows. >>> >>>If you are creating a script then it may be easier to use the beanshell >>>service or the more general tool service. >> >> I tried to use API-consumer as an alternative to beanshell to avoid >> rewrite(copy/paste) the code each time I should use it in a new >>workflow. >> >>> >>>> Is it possible to return some java-type which will end up as a taverna >>>>list? >>>> >>>> I have tried to return: List, ArrayList, Vector and string[], but they >>>> are returned as a single string with comma separated values, except >>>>the >>>> String[] that return the object reference. >>> >>>That is probably the representation of them. What happens if you feed >>>them into something that takes a list, for example the local service >>>"Echo list"? >> >> It comes out as a single string. >> >> Best wishes >> Allan >> >>> >>>> Best wishes >>>> >>>> Allan Lind-Thomsen >>>> PhD. Student, >>>> Phone: +045 353 27819 >>>> Wilhelm Johanssen Centre For Functional Genome Research >>>> ICMM, University of Copenhagen >>> >>>Alan >>> >>> >>> >>>------------------------------------------------------------------------ >>>-- >>>---- >>>Live Security Virtual Conference >>>Exclusive live event will cover all the ways today's security and >>>threat landscape has changed and how IT managers can respond. >>>Discussions >>>will include endpoint security, mobile security and the latest in >>>malware >>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>_______________________________________________ >>>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/ >>> >> >> >> >> >>------------------------------------------------------------------------- >>----- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >>Discussions >> will include endpoint security, mobile security and the latest in >>malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> 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/ > > > >-- >Stian Soiland-Reyes, myGrid team >School of Computer Science >The University of Manchester > >-------------------------------------------------------------------------- >---- >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >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/ > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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/
