cancel
Showing results for 
Search instead for 
Did you mean: 

Approval Workflow

pp20218
Champ in-the-making
Champ in-the-making
Hi All,

I would like to develope a workflow. My requirement is like this.

Suppose a document is uploaded to a space it will automatically trigger the mail to the approver for approval.On successful approval it will be moved to a particular space.

Can you please provide me some inputs.

Thanks in advance.

Regards
PP
7 REPLIES 7

pp20218
Champ in-the-making
Champ in-the-making
Hi,

Can anyone help me out?

Regards
PP

zaizi
Champ in-the-making
Champ in-the-making
Have you tried searching the forums / wiki for your solution before posting your question?

This has been answered before. http://forums.alfresco.com/en/viewtopic.php?f=34&t=27977

Ainga

pp20218
Champ in-the-making
Champ in-the-making
Hi,
Thanx for ur reply. But the link you have given is different requirement. I was looking for the approve/reject workflow.

Can you pls help?

Thanks
PP

zaizi
Champ in-the-making
Champ in-the-making
Have you tried the out of the box workflows? It has Approve / Reject.

Ainga

pp20218
Champ in-the-making
Champ in-the-making
Yes, I have tried it. But in this out of box workflow, when approved/rejected action is done then the task is redirected to the initiator. And the Initiator will click "Task done". But after this where the history is maintained?

Consider there is a doc "test.doc". User "A"(Initiates WF) and reviewer "R" .Now when A starts the WF it will go to R. After R approves/rejects it will come to A. A will click "Task Done". But where the workflow history was maintained?

Also After this I want to move the document to Approved or Rejected Space.

Please provide your inputs.

Thanks

zaizi
Champ in-the-making
Champ in-the-making
Suggest you read through this http://wiki.alfresco.com/wiki/WorkflowAdministration and the code for the out of the box workflow. Then copy the code for the out of the box workflow and modify it as per your requirements.

If you see the life cycle example it sets the status on approval and reject. See http://wiki.alfresco.com/wiki/WorkflowSample_Lifecycle. You'd want to modify the java code to move the document to a different folder instead of just setting the status.

Long discussion on workflow history. See http://forums.alfresco.com/en/viewtopic.php?f=35&t=26795. You can extend the workflow sample to change the status and also remember who approved / rejected the document to meet your history requirements.

What you are trying to do isn't hard. The questions have been asked before and answered in the forums. You just have to search for it.

Ainga

pp20218
Champ in-the-making
Champ in-the-making
Thanks for your reply.I got an idea how to proceed.