I'm currently studying this bonitasoft and having difficulty in the attach file on where it is located after being submitted and how to retrieve it on a different process flow.
I tried the examples on file attachment but i'm unable to trace on where it is located. Can the attach file be saved or be transferred into a different location (saving the path in the BDM/database for reference and use for other activity). Need a sample snippet/code to be able to understand the routine.
Thank you in advance.
I use the Sardine WebDAV library and a Nextcloud server to achieve this.
Here's a sample Groovy script, to upload the content of a Bonita Document object to a Nextcloud server:
This sample depends on the Sardine library so you'll need to add it to your project (Overview > Extensions > Add a custom extension > Other, fill out the Maven details as per the link), and include it as a Java dependency in your process configuration (Configure > Production > Java dependencies > tick "sardine-5.xx.jar").
See also my answer (awnz) in the Bonitasoft forum here.