How can I save multiple files in association with some business objects?
I'm currently wondering how I can save some files from user input and bind them to one business object. In my project, I have a business model called XXXrequest, in which supposed to be some attachments. But the default file uploader will only attach them to the process instance, is there any way I can persist the attachments and retrieve them at later processes?
To do that, create a list of 'Document' in your Bonita Process. In your form, link all your input file to the Document variable.
When you do that, on your form submission, bonita will save files in the BonitaDatabase.
If you need to save your file in a Business object, just transform your document list to your busniess model.
Document object have some method to get file name, binary content, ect.