On Mon, Mar 23, 2009 at 15:09, Kieren Lythgow <[email protected]> wrote: > Hi, > > I was wondering if it is possible to return a merged stringlist as columns as > opposed to being appended one after another. Currently my workflow returns > merged results as follows: > > A .. > C > > However, I want the result to be returned as follows: > > A B C > A B C
You could do it so it returns a list of lists the other way around: [ [A1, B1, C1] [A2, B2, C2] .. ] A beanshell script with three inputs A,B,C and depth 0, and using the dot product. (Note however that this would chop of an extra A5 when there is no B5 or C5 - to avoid this you would have to set the depth to 1 and do the iteration yourself inside the beanshell script) output = new ArrayList(); output.add(A); output.add(B); output.add(C); If you want a tab/whatever-separated string as Paul suggested, do something like: output = new StringBuffer(); separator = "\t" output.append(A); output.append(separator); output.append(B); output.append(separator); output.append(C); -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ taverna-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/taverna-users Documentation: http://www.mygrid.org.uk/usermanual1.7/ FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq Biological Services: http://www.mygrid.org.uk/wiki/Mygrid/BiologicalWebServices
