A frequently asked question in the community is how to send a notification email to candidates when a new task is created. This article describes how to quickly do that by using the user management included in Bonita User Experience.
Prerequisite
You have to provide an email for users in the Bonita User Experience. You need a smtp account in order to send emails.What you will do?
You will configure a task to send an email to all its candidates. The email will contain a link to perform the task.How to do that?
You have to add a new send email connector on the enter event of the task. Then you have to configure your smtp access and fill the email configuration page with the values below:From | direct value | YourSender@Email.com |
---|---|---|
To | Groovy |
import org.ow2.bonita.util.AccessorUtil |
Subject | Groovy |
activityInstance.getDynamicLabel()==null?activityInstance.getActivityLabel():activityInstance.getDynamicLabel() |
Message | Groovy |
import providedscripts.BonitaURLs; |
You can download the Send notification email example if you want to quickly test this example.