Action How To Delete Objects

Assigned
ABR+TSH+BAM

Prev assigned

Tasks adressed
["TaskX/1"]

Time estimated
not done

Time used
0md

Priority
1

Status
Not described

Iteration
14

Notes

Notes

We agreed to the following formulation: When deleting an object, you must delete all the objects in this objects view, but only if no object in the view is referenced from outside the view, except from an list of approved objects. Then purge the relations referencing objects in the view from all objects in the approved list

Given: Object d (to be deleted). Objectlist approved (the approved objects)

The formal algorithm to do this is:

  1. Find the view 'v' of object d.
  2. Find the list of objects 'e' that reference an object from 'v'
  3. Remove from the list 'e' all objects in approved, and all object in 'v'
  4. If 'e' is not empty, the delete fails, and the user is notified about the contents of 'e'
  5. If 'e' is empty, mark all objects in 'v' as deleted
  6. For all objects in approved, delete any relation they have to an object in 'v'

Checklist For Working On An Action

The Life Cycle of an Action:

Please make sure that you address the below issues, when working on an action: