How to delete BDM data?

1
0
-1

I started to use Bonita a month ago and I need to make a task that permits the user to delete some data in the BDM.
How can I do that?

1 answer

1
0
-1

When you say, delete data in the BDM I'm assuming you mean remove data from fields 4, 6, 9 in the BDM.

The way to do this, as BDM's are persistent is to:

  1. Get currentBDM
  2. Create newBDM
  3. for each field in currentBDM{
  4. if(fieldRequired){
  5. copy to newBDM
  6. }
  7. }

When you now access the BDM newBDM will become currentBDM without the data from the oldBDM

regards
Seán

PS: If this reply answers your question, please mark as resolved.

Comments

Submitted by ggbr8696 on Tue, 07/19/2016 - 09:26

Hi Seàn,
where can I put this code?

Submitted by Sean McP on Tue, 07/19/2016 - 10:30

You can't use this code, you have to rewrite it to suit your needs. You also should be able to tell where to put it...

Display BDM
Get fields to delete/clear
return data
in Script Connector write the code as above, but using your code...

regards

Notifications