cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti: potentialStarter method not work

jolo_
Champ on-the-rise
Champ on-the-rise
I defined my process like:

<process id="myProcess"
             name="My process"
             isExecutable="true"
             activiti:candidateStarterUsers="MANAGER"
             activiti:candidateStarterGroups="MANAGER">
….


Problem:
The groups and users lists are empty after:

List<Group> groups = identityService.createGroupQuery().potentialStarter("myProcess").list();
List<User> users = identityService.createUserQuery().potentialStarter("myProcess").list();

No matter I proceed those queries bofore or after process start.

Question:
What the reason?

P.S.
I've added "MANAGER" to act_id_user, act_id_group, act_id_membership
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
.potentialStarter takes in the DB id of the process definition, not the process xml id.