AnsweredAssumed Answered

Want user to choose executors for further multiinstance usertasks

Question asked by bpmn on Apr 7, 2014
Latest reply on Apr 22, 2014 by jbarrez
Hi. I want user in first usertask to choose multiple users as assignees of second multiinstance usertask. Is there a way to do it?
Now I can do it by setting a variable in task listener and then use this var for setting assignees like that

            List<String> approvers = new java.util.ArrayList<String>();
            approvers.add(orgOD.getHeadOrg().getChief().getUUID());
            approvers.add(orgMTO.getHeadOrg().getChief().getUUID());
            approvers.add(orgFin.getHeadOrg().getChief().getUUID());
            runtimeService.setVariable(delegateTask.getProcessInstanceId(), "approvers", approvers);

But i need to do it via forms. I found that submitFormProperties takes only string properties.  But later it uses org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(String variableName, Object value) to set a resulting variable.

Outcomes