AnsweredAssumed Answered

WCM Workflow - email notification to all the assignee

Question asked by gianlucar on Jun 9, 2010
Latest reply on Aug 29, 2011 by orggs
Hi All,
i modified the default "Serial Review" behavior changing the /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/workflow/submit_processdefinition.xml file.

this is the code fragment:

           <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
          var mail = actions.create("mail");
 = bpm_assignees.get(0);
          mail.parameters.subject = "Approve request"  + " from " +;
          mail.parameters.from =;
          mail.parameters.text =  "You are kindly requested to approve a content on Alfresco.\n\nDescrioption:\n" +  bpm_workflowDescription;



Everything work fine but now i need to send the notification to all the assignee ,not just to the first ( bpm_assignees.get(0) ).
What i need to to change in order to send the notification to all the people assigneed to the workflow?

Thanks in advance