The workflow splits the string 'a,b,c,d,e' into its five elements and saves the individual strings to five temporary files. The file paths to those files are then output by the create_and_populate_temporary_file beanshell.
The create_temporary_file beanshell creates a file to which the concatentation can be written.
The concatenate_files service concatenates the five files and writes the result to the temporary output file. Because the displayresults port has been given a default value of 'true', the results are also copied to the results port of concatenate_files.
The temporary file to which the results were written is read by the read_text_file service and its contents output.
Both of the workflow outputs contain 'a
b
c
d
e' i.e. the contents of the concatenated files separated by a newline.
true
net.sourceforge.taverna.scuflworkers.io.ConcatenateFileListWorker
hello
File f = File.createTempFile("taverna", ".tmp");
BufferedWriter writer = new BufferedWriter(new FileWriter(f));
writer.write(content);
writer.close();
filepath = f.getCanonicalPath();
content
filepath
File f = File.createTempFile("taverna", ".tmp");
filepath = f.getCanonicalPath();
filepath
net.sourceforge.taverna.scuflworkers.io.TextFileReader
a,b,c,d,e
org.embl.ebi.escience.scuflworkers.java.SplitByRegex
'text/plain'
'text/plain'
Completed
Concatenate_Files
Read_Text_File
Scheduled
Running