AnsweredAssumed Answered

Sending email notification in work flow

Question asked by srik on Jun 25, 2014
Latest reply on Jun 26, 2014 by lementree
HI Team ,

Currently i am working on sending the email from  work flow to specific groups , but i get few errors doing it.

following is my bpmn diagram.
class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
      
var mail = actions.create("mail");
var candidateGroupName = "GROUP_AZ RRD Client Services";
var candidateGroup = new Array(candidateGroupName);                
mail.parameters.to_many=candidateGroup;
mail.parameters.subject = "Adhoc Task " ;
mail.parameters.from = initiator.properties.email;
mail.parameters.text = "It's done";
mail.execute(document)



.

it says the document not defined error.the  email notification doesn't works

can any one please suggest me about the problem .

Thanks
Srikanth S

Attachments

Outcomes