3 Replies Latest reply on Feb 7, 2007 10:12 AM by JAVIER ROSADO

    Is possible that various users can do the same task parallel


      I can create the same task to various users(ex 3 users'bert, cookie monster y grover') but when they close all task (task1 of the example)only one task submit to the next node(task2 of the example).(i tried with signal=last, lastwait, first wait,never and unsync) and nothing.
      The user of the follow task only view one task (of the last who closed the task). Him should view all task submited(ex of the 3 users).
      In the table JBPM_TASKINSTANCE only be had created one task Instance, when should create 3 taskinstance to the next node task2 of the example.

      My code:

      <?xml version="1.0" encoding="UTF-8"?>
       xmlns="urn:jbpm.org:jpdl-3.1" name="DefPruebaAjax">
       <swimlane name="rol1">
       <assignment expression="user(ernie)"></assignment>
       <swimlane name="rh">
       <assignment expression="group(sales)"></assignment>
       <start-state name="inicio" >
       <task name="tarea" swimlane="rol1">
       <transition name="t1" to="task1"></transition>
       <task-node name="task1" create-tasks="false" >
       <event type="node-enter">
       <action name="action1" class="com.sample.action.Asignacion">
       <task name="tarea1">
       <transition name="t2" to="task2"></transition>
       <task-node name="task2" >
       <task name="tarea2">
       <assignment expression="user(bert)"></assignment>
       <transition name="ss2" to="end1"></transition>
       <end-state name="end1"></end-state>
      public class Asignacion implements ActionHandler {
       public String grupo;
       public void execute(ExecutionContext executionContext) throws Exception {
       // TODO Auto-generated method stub
       Token token = executionContext.getToken();
       TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance();
       TaskNode taskNode = (TaskNode) executionContext.getNode();
       Task task= taskNode.getTask("tarea1");
       tmi.createTaskInstance(task, token).setActorId("bert");
       tmi.createTaskInstance(task, token).setActorId("cookie monster");
       tmi.createTaskInstance(task, token).setActorId("grover");
       private static final Log log = LogFactory.getLog(Asignacion.class);

      Sorry with my english....