Hello.
I am trying to create a custom send pipeline that will receive several messages (Message Array) and add each of them to a zip file as a new entry. The scenario is the following:
I receive several files from the receive port, dissassamble them with a simple Flat File dissassembler that has one record that contains the contents of the file received.
An Orchestration subscribes to these messages, collects them and calls the Send pipeline with an array of messages as an argument.
Now, what needs to be done is to loop through these messages and compress each of them into a zingle Zip file.
The problems I am having is that I can easily create an Encoder Pipeline component that zips a single file from a Flat File Assembler (The flat file assembler simply appends the messages in the array and passes the final output to the zip encoder). But when I try to zip each message seperately at the assembling stage of the pipeline I get the message on XML format, when I actually want to get the same output I started with (flat file assembled).
Can anyone help me on this matter, any hints would be highly appreciated! 🙂
Regards
Gísli Snæbjörnsson
Software Engineer