Create a SPD list workflow associated with a document library. The workflow has two actions: Assign a to-do item and then pause for 2 days;
Manually start the workflow for a document item in the library, and the task item is created in Task list;
Delete the document item;
The task is still there and the task status is still Not Started;
Edit the task, and click the complete task button, error will occur saying that the document associated with the workflow is not there:
The workflow's parent item associated with this task is currently in the recycle bin, which prevents the task from being completed.
Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal
settings. For more information, contact your site administrator.
Troubleshoot issues with Microsoft SharePoint Foundation.
I deleted the document from the recycle bin (in two stage), the task disappeared. And I guess the orphaned workflow is also cleared.