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!
Solved! Go to Solution.
Update below line
workflow.parameters["sendEMailNotifications"] = true;
in to
workflow.parameters["bpm:sendEMailNotifications"] = true;
Update below line
workflow.parameters["sendEMailNotifications"] = true;
in to
workflow.parameters["bpm:sendEMailNotifications"] = true;
Dear Krutik Jayswal,
thank you for you Response, now mail successfully sent to user.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.