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">
           <script>
          var mail = actions.create("mail");
          mail.parameters.to = bpm_assignees.get(0).properties.email;
          mail.parameters.subject = "Approve request"  + " from " + person.properties.userName;
          mail.parameters.from =   initiator.properties.email;
          mail.parameters.text =  "You are kindly requested to approve a content on Alfresco.\n\nDescrioption:\n" +  bpm_workflowDescription;
          mail.execute(bpm_package);

                 </script>

           </action>

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
Gianluca

Outcomes