Assign Users at the job creation point

Help us to improve OpenKM! Be part of the Open Source Community.
Forum rules
Please, before asking something see the documentation wiki or use the forum search function.
Post Reply
OpenInsight
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Thu Aug 18, 2011 6:22 pm

Assign Users at the job creation point

Post by OpenInsight » Tue Aug 23, 2011 11:58 am

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

jllort
Moderator
Moderator
Posts: 10830
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Assign Users at the job creation point

Post by jllort » Fri Aug 26, 2011 8:06 am

I don't know if it's possible doing it on jbpm.

pavila
Moderator
Moderator
Posts: 3072
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Assign Users at the job creation point

Post by pavila » Mon Aug 29, 2011 8:02 am

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.

OpenInsight
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Thu Aug 18, 2011 6:22 pm

Re: Assign Users at the job creation point

Post by OpenInsight » Wed Aug 31, 2011 4:10 am

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

pavila
Moderator
Moderator
Posts: 3072
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Assign Users at the job creation point

Post by pavila » Fri Sep 02, 2011 6:42 am

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.

Post Reply