How to Convert DocumentValue into File (DataType) in Groovy Script

Hello every body,

I trying post form-data (multipart with some files and some part) during the process.
I know how to convert document into documentValue but i need convert documentValue into File.
How can I do that?

Thanks a lot.

How can I display the user's uploaded photo in bonitasoft?

Hi, I've created a report with Ireport but I can show how I want to show the photos I get from the user in bonitasoft

Download archives on server

I have a process that requires actors to upload some .pdf files.
I'm needing to take this archives from the context to a folder in the server.
does anyone have any idea of how to do this?

Best Regards


does anyone know or trick how to set contract type file to null.


Based on my question, i want to set Contract Type : File to null or allow if people doesn't attach a file.

i tried to create javascript to set return my_file = null, is not working.

kind regards,

dhany lugina


File upload and download example

An example that illustrate how to allow user to upload and download a single document or a list of documents. Also illustrate how to only allow certain type of files to be uploaded (e.g. only PDF files).

Process definition includes a reference to a document and to a list of documents (document with option "multiple" enable).

All files will be stored by Bonita BPM Engine in database. Engine also saved the association between the process instance and documents content and version.

Releases for File upload and download process example

Total downloads: 10 943
Version BonitaBPM Version Post date Download Link
7.3.3-1.3.0 7.x, 7.4.x, 7.3.x 2017-Feb-01 Download
Release note
7.2.2-1.2.0 7.x, 7.2.x 2016-Apr-27 Download
Release note
7.1.5-1.1.0 7.x, 7.1.x 2016-Feb-04 Download
Release note
7.1.5-1.0.1 7.1.x 2016-Jan-22 Download
Release note
1.0.0 7.x, 7.0.x 2015-Jul-21 Download
Release note

Can I reference/link a sub-process to another .proc file?

Hi, we're evaluating BonitaSoft in our company as a possible replacement for Bizagi. Here's what we want to do, but so far couldn't:

Possible to save a file/picture in the database ?


I need to know if it's possible to save a picture or a file in a business object? Thanks for your answers,


File Generator Connector

hello , I create one custom connector for generate PDFs file after task completed . for initial test i dnt take any input for this when i execute process connector not executed pro pare it goes to failed stage . how can i recover and how can i show error .

Pl see following detail :

How to put a download document field previously uploaded ? (Version : 6.2.5)

Hi, I put an input file field in the form of my task. The file is successfully downloaded. But when I try to get the file in the next task, i have the exception :