As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<potential owners>
<userTask id="usertask1" name="myOrder" activiti:formKey="jiswf:myOrders"> <extensionElements> <activiti:taskListener event="create" class="org.xxx.TaskAssignerTaskListener"></activiti:taskListener> </extensionElements> </userTask>
public void notify(DelegateTask task) { String[] users = (String[]) task.getVariable("jiswf_toName"); if(users.length==1) { task.setAssignee(users[0]); } else { task.addCandidateUsers(Arrays.asList(users)); } }