cancel
Showing results for 
Search instead for 
Did you mean: 

Association of Documents with workflow status

swemon
Champ on-the-rise
Champ on-the-rise
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.
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
For that you need to create one custom property which you will set on the document.
Then with each transition in the workflow you need to  update that custom property.
That configuration for updating the property need to be maintain in the workflow side.

swemon
Champ on-the-rise
Champ on-the-rise
@mitpatoliya, Thank for your answer.
But as a new babie of alfresco, even though I tested adding new property to person object but I wanna know how to add a new custom property to document whenever it is created.

Thanks a lot if anyone shares for my needs.