¿How can I show a document associated with a BDM's record in an application?

1
0
-1

Hello, I have an application that search on an BDM object and I want to show the document associated with its record. Is it possible, please? I can´t find the caseid (BPM REST API) from the persistenceid (BDM REST API).

I use Community version 7.11.

Thanks,

Derlis.

2 answers

1
0
-1
This one is the BEST answer!

Hello
you need the Case id / Process instance id.

You can save the Process Instance Id in Database. Then use the BPM API Rest to fetch case document or Archived case document.

http://localhost:8080/bonita/API/bpm/archivedCaseDocument?c=10&p=0&f=cas...

this API brings documents of Archived cases. You can use below API for Active cases.

http://localhost:8080/bonita/API/bpm/caseDocument?c=10&p=0&f=caseId=1

In case you dont know case id , go to Portal , change to admin. Check the case list. Identify the correct case id and use the api to fetch Documents.

Regards

1
0
-1

Thanks for your help, Dibyajit.Roy

How can I save the Process Instance Id in Database? Which api rest must I use to retrieve the process instance id in my process form?

Comments

Submitted by derlisvillagra_... on Fri, 06/25/2021 - 16:18

I've found it in the context variable on the process form. Thanks.

Notifications