How to Update multiple rows in BDM

1
0
-1

I have created a table in BDM which is used in two processes Employee and Covid
When I update the employee table for example update employee name from abc to xyz .
https://ibb.co/zhcFjw4

Initially the covid data is getting updated but for terecent rows after employee updation and not on the previous rows.

I want the same updations to be done on Covid data for all the rows https://ibb.co/1XZx9BB

1 answer

1
0
-1

Hi

For updating each row, you have to know id of row, so by using id you can find and update it.

You should use Business Variables to access correct row by using id, here's an example of groovy code:

def row = EmployeeDAO.findByPersistenceId(idEmployee );
row.name = newName;

return row;
Notifications