Schedule a background job for /BTI/MDE_UNLOCK_RELATEDCASES for every 30 minutes (or as frequent as desired) to find cases which are locked and unlock them (whereby the primary case has been completed or reassigned to a new user).
The job will find the locked cases and the associated primary case.
The primary case will be checked to see if it has been completed or if the processor of the case has changed.
If the primary case is completed or the processor has changed the case will be unlocked (by removing the irrelevant flag).
Output – Lock Cases Job
Cases are unlocked from /BTI/MDE_BWC_ANS table
Entries would be deleted from /BTI/MDE_LCK_REL table.