AnsweredAssumed Answered

Assigning task to bunch of users using activiti API

Question asked by shivnarayanvarma on Jun 11, 2014
Latest reply on Jun 12, 2014 by martin.grofcik
Dear Developers,

Can you please help with sample code to assign a task to multiple users ( not a single user).

List<String> userList = findUserService.findUsersByTaskLevel(execution,"approveAction");
        for (String userId : userList){
           taskService.addCandidateUser(execution.getId(), userId);

Is this the right way, but this is not working for me.