[jboss-user] [JBoss jBPM] - Re: Swimlane assignment - h e l p m e !

freejohn22 do-not-reply at jboss.com
Mon Sep 15 09:03:43 EDT 2008

thanks for your reply (sorry for taking long to reply too).
Well at the moment I have applied an AssignmentHandler, the matter is that inside the AssignmentHandler I have to check on which node I am.

if (node.equals("AssignTicket"))
  | actorId= getDeveloperName(ctx);
  | if (node.equals("TicketResolved"))
  | actorId= getManagerName(ctx);

That's quite ugly, I have tried using a barebones SwimLane just to tell the Task which kind of user is in the task........

  | <swimlane name="manager" />      
  | <swimlane name="developer" /> 
  |   <task-node name="AssignTicket">	   
  | 	    <task name="TicketAssignment" " swimlane="developer">
  |                      <assignment class="assignment.AssignTask" />
  | </task>
  |          .........
  |   </task-node>
  | 	<task-node name="TicketResolved">
  | 	    <task name="Ticketsolved" swimlane="manager">
  |                      <assignment class="assignment.AssignTask" />
  | 	    </task>
  |          .........
  | 	</task-node>

But using swimlane="xxx" then the assignment class is not called anymore!

Is there a way when AssignTask is fired to know the swimlane ?
(if the task belongs to the developer group or to the manager group)

I hope I have been clear........
thanks a lot

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176504#4176504

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176504

More information about the jboss-user mailing list