Thank you for your reply and help. I tried what you said, and added a swimlane like this:
| | <swimlane name="demandeur1"> | <assignment expression="user(mennen)"></assignment> | </swimlane> | | <swimlane name="demandeur2"> | <assignment expression="user(luc)"></assignment> | </swimlane> | | <task-node name="task3"> | <task swimlane = "demandeur1"> | <event type="task-create"> | <action class="org.jbpm.mennen.CommandeAction2"/> | </event> | <controller> | <variable name="Date_demande" access="read"/> | <variable name="transition" access="read"/> | </controller> | </task> | <transition name="" to="task4"></transition> | </task-node> And after that, i set the swimlane instance in the CommandeAction2: | Swimlane swimlane =(Swimlane) executionContext.getVariable("swimlane2"); | SwimlaneInstance swimlaneInstance = executionContext.getTaskMgmtInstance().getSwimlaneInstance("demandeur2");// | //SwimlaneInstance swimlaneInstance = new SwimlaneInstance(swimlane); // this was what i did before | executionContext.getTaskInstance().setSwimlaneInstance(swimlaneInstance); I set the actorId to : executionContext.getTaskInstance().getSwimlaneInstance().setActorId("luc"); And then i save everything: executionContext.getJbpmContext().save( executionContext.getTaskInstance()); | executionContext.getJbpmContext().save(pi); I printed the swimlaneInstance's actorId, and it was the good one: Luc. But when i executed the process.. it keeps assigning the task3 to the old swimlane "demandeur1" (the one defined in the process definition). I don't know what i'm missing, Please help, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925531#3925531 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925531 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user