cancel
Showing results for 
Search instead for 
Did you mean: 

Roles and permissions

cshar
Champ in-the-making
Champ in-the-making
I am working with activiti engine using REST api to integrate with my struts 2 application. I have a requirement to add custom roles like editor, approver, user. These roles can have different permissions like read only, read write, etc. I would like to know how can activiti allow me through REST to add roles, assign permissions, and assign users to those roles. Please help me so that I can test it out. I am very hopeful about making this solution work but so far this is a hurdle in me using activiti. Thanks.
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
Roles/Users ar defined in the process definition xml. Typically roles match certain groups.
Once set int he process definition, you can query on them through the API.

cshar
Champ in-the-making
Champ in-the-making
Hi, thanks for your reply. However I am unable to locate the process definition xml file. I understood it as a BPMN file that gets created when I draw a process diagram. Hence a little confused here. Could you please provide a hint on what service I can use to add a custom role via REST API. Also how can I assign permissions to that role? I have a clarity on users and groups to whom I can assign the role. What I am unable to understand is how do I create custom roles and assign permissions (like a read only user role, a read/ write approver role). Thanks.

cshar
Champ in-the-making
Champ in-the-making
Hi Could you please assist with above question? I am kind of stuck up on this. It would really help me if there are any suggestions. Many Thanks!!

jbarrez
Star Contributor
Star Contributor
From what you are typing, it seems you are missing some key concepts of Activiti.

You defines tasks in a process definition. Those tasks have candidate groups, matching what you need with the roles. Then, when you have running process instances of that process definition, you can query with the candidate group if there are tasks for that group.