The beanshell creates an empty temporary file. The filepath to the temporary file is then passed to the Write_text_file A service which writes the string 'hello' into the file. After service A has run, service B writes 'goodbye' into the file. The file is then read by the Read_Text_File service and its content, 'goodbye', output by the workflow.
File temp = File.createTempFile("taverna", "txt");
temp.deleteOnExit();
out = temp.getCanonicalPath();
out
net.sourceforge.taverna.scuflworkers.io.TextFileReader
goodbye
net.sourceforge.taverna.scuflworkers.io.TextFileWriter
net.sourceforge.taverna.scuflworkers.io.TextFileWriter
Completed
Write_Text_File_A
Write_Text_File_B
Scheduled
Running
Completed
Write_Text_File_B
Read_Text_File
Scheduled
Running