Sending Task Notifications to Non-Assigned Users
By default, the Task Engine sends e-mail notifications only to users who are both subscribed to the notification and assigned to the task. For example, if five people are subscribed to the task, but the task is assigned to only one user, only that assigned user will receive task notifications.
You can change this behavior on an individual task basis, so that the Task Engine sends e‑mail notifications to all subscribed users, whether they are assigned to the task or not. As in the default notification behavior, you must assign permissions to all subscribers to view the task, and permission to interact with the task as needed.
To return to the default behavior, use the procedure below but set the value to true.
Important:
Use caution when changing this default setting. The subscribers are subscribing to notifications from a particular task type. This means that all subscribers will receive notifications from all task instances started from that task type. This could generate a substantial number of notification e-mails.
To send task notifications to unassigned and subscribed users
1. You must first add the TaskNotificationContentProvider bean to the Faces Configuration Editor. In the Solutions view, expand User Interfaces > TaskName.
2. Double-click Faces Configuration to open the Faces Configuration Editor.
3. Click the ManagedBean tab, then click Add.
4. Make sure Using an existing Java class is selected and click Browse.
5. On the Select Type dialog box, type TaskNotification in the Select Entries field. The TaskNotificationContentProvider bean should appear in the Matching items window.
6. Click the TaskNotificationContentProvider bean to select it and then click OK.
7. Click Next. Provide a description if needed, and click Finish.
8. Next, you must modify the setNotifyAssignedUsers method. In the Initialization area of the editor, make sure General class is selected and then click Add.
9. In the Add Managed Property dialog box, select notifyAssignedUsers from the Property name drop-down list.
10. For the Value field, click Edit.
11. In the Edit Value dialog box, type false and click OK.
12. Save the task.
Related Topics