11-16-2011 04:13 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var actor = people.getPerson(taskInstance.actorId);
if (initiator.properties.email != "") {
if (actor.properties.email != "") {
var mail = actions.create("mail");
mail.parameters.to = actor.properties.email;
mail.parameters.subject = bpm_workflowDescription;
mail.parameters.from = initiator.properties.email;
mail.parameters.text = workflowComment+"\n http://192.168.1.10:8080/share/page/user/" + actor.properties.userName + "/dashboard";
mail.execute(bpm_package);
}
}
</script>
</action>
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/…../test_alfresco_email.ftl");
But how can I send this variables to the template? And is there any way to internationalize the template (test_alfresco_email_es.ftl) ?06-27-2012 04:05 AM
06-28-2012 10:13 AM
mail.parameters.template_model = {"initiator":initiator.properties.userName};
Hi ${initiator},
…
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.