Announcement
Collapse
No announcement yet.
Run BPM Workflow On Delete Signal
Collapse
X
-
Run BPM Workflow On Delete Signal
I have a BPM script setup which calculates my customers account balance based on account charges and account payments. My issue is when I delete a "Charge" then it runs this BPM based on the delete signal. I need to recalculate the customers account balance at this point as a charge was deleted from the system. I need to get the Customer ID of the deleted record however being the record gets deleted I can't access this data. I tried with
$customer=bpm\targetEntity\attribute(clientId);
No Luck. Does anyone have a idea on how to get the related customer account id when the record is deleted?1 PhotoTags: None
Leave a comment: