07-15-2019 05:15 AM
Dear Team,
I need workflow for when documents get imported/updated then workflow should start and mail has to send to user, So i have created script file for custom workflow, please refer following script for custom workflow:
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "activiti$activitiReview";
workflow.parameters["bpm:workflowDescription"] = "Please assign approver for "+ document.name;
workflow.parameters['bpm:assignee']=people.getPerson("user1");
workflow.parameters["sendEMailNotifications"] = true;
workflow.execute(document);
but when i set to- Action->Execute script->Scipt name then workflow is assigned to user but mail not send to particular user, can u suggest how to add script for mail also in this script,
Kindly suggest!
07-15-2019 05:50 AM
Update below line
workflow.parameters["sendEMailNotifications"] = true;
in to
workflow.parameters["bpm:sendEMailNotifications"] = true;
07-15-2019 05:50 AM
Update below line
workflow.parameters["sendEMailNotifications"] = true;
in to
workflow.parameters["bpm:sendEMailNotifications"] = true;
07-15-2019 06:01 AM
Dear Krutik Jayswal,
thank you for you Response, now mail successfully sent to user.
Explore our Alfresco products with the links below. Use labels to filter content by product module.