Retrieve BDM using ParentCaseID
Hello Team,
Bonita 7.0.2
java 1.7
Windows 7
I need to be able to retrieve BDM data with parentCaseID and display in data table. I'm using the UI Designer to create this. I have a JSON object that I need to parse thru to get the parent case Ids, then need to call another service with storageId and model type to get BDM data associated.
How should I proceed?
- need to loop thru JSON object to get all parent IDs (can't get this to return properly)
- with return value(s) above, call http://localhost:8080/bonita/API/bdm/businessDataReference/{{parentCaseId}}/{{name_ref}}
return storageId and model type
-- with returned values, call http://localhost:8080/bonita/API/bdm/businessData/{{model link}}/{{storageId }} to retrieve BDM
Is the correct path?
Thank you
I'm developing a custom page that shows Task List. Each task is it own sub process with it own parent case id. I need to show some business data next to the process data. Therefore I need to iterate thru my Task List object to get all the parent case id (sub process ids) then call the bdm api to retrieve and show data.
Thanks
If you need to get business variable value from the top parent process instance (i.e. the root process instance) you don't need any iteration.
I create a process example that demonstrate how to get the value of a business variable referenced in the root process instance.