Usecase : I want to get all the contents of my documents in db and store it in one zip file.
I used the ml-java-util
to convert the content into zip file. My server side transformation module logic is like below:
- I went into each document and extracted only required fields using node Xpath.
- But when I executed , it created a zip file when I opened, it has set of files based on Uri name and with extracted content. Rather than merging all the file contents into one it is creating new file for every URI.
How can I override that behavior? I want all the content (i.e.extracted values) in all the documents to be in a single file that too converted to a zip.
Tried to apply For
loop but thought it is of no use since the function itself getting uri's (i.e. context.uri) one by one.
Any help is appreciated.
Thanks