11-13-2013 06:32 AM
Hi,
Within studio I created a workflow with a mail template associated to the task assignment. I would like to put user informations in the template using the Fn functions, but it does not work :
...
org.nuxeo.ecm.core.api.ClientException: Failed to send notification email
...
Caused by: freemarker.core.InvalidReferenceException: Expression Fn is undefined on line 1, column 157 in template_notificationTache.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
...
I have this in the mail template :
${Fn.getPrincipal(WorkflowVariables["precedentActeur"]).getLastName()}
The studio documentation says it is possible to use ${Fn} functions in mail template context. Why is it not working in my case ? 😞
Thank you
12-16-2013 07:34 AM
Hello,
Actually you can't use "Fn" in your context. If you look at the help documentation in Studio for the mail template the are tow different sections:
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.