Workflow email with action links

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2007 01:41 PM
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?
If so, is there an example somewhere?
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2007 08:21 AM
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
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.
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.
