Well I have solved the second part by adding a list of groups to the method claim.
client.getTasksAssignedAsPotentialOwner(userId, groups, "en-UK", summaryHandler);
But still wondering about 1st question.
Reply to this message by going to Community
Start a new discussion in jBPM at Community