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.

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.


Submitted by vivek.paranthaman on Thu, 02/11/2016 - 13:23


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


Submitted by tresnjica93_1 on Thu, 02/11/2016 - 13:40

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

1 answer


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

Easy as pie...


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...


Submitted by tresnjica93_1 on Thu, 02/11/2016 - 14:12

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,

Submitted by vivek.paranthaman on Thu, 02/11/2016 - 16:10

Yes there are changes in 7