Hi,
I have list of files on UI which i want to download in zip folder.
What is the way out to implement this approach.
Kindly share me any code or any approach on this ?
Discussion posts and replies are publicly visible
Below plugin will help
https://community.appian.com/b/appmarket/posts/document-zipper
You can also have a look at - https://community.appian.com/b/appmarket/posts/add-documents-to-zip.
documents:-1245;1232;4567
documentPath:-test-sample.csv.2014-06-13; test-sample.csv.2014-06-25; test-sample.csv.2014-06-13;
Exact these values are going to PM.
I can't tell for sure until you post a screenshot, but it looks as if your "documentPath" array has a null entry at the end there. I expect that might cause unexpected issues when you feed the arrays into the zip file node, as it expects 2 arrays of the same length (and the document path values would never be null).
There is no null entry in this. I have verified with count() function . I have simply printed on my interface in text field. Even i have used reject function also to remove null n blank entires. So i am sure on that part.
Please provide a screnshot of this when you can, as there's not much more I can think of to troubleshoot without it. For example, here's mine:
you were absolutely correct.
But dono how its possible.
I think you need to go back to the expression you're using to pull your doc IDs and troubleshoot more. Perhaps comment out the startProcess() call temporarily and just write the docIds and docNames into local variables which you then display in a debug field on your interface.
If you see the code. It is returning values but i feel so type is not type of Document that's why in PM its coming null values.Otherwise on interface in textField its is returning list of id's.Anyways i got the pointer to more trouble shoot this. Thanks for pushing your inputs in this issue.
Now both variables are getting populate at PM side also but error is still same java.lang.ArrayIndexOutOfBoundsException: 0
Please if you can, post a screenshot matching the one I posted earlier (a screenshot of the PV variables in your process instance, at a minimum showing both the document ID and document name PVs), otherwise all I can do is continue to guess blindly.
Hi Mike,
I have changed complete code now n moved to Document Zipper.
Here i am able to successfully create a zip file. I know this is might be more tedious then other one but here i was able to move smoothly.
This one is also very straight forward where i have just followed some steps and achieved my requirement.
1. Create New Folder
2. Move Folder(need looping to move multiple files)
3.Document Zipper plugin
It took my a lot of efforts but i learned a lot by doing this and by your inputs as always.
Thanks for your inputs n your time .