cancel
Showing results for 
Search instead for 
Did you mean: 

Identity management - Overriding Role and capability support

kethur
Champ in-the-making
Champ in-the-making
Hi All,

I understand the Activiti's identity service to customize the authentication so it suits individual authentication requirements. 

I have a requirement;
-> A task should be dynamically assigned to the user/group (May be i can get around with ${userName} in the candidate user field).  Please confirm.

-> I need to assign a task to a particular group (dynamic candidate group) but, I want the task to go to only people who have certain roles(eg: "AUTHORISER") and certain capabilities(eg: "GRANT_ACCESS") within the group.

I presume i need to implement this functionality in one of the following classes but which class method i need to add this functionality?  I need to pass 3 parameters, GroupName, Role, Capability to that method.

Many thanks,
Raj
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
What following classes do you mean? If you want to alter the candidate/claiming behavior, you'll have to alter the UserManage, GroupManager and TaskManager calls related to the calls used in the TaskQueryImpl.candidateUser() and TaskService.claim() commands.

kethur
Champ in-the-making
Champ in-the-making
Thanks.  sorry, forgot to add those classes.

NyConnectionParams.java
MyGroupManager.java
MyGroupManagerFactory.java
MyUserManager.java
MyUserManagerFactory.java


So, if i want to override the method - findUserByQueryCriteria in - UserManager class, how would activity Engine calls this method and when would this be called during Engine's the task claiming and completing ?

What if i want to add a new method, how does the engine know to call that method with xyz parameters?


Thanks,
Raj