AnsweredAssumed Answered

Workflow mail template

Question asked by isloat on Nov 16, 2011
Latest reply on Jun 28, 2012 by checco
I have an advanced workflow with this mail action:

<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
        var actor = people.getPerson(taskInstance.actorId);
   if ( != "") {
       if ( != "") {
           var mail = actions.create("mail");
      mail.parameters.subject = bpm_workflowDescription;
      mail.parameters.from =;
      mail.parameters.text = workflowComment+"\n" + + "/dashboard";

The variables are:
workflowComment, actor, initiator and bpm_workflowDescription.

How can I externalize this in a template?

I've tried to use:
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) ?
I'm using Alfresco 3.4d