There are a couple of approaches.
First, use a loop and specify the record list as the out-array.
LOOP over /something
…MAP into the out-array list, which now looks like a record in the pipeline
Second, create your record and then use pub.list:appendToRecordList. Be aware that this can be a performance bottleneck for large lists. Remember to create a new record for each entry. Do not use the same record over and over.
HTH
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods