As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<node name="startreview"> <action class="org.alfresco.repo.workflow.jbpm.ForEachFork"> <foreach>#{bpm_assignees}</foreach> <var>reviewer</var> </action> <transition name="review" to="Committee Review"> <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"> <script> <!– THIS IS WHERE IT IS BEING SENT MULTIPLE TIMES… WHY? –> var reviewers = []; var mail = actions.create("mail"); var theChild = bpm_package.children[0]; for (var i = 0; i < bpm_assignees.size(); i++) { reviewers.push(bpm_assignees.get(i).properties["cm:userName"]); } mail.parameters.to_many = reviewers; mail.parameters.subject = "Test"; mail.parameters.from = "alfresco@alfresco.com"; mail.parameters.text = "Test; </script> </action> </transition> </node>