Custom group member verification

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2015 05:43 PM
Hi everyone,
I have a simple workflow with one usertask. My user task contains:
and I can search tasks by this query:
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2015 05:51 AM
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.
That's something you'll need to add in the layer you have above Activiti, and do a direct query, ignoring any candidate group.
