var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Tarea ASIGNADA: "+bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "Tiene una nueva tarea ASIGNADA: "+bpm_workflowDescription;
mail.execute(bpm_package);
Giorgio, estoy intentando enviar un email a la vez que se envía la tarea adhoc con un código muy parecido al tuyo pero no consigo que se envíe el correo electrónico.
<transition name="" to="completed">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
if (wf_notifyMe)
{
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "It's done";
mail.execute(bpm_package);
}
</script>
</action>
</transition>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.