04-05-2011 09:03 AM
<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>
04-05-2011 10:13 AM
04-05-2011 11:46 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.