cancel
Showing results for 
Search instead for 
Did you mean: 

Email notification for review task

krups
Champ in-the-making
Champ in-the-making
Hi everyone,

I have created custom workflow(activiti).
I want to customize the email notification template wf-email.html.ftl for my custom workflow so when users get notification of assigned tasks they get custom template.
Does anyone have any thought?

Thanks
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
You can create one more template as per requirement and while sending mail you need to refer your custom template rather then we-email.ftl.

krups
Champ in-the-making
Champ in-the-making
Hi Mit,

Thanks for your reply.
Actually I am starting workflow using js and executing using rule.
I don't know where I can define custom email template.
Could you please help me with this?

if(document.type == "custom type"){
   
    var workflow = actions.create("start-workflow");

    workflow.parameters["bpm:workflowPackage"] = document;

    workflow.parameters.workflowName = "custom workflow definition";

    workflow.parameters["bpm:workflowPriority"] = "2";

    workflow.parameters["bpm:sendEMailNotifications"] = true; // I want to define custom template for this action.

    workflow.execute(document);
}

Thanks