How to refresh a BDM to reflect updated data in bonita process after updating an BDM through micro service ?

Hi,

I updated a BDM data in h2 DB through a micro service. then how to refresh and load the updated BDM data changes in a bonita process ? is there any JAVA Api in micro service to refresh BDM in bonita ?

Hello,
I understand that you change a data in the BDM database by a sql update like

update myTable set aColum=12 where persistenceid=44
commit

is that true ?
In this situation, you have to know that the database is updated but Bonita use Hibernate. And Hibernate may use a cache on data. So

  • the process may not read the new value (because the process access Hibernate which access its cache)
  • and if your process update the same record, you may lost your update

To update a BDM value, only an operation in a Bonita process can do that. There are no JAVA API to update a BDM record.