[jboss-user] [JBoss Seam] - Re: jbpm, AssignmentHandler and bijection

Strategy do-not-reply at jboss.com
Wed Dec 19 04:52:08 EST 2007


Hi, all!

I have got the same problem.
I have a jbpm-swimlane connected with an assignmentHandler. This assignmentHandler should identify the user by a variable inserted by injection (@IN). But this variable is always null. 

Here´s the sourceCode of the Handler:



  | @Name("studentAssignment")
  | public class StudentAssignment implements AssignmentHandler  {
  | 
  | 	
  | 	@In
  | 	Person currentUser;
  | 
  | 	
  | 	public void assign(Assignable arg0, ExecutionContext arg1) throws Exception {
  | 		
  | 		if (currentUser == null) { 
  | 			arg0.setPooledActors(new String[]{"Student"});
  | 		} else {
  | 			arg0.setActorId(currentUser.getId().toString());
  | 		}
  | 	}
  | }
  | 

Looks like it doesn´t work this way.
What alternatives do i have to insert any variable in the class ?

Thanks,
  Matthias

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

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




More information about the jboss-user mailing list