var mail = actions.create("mail");
mail.parameters.to = "xx@xx.xx";
mail.parameters.subject = "Please review this task";
mail.parameters.from = "xx@xx.xx";
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/Notify Email Templates/notify_user_email.ftl");
mail.parameters.text = "some text, in case template is not found";
mail.execute(bpm_package);
También he encontrado una variante en que en vez de "mail.execute(bpm_package);", usan "mail.execute(document);", que entiendo que se aplica en las reglas de una carpeta o documento.var p = people.getPerson("nombreUsuario");
mail.execute(p)
Pero me da este error al ejecutar: org.alfresco.repo.jscript.NativeMap cannot be cast to java.io.SerializableContent 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.