Easy way to save multiple documents to Alfresco

1
+2
-1

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

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.

Comments

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

Hi,

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

Regards,
Vivek

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

1
+1
-1

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

Comments

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,
Jovana

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

Hi,
Yes there are changes in 7

Notifications