Page 1 of 1
Assign Users at the job creation point
PostPosted:Tue Aug 23, 2011 11:58 am
by OpenInsight
It is better if we can assign task to the users at the time we create job.
Ex: Workflow definition with task 1, task 2 and task 3.
At the job creation point we want to assign task 1 to user 1 , task 2 to user 2 and task 3 to user 1 and 2
Re: Assign Users at the job creation point
PostPosted:Fri Aug 26, 2011 8:06 am
by jllort
I don't know if it's possible doing it on jbpm.
Re: Assign Users at the job creation point
PostPosted:Mon Aug 29, 2011 8:02 am
by pavila
Do you mean when starts a workflow, show a dialog to select which user should be assigned to every task? This is not a typical workflow behavior. In jBPM as may other workflow engines, you can decide who will be assigned a task when you are creating the process definition, or at runtime, specifying users or roles (swimlanes) etc.
Re: Assign Users at the job creation point
PostPosted:Wed Aug 31, 2011 4:10 am
by OpenInsight
Thnx for the reply.
In my workflow scenario User role to a task is defined. but user to a task should be selected at runtime. At the first task of the workflow user to the task is selected based on the user role assigned to the task.
Is it possible to do this using JBPM. If i could load uses in the database to a dropdown list in a workflow form i will be able to do this.
http://forum.openkm.com/viewtopic.php?f=31&t=5354
Thanks in advance
Waruna
Re: Assign Users at the job creation point
PostPosted:Fri Sep 02, 2011 6:42 am
by pavila
If you want to assign a task dynamically you can implement an AssignmentHandler. Read
jBPM documentation for more info, but is simple because you only need to create a class which implements this interface.