Well, if you want to create a multi instance task (user or service doesn' t matter) you have to click on the task, select "multi instance" label, then set Collection=yourcollectionname and Element variable=assignee, in the "main config" label you have to set Assignee=${assignee}.
To create your collection you have to add a service task that point a java class and in the java class you have to write:
import java.util.ArrayList;
import org.activiti.engine.delegate.*;
public class multi implements JavaDelegate{
public void execute(DelegateExecution execution) throws Exception {
ArrayList<String> nameList = new ArrayList<String>();
nameList.add("user1");
nameList.add("user2");
nameList.add("user3");
execution.setVariableLocal("nameList", nameList);
}
}
Now you have created the collection, so click on your folder project then "Create deplyoment artifacts" so in your deployment folder you will now have the file "myclass.jar", copy that file in your activiti folder under apps/tomcat/activiti-explorer/WEB-INF/libs the restart it with "ant demo.stop" then "ant demo.start".
This is for eclipse designer, i don' t know how to make it with other designers.
Cheers, Ivan.