#Documents

How to Handle Documents using Fragments

Hi
I have a Custom Fragment where I have Multiple Text Boxes and Drop Downs. Also each row will contain a file Upload Widget. Now Using Buttons , I can add more Items to collection or Remove Items from Collection.
I am able to save the Text Data from Fragment into database but I am confused , how to handle documents this way.
I am aware of handling Documents using Containers and File Upload Widget but that is used only for Documents. In my scenario , I have other input fields and drop downs.

recieve pdf document from an ASP.net API and attach it to a process (version 7.6)

Hi

I'm trying to call an ASP.Net API using REST connector that return a pdf file and attach it to a process, the API is tested and works fine off bonita using Postman.

at the connector output operation I added this code :

Get java.io.File from attached document

Hi,

How can I convert an attached document to a standard Java File type in a Groovy Script Connector?

Thanks in advance.

Can't get document by url or id

Hey guys,
I read this: https://documentation.bonitasoft.com/6.x-7.2/documents-0 and tried to implement this but faild.
I tried two ways, that I will show you and maybe some of you can help me and say what the next steps could be.

First try:
I got the url of my pdf, its: documentDownload?fileName=BookOne.pdf&contentStorageId=1643
https://ibb.co/fPvwXJ

[resolved] How to empty process' attachments (documents)

Hi all,

In my process, documents are attached using variables of Document type and the Upload Widget for uploading documents to forms.
At the end of the process, there is no need to keep the exchanged documents.
How could I remove them from the database?

Accept a file from REST API

Hi
I have an ASP.Net REST API that generate and download a file to browser.
My question is, how to store that file in a document variable via connectors in bonita?

How to fetch A document from a Subprocess and show it in the Main Parent Process

Hi
I have a Parent process and Several Subprocesses.
Based on condition evaluated, I call different Subprocesses.
Now I am using the Auto generated Overview page.
There i can see all the Documents that are associated with the Parent Process.
But I cant see any of the Documents associated with the Subprocess.

Delete a document not attached to a case

Hi there!

We have a situation in our process where the users upload the documents through a custom widget to bonita server and have the option to remove it i.e. exclude from the process instantiation.

My question is, how does bonita handle when the documents are uploaded but not attached to a case. Because, we do not wish to store the documents on the server which are not attached to any case.

Regards,
Raji Malla

Show Document Name

Hi
My scenario is that I am using the Upload Widget to upload documents .
Now the Document type is Single. Only 1 document needs to be Uploaded.

Now I am showing the Document in the next task.
Here, I am using the Link widget to download the Document.

For a single Document type , I have a JavaScript variable and I return the value as
return "/bonita/portal/" + $data.context.attachedDoc_ref.url;

Notifications