setup: Gardenworld has setup for Workflow for table c_bpartner, means when bpartner is created work is created too.
steps to reproduce
1. login to gardenworld
2. create new business partner "TEST" => Workflow Process/Activity Created (review it)
3. delete the business partner "TEST"
4. open again/refresh window Workflow Process or Workflow Activities, but was not deleted.
opt1. when initiator record is deleted, then workflow must delete workflow process (cascade to activities)
opt2. do not delete, but follow log (this is from order, but can be same for c_bparner
Hi , we have seen this orphan records too in and IDEMPIERE-2395, it can be solved in code in a per-case basis, but in the end I think the easiest is to schedule the process link Clean Orphan Cascade Records.
the problem is logs. deletion causes massive error logs. not analyzed where, but do some components not accept orphaned workflows, so return an error.
anyways - it sounds strange - it must be deleted when done via the UI - mostly the orphan records we notice is when deleting via direct SQL, is worthy to take a look if not being done via the model