How to close or terminate BPT after record deleting

If there is a BP started on creating record of some entity in upper layer module. How to close or terminate BP after record deleting in some low level module? Terminate BP from module where record is deleted requires access to upper layer module which is again reference rules. WebService looks too heavy solution.

Hi,

If on that entity you have a process id you can use a system action processterminate

Regards,

Marcelo

Marcelo,

Thank you for your clear idea. However it requires changing entity in low level module and can be applied only for one BP. If there many of them there should be many fields or dedicate table to define many BP IDs for any record. So it is possible solution for simple case. I'll think about common solution like having table to map any entity with any BP, so low level module will be updated only ones: new table and check in any delete action to close all related BPs. 

Solution

Hi,

Yes you i think that is a good idea . That entity can even be super generic with ProcessId, ExternalId and the "Type off Id". For example on that case if you want to delete all the processes of a Person you can check all the correspondent ExternadId of Type Person.

Regards,

Marcelo 

Solution