I want to get association of Documents with workflow status.
I mean document has workflow status whether it is used or not in any other workflow.
For a newly created document, I want this document's workflow status as Not Started.
After the applicant starts the workflow and before no approver approves, this document's workflow status as Waiting Approval.
In waiting approval state, this document is cancelled by approver, its workflow status must return to Not Started.
From waiting approval state, this document is rejected by approver, its workflow status must be Rejected state. This document is finished by all approvers, its workflow status must be Finished state.
I want to implement above. But I only find that the progress of the task as "Not Stated", "In Progress", "On Hold", "Cancelled" or "Completed". These are workflow status from side of task, not from side of document.
May I know how to implement above requirement. Thanks in advance.