Is there a way to programmatically identify items in a list that have running workflows. We have a long running workflow that will sometimes hang while waiting for a field change to a specific value. Since the workflow largely does housekeeping tasks, such as creating tasks and marking them complete, users do not necessarily notice that it has stopped, and finish the work involved for the item.
I would like to build a list showing the items that have a running workflow and a field set that indicates the work was completed, so that I can clean them up.
Any help would be most appreciated.