Hi Folks,
Is it possible to send an email when a task inside a process, in SAS Risk and Finance Workbench, is completed? My questions is because we have a flow that has differents users and responsibilities. Our idea is send an email to the next responsible user, when the previous task is completed, to alert him about his actions is required.
Regards,
Hi Maria,
Yes, if you wanted to change the email message in the example I used previously, you would need to update the process definition and reload it. With existing projects that are using that process definition, any notifications that were sent before you reloaded the definition are still saved in the project. New notifications will use the latest definition.
However, reloading a process definition might not always be desirable (for example, reloading also restarts the project workflow). To help minimize the chances of having to do that, there are a couple of ways you can set up your notification rules:
Here’s an example of how such a notification rule might look:
{"eventType":"TaskEnded","toRecipients":"Group A","subject":"Task $TASK_ID$ completed","template":"notify_complete.html"}
Regards,
Richard
Hi Maria,
You can automate notifications from tasks in process definitions for several conditions:
In your case, you can send a notification when a task is completed by doing the following in your process definition file:
Note: Be sure you have selected Enable email notifications in the project properties where you’re using the process definition.
For more information about defining notification rules in the Tasks sheet of your process definition, you can check out the product documentation (credentials required).
Hope this helps!
Regards,
Richard Spinks (with a big thanks to Ken Sizer and Kelly Young for their shared expertise!)
Thanks, @rspinks_sas! Very clear your answer! One more question about it, if I define an email on template definition, what happen when I need to change that email? I need to upload again the process definition file? If is it the case, what happen the existing projects?
Hi Maria,
Yes, if you wanted to change the email message in the example I used previously, you would need to update the process definition and reload it. With existing projects that are using that process definition, any notifications that were sent before you reloaded the definition are still saved in the project. New notifications will use the latest definition.
However, reloading a process definition might not always be desirable (for example, reloading also restarts the project workflow). To help minimize the chances of having to do that, there are a couple of ways you can set up your notification rules:
Here’s an example of how such a notification rule might look:
{"eventType":"TaskEnded","toRecipients":"Group A","subject":"Task $TASK_ID$ completed","template":"notify_complete.html"}
Regards,
Richard
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.