roxy1987
2013-01-15 21:59:40 UTC
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion
"Dynamic task assignment"
To view the discussion, visit: https://community.jboss.org/message/792128#792128
--------------------------------------------------------------
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
[https://community.jboss.org/message/792128#792128]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
"Dynamic task assignment"
To view the discussion, visit: https://community.jboss.org/message/792128#792128
--------------------------------------------------------------
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
[https://community.jboss.org/message/792128#792128]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]