09-14-2010 11:03 PM
<userTask id="theTask" name="my task" activiti:candidateUsers="kermit, gonzo" />
Valid assignees = kermit and gonzo
<userTask id="theTask" name="my task" activiti:candidateGroups="management, accountancy" />
Valid assignees = All members of management and accountancy group
<userTask id="handleRequest" name="Handle vacation request"
activiti:form="/vacationRequest/approval" >
……………
<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>management</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>
</userTask>
Valid assignees = All members of management group
List<User> Task.getAssignees()
09-15-2010 02:45 AM
09-15-2010 05:07 AM
09-15-2010 06:43 AM
On the identityService:
List<Group> findGroupsByUserId(String userId)
List<User> findUsersByGroupId(String groupId);
09-16-2010 04:21 AM
09-16-2010 05:20 AM
09-17-2010 05:32 AM
09-17-2010 10:33 AM
there is currently no way through our identity service to obtain the users yet.
as part of http://jira.codehaus.org/browse/ACT-104 (Replace findXxx methods returning lists with query API), there will be an api offered that should look like this: identityService.createUserQuery().list();
10-04-2017 03:51 AM
I just found this thread from 2010, and now in 2017 I have the same question.
How can I get the list of candidates (groups and users) of an user task?
I found the object "UserTask" that contains two lists (candidateUsers and candidateGroups), but I don't know how to return this object with TaskQuery.
Thanks.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.