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?
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:
Get currentBDM
Create newBDM
for each field in currentBDM{
if(fieldRequired){
copy to newBDM
}
}
Exit
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.
Hi Seàn,
where can I put this code?
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