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.
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=caseId=1
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
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?
I've found it in the context variable on the process form. Thanks.