BS-10869 : deleting an archived process instance doesn't delete ALL the records in the table

- Get until all states for a source object id (for archived process instance)