Hi there,Below are some possible ways to specify valid assignees (potentialOwner) of userTask:
<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 groupI couldn't found any way to retrieve valid assignees in Activiti 5.0.beta1. (Please let's me know if there is a way)I would like to propose to add method below to Task interface:
List<User> Task.getAssignees()
What do you think?Best regards,Chee Kin