Any tips on how to use a common template for more than one mail task? For example using FreeMarker templates. I didn't see anything in the user guide so perhaps it is not supported yet?
You can use an expression to load the template. So I could imagine a scenario where you have something like a CDI/Spring bean you reference from the process and that bean loads the freemarker template, evaluates it and returns a string.
–
In adition, you can always subclass org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior add your template there… You would then reference your custom implementation in the process using sth like <serviceTask activiti:class="my.custom.MailBehavior" /> but that requires knowledge of internal "stuff"
–
You could also add freemarker as scripting engine (probably) but that would not solve the problem of having a common template for all mail tasks.