cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to approve documents by mail?

melkor_kp
Champ in-the-making
Champ in-the-making
In the organisation which I am part, we are interested in approve documents
by mail. I was looking for that feature an I think is not possible,
you can do at least a notification to the author of the document and
add a link to the document.

Does anybody told me if exists some javascript feature in the Alfresco
API to aprove documents by mail?

Alfresco does not support html emails or the multpart ones but you can create
an external program to solve that, so that is not a problem.

Thanks in advance.
9 REPLIES 9

davidc
Star Contributor
Star Contributor
Not sure if you're referring to simple or advanced workflow - however, in advanced workflow you could potentially use

http://wiki.alfresco.com/wiki/URL_Addressability#Task_Command_Processor

melkor_kp
Champ in-the-making
Champ in-the-making
I need a advanced workflow but I do not understand this example

/alfresco/command/task/end/jbpm$1234/approve

Could you explain me a little bit it.

melkor_kp
Champ in-the-making
Champ in-the-making
Now I see more or less how to do it.

I am using a simple workflow moving the document to a space if it is
approved and moving to another space if the document is rejected.
The workflow sends an email when a content is added.

The mail received contain the following url to reject the document

http://localhost:8080/alfresco/command/workflow/reject/workspace/SpacesStore/90cfe351-e812-11db-bd45...

But when I click the resource I get


org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Cannot reject a node that is not part of a workflow.
caused by:
org.alfresco.error.AlfrescoRuntimeException: Cannot reject a node that is not part of a workflow.

What can I do?

melkor_kp
Champ in-the-making
Champ in-the-making
I solved the problem, it is possible to do it using a simple workflow.
Once the workflow is defined and a rule to send emails set up you just need
to include the proper urls to the email to perform the tasks.

Approve
http://localhost:8080/alfresco/command/workflow/approve/workspace/SpacesStore/${document.id}
Reject
http://localhost:8080/alfresco/command/workflow/reject/workspace/SpacesStore/${document.id}

Thanks for the wiki reference davidc,

coffman
Champ in-the-making
Champ in-the-making
Its working fine, but i have got one question:

When the user clicks the link to approve the task, The browser opens a page that said :
Workflow command: 'approve' executed against node: workspace://SpacesStore/e5141662-0cf2-11dc-9a6e-43ef1d284563

How can i change this page to a more suer friendly one ?

Something like "The document is approved" with a nice interface

regards

kevinr
Star Contributor
Star Contributor
The command servlet URL supports a 'return-page' argument - so you can supply a page/url for it to return to upon completion of the command.

Thanks,

Kevin

schneika
Champ in-the-making
Champ in-the-making
Im very interessted about this E-Mail-triggered Workflow. Can you please post the complete Template-Example

seraphon
Champ in-the-making
Champ in-the-making
Hi

I have one simple question.
I know that each document has an unique ID but how do you get it aside from using a java fonction/method.
Regards seraphon

kevinr
Star Contributor
Star Contributor
The GUID for a document is visible in the Document Details screen, hover over or copy the value for the 'Alfresco Node Reference' link in the Links panel of that screen.

It is possible to build URLs to view and approve documents via email:
http://wiki.alfresco.com/wiki/URL_Addressability

Thanks,

Kevin