2 Replies Latest reply on Jan 15, 2013 5:21 PM by roxy1987

    Dynamic task assignment

    roxy1987

      Hi,

       

      I am in a scenario where I need to dynamically assign task to actors. But I dont wanna use expressions and variables. I believe there is no Assignment Handler in jbpm 5 unlike jbpm 4. So what I have in mind is to leave the actor ID parameter blank and while starting the process I can search my custom tables and match task names to get the appropriate actors and then may be map the tasks with the actors using jbpm API. Is there a possibility for such a design? I get the ProcessInstance object while starting a process. So I can use the process instance id for creating such a mapping. But I am not getting how to use the PI object.

       

      Or may be some one could suggest a better way of achieving this.

       

      Thanks.