Easy way to save multiple documents to Alfresco

Is there an easy way to save multiple documents from Bonita to Alfresco dynamically?
I have found some instructions in the following link, but it didn’t work for me.
http://community.bonitasoft.com/questions-and-answers/multiple-documents-upload-single-form

I basically have a form with multiple documents input, but not all documents are mandatory. I need a solution to save 1, 5 or 10 documents without having to make more than one Alfresco connector and without being obliged to put all the documents. I am new to Bonita and I would appretiate any help I can get.
Can anyone help me out with this? Thanks in advance.

2 Likes

I have a list of documents and then use a MultiInstantiation step to call a service task to upload the documents.

Easy as pie…

regards
Seán

PS: If this reply answers your question, please mark a resolved.

PPS: I see you used my previous instructions…that was for 6, you need to modify for 7…

Hi,

May I know, how you are trying to upload the document(one or more), is it using the document variable?..

Regards,
Vivek

Yes, I am using the document variable as single and without any initial content. Output operation is document reference of type java.lang.String.

Hi Sean,

I am using Bonita 7, but for creating forms I am using Bonita 6.x App. Does that make any difference for your old instructions? Seems to me that they should work in that case. I made an AddAFile button and I added the JavaScript code in the HTML widget initial value, but nothing happens when AddAFile button is clicked. It doesn’t start the script for some reason.

Best regards,
Jovana

Hi,
Yes there are changes in 7