I'm implementing a simple mail triggering service to notify about workflow tasks to user. I have used the following code under user task and the mail is getting trigerred as expected, but is there a way to access template from S3 bucket URL/link rather than Data dictionary.
Following is my current code
var mail = actions.create("mail");
mail.parameters.to = "xyx@gmail.com";
mail.parameters.subject="Hello";
mail.parameters.text="blablabla";
mail.parameters.template = companyhome.childByNamePath('Data Dictionary/Email Templates/Workflow Notification/File.html.ftl');
var templateArgs = new Array();
templateArgs['workflowTitle'] = "Page";
templateArgs['workflowDescription'] = "Task Assigned";
templateArgs['workflowId'] = "11111";
var templateModel = new Array();
templateModel['args'] = templateArgs;
mail.parameters.template_model = templateModel;
mail.execute(bpm_package);