cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow email with action links

harrymoore
Champ in-the-making
Champ in-the-making
Is it possible to have a custom WCM workflow send an html email with links to preview the content attached to the workflow instance and to manage the workflow task (approve, reject)?

If so, is there an example somewhere?
1 REPLY 1

davidc
Star Contributor
Star Contributor
It's possible but with some work.  I haven't tried it myself.  The intent is to provide inherent e-mail support within the workflow framework.

In the mean-time you can try something like this:

- use javascript to execute the "mail" action

var mail = actions.create("mail");
            mail.parameters.to = initiator.properties["cm:email"];
            mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
            mail.parameters.from = bpm_assignee.properties["cm:email"];
            mail.parameters.text = "It's done";
            mail.execute(bpm_package);

The content of the e-mail is hard-coded above, but a template could be used instead i.e. more javascript coding.

- use task URL actions

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

The urls described may be placed into the e-mail.