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

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to