How to assign a UserTask to a Group based on the user?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2014 12:44 PM
Currently I have a User Task with Candidate users as [admin,user] and Candidate groups as [admingroup,usergroup].
How do I set the Task so that if an admin starts a process which uses a UserTask, it only goes into the 'admingroup', and if a user starts a process, it only goes into the 'usergroup'?
With Regards,
How do I set the Task so that if an admin starts a process which uses a UserTask, it only goes into the 'admingroup', and if a user starts a process, it only goes into the 'usergroup'?
With Regards,
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2014 03:05 AM
Hi,
Evaluate candidate group in serviceTask (scriptTask). This evaluation can be based on process instance initiator (http://www.activiti.org/userguide/#bpmnStartEvents)
Regards
Martin
Evaluate candidate group in serviceTask (scriptTask). This evaluation can be based on process instance initiator (http://www.activiti.org/userguide/#bpmnStartEvents)
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2014 06:32 AM
Thanks Martin, I achieved it by then removing the visible groups each user sees when logged on.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 04:23 AM
No, Activiti doesn't know anything about 'active' or 'inactive'. That is logic you'll have to add yourself.
