Good day, colleagues.
We have a deployed application which has been used for a long period.
Recently we found out that all(huge amount) dm_workflow objects have r_runtime_state = 1 (so, they are still running)
Dm_workflow is connected with dmi_workitem(ofcourse). In this table we have immense quantity of objects which are connected with one workflow, but all r_rutime_state = 2.(so, they are finished).
And the last thing - that we have a very big amount of dmi_packages which are linked with dm_workflows, which have all dmi_workitems finished.
So, the question is - can I delete manually(by SQL) workflows which have workitems with only finished runstates (and all the packages which are made for a that workflows)?