AnsweredAssumed Answered

Passing Parameter to Freemarker

Question asked by nunuts on May 8, 2012
Latest reply on May 17, 2012 by amandaluniz_z
I'm trying to sending email when running workflow. The problem is, I need to pass parameter to free marker. I found this link But it doesn't work
Here is my code :

var mail = actions.create("mail"); = "";
mail.parameters.subject = "New Alfresco workflow submission: ";                      
var templateArgs = new Array();                     
templateArgs['user'] = "workflowId";
var templateModel = new Array();
templateModel['args'] = templateArgs;
mail.parameters.template_model = templateModel;
mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/email_group_document_workflow.ftl");
and my ftl :

<p>Hi <strong>${user}</strong>,</p>

Can anyone help me me with this?

Thank You