Activiti notify group users by email

cancel
Showing results for 
Search instead for 
Did you mean: 
signjoy
Active Member II

Activiti notify group users by email

Hi,

I need to send an emails to every users in the group as and when the new task is assigned to the group. I have written a TaskListener for that. I am trying to get all the user email ids from the group id but it is always returning empty user list.

List<User> users = Context.getProcessEngineConfiguration().getIdentityService().createUserQuery().memberOfGroup("2007").list();

Also let me know if there is any better way to achieve the notifications.

Thanks for your time