Delete Record doesn't delete workflow process

Description

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.

awaited behaviour:
opt1. when initiator record is deleted, then workflow must delete workflow process (cascade to activities)
AD_WF_Process
opt2. do not delete, but follow log (this is from order, but can be same for c_bparner

Environment

test.idempiere.org

Activity

Show:
Carlos Ruiz
October 8, 2020, 9:10 AM

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.

Regards,

Carlos Ruiz

Norbert Bede
October 8, 2020, 11:44 AM

the problem is logs. deletion causes massive error logs. not analyzed where, but do some components not accept orphaned workflows, so return an error.

Carlos Ruiz
October 8, 2020, 12:09 PM

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

Assignee

Unassigned

Reporter

Norbert Bede

Labels

None

Tested By

Norbert Bede

Affects versions

Priority

Major
Configure