Sending Task Notifications to Non-Assigned Users
About this task
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.
To send task notifications to unassigned and subscribed users
Procedure
- You must first add the TaskNotificationContentProvider bean to the Faces Configuration Editor. In the Solutions view, expand User Interfaces > TaskName.
- Double-click Faces Configuration to open the Faces Configuration Editor.
- Click the ManagedBean tab, then click Add.
- Make sure Using an existing Java class is selected and click Browse.
- On the Select Type dialog box, type TaskNotification in the Select Entries field. The TaskNotificationContentProvider bean should appear in the Matching items window.
- Click the TaskNotificationContentProvider bean to select it and then click OK.
- Click Next. Provide a description if needed, and click Finish.
- Next, you must modify the setNotifyAssignedUsers method. In the Initialization area of the editor, make sure General class is selected and then click Add.
- In the Add Managed Property dialog box, select notifyAssignedUsers from the Property name drop-down list.
- For the Value field, click Edit.
- In the Edit Value dialog box, type false and click OK.
- Save the task.