cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic users and groups

martin123
Champ in-the-making
Champ in-the-making
Hi,

I am using Activiti on Tomact 7 and without Spring. I am not sure how to go about implementing dynamic users and groups. Here is the scenario.

I am implementing a project management tool. My users and groups are dynamic. The admin can create new users and groups at will. And users can only create, edit, approve projects assigned to their groups only. So while the approval process is the same for all, the approving users and groups are dynamic depending on different factors like the owner, project cost. priority etc.

Using addCandidateGroups or users programatically will  not work since it will add these users permanently as approvers for this workflow.

Is there any way to define the users/groups per Process instance rather than process definition?

Thanks


1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Sure, just use expressions for assignment and they will be resolved at the moment when the task is created, not up front.