cancel
Showing results for 
Search instead for 
Did you mean: 

Custom group member verification

errorcv
Champ in-the-making
Champ in-the-making
Hi everyone,

I have a simple workflow with one usertask. My user task contains:


activiti:candidateGroups="mygroup"


and I can search tasks by this query:


List<Task> tasks = taskService.createTaskQuery().taskCandidateOrAssigned("myuser").list();


I read about IdentityService and custom session factories (how to manage users and groups)
but I need to implement retriving user tasks without real assignement to group

For instanse I have group name "mygroup" and user name "myuser" which is not assigned to group but has permission attribute.

How can I extend activiti functionality for fetching user tasks by username using custom group permission verification?

Thanks in advance




1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Not sure im following the use case here. So your user is part of another group, which grants auto permission on tasks?

That's something you'll need to add in the layer you have above Activiti, and do a direct query, ignoring any candidate group.