How to handle attachment



How can I use multiple attachment in Bonita 6.3, and if possible with example?

thanks a lot

2 answers



There is a limitation in the Community edition: file widget cannot be "multiple" whereas you can declare a document as multiple in the process definition.

Multiple file widget is a feature of the Subscription edition.

What you might want to do with community edition is to add multiple file widgets and use some Groovy script to update the process document data.

You can refer to documentation about documents for further details.


Multiple Documents were introduced in 6.4. Depending on your use case, you can create a multi instantiated call activity which links to a process with a document.



Submitted by ahmedhey on Thu, 03/12/2015 - 10:59

Sorry for that, i'm using 6.4, but when I choose multiple attachment i could but there's always this error comes up keep in mind the same step I used for single attachment works..

the operator "set document" is not compatible with the left operand

Submitted by Sean McP on Thu, 03/12/2015 - 16:23

You don't say what version you are using Community or subscription.

Assuming Subscription: regarding Set Document you have to change the TYPE of the variable, when using a document it should be document, but when multiple documents it should be document List.

I don't have Subscription so I'm guessing but that's what I think is the issue.


Submitted by ahmedhey on Fri, 03/13/2015 - 13:51

I have a Community version. So how to do it.