JBoss Community

Dynamic task assignment

created by roxy1987 in jBPM - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in jBPM at Community