-
1. Re: Group Task Assignment proble- Unable to see task avalaib
gfargone Apr 13, 2009 3:46 PM (in response to swatis)You cannot assign the same task to different individuals (actors). That would lead to concurrency problems like both persons starting the same task. Whose actions are really driving the task?
You need a way for your users to see a group task list where they can take ownership of the task, or a supervisor/manager can assign it to them.
The bottom line is that you can have only one single actor can be assigned to a task, or a group as you have found out.
At least this is my understanding of it. -
2. Re: Group Task Assignment proble- Unable to see task avalaib
swatis Apr 14, 2009 12:33 AM (in response to swatis)Hi, Thanks for your reply.
As you said task can be assigned to actor or group right. I did the same thing I assigned task to group But lets say If userA is member of Group then he should see that task present in his personal/group task list.
To take owenership of that task, that task should be visible to all members of group and then any one from that group can claim to perform the task. -
3. Re: Group Task Assignment proble- Unable to see task avalaib
pyuill Apr 14, 2009 8:36 PM (in response to swatis)Hi Swati,
This is definitely a bug. I have patched two source files to get over it. They are org.jbpm.jsf.core.action.ListTasksForActorActionListener and org.jbpm.jsf.core.action.AssignTaskActionListener . You can find them, along with a built war, at http://www.objectix.com.au/jbpm/ .
You can build the console yourself from subversion (http://anonsvn.jboss.org/repos/jbpm/projects/jsf-console/) or use the one that I built on the 3.2.6.SP2 code base, which should work fine with 3.2.3
Regards,
Peter -
4. Re: Group Task Assignment proble- Unable to see task avalaib
swatis Apr 14, 2009 11:57 PM (in response to swatis)Hi Peter,
Thanks a lot. I have downloaded files from objectX site.
I will update once I'm able to fix this problem.
Right now I used custom assignment handler class who will read who all are members in group and then using setPooledActors method assigned this task to multiple actors. Now manager can assign this task to one of the actor using "All Task" link present on his console. This task is then visible to the assigned actor on his personal/group task list.
I know this is not the proper solution. But this is not the solution for group assignment.
Now I will try out your suggestion and will update you. Thanks. -
5. Re: Group Task Assignment proble- Unable to see task avalaib
mputz Apr 15, 2009 4:58 AM (in response to swatis)@Swati,
I think the heading 'Personal/Group Tasks' is just misleading in the JSF console implementation, as the list only contains those tasks that are actually assigned to the current user. But the list does *not* contain those tasks where no user is yet assigned, but where the current user is contained in the list of pooled-actors, where he is therefore a candidate for performing the task.
@Peter
I don't think your patch aligns with the notion of 'groups' as it is used within the current jBPM console implementation. In your patched ListTaskForActorActionListener version the groups of a user are fetched using the jBPM identity module, which are then used as parameter in the TaskMgmtSession.findPooledTaskInstances(actorIds) function. In my opinion, the term 'group' just has the meaning of a list of comma-separated actorIds as used in the pooled-actors attribute, and this is what should rather be passed in into the function above, in case the list should display tasks where a user is a candidate for. -
6. Re: Group Task Assignment proble- Unable to see task avalaib
swatis Apr 15, 2009 6:20 AM (in response to swatis)Martin, thats what I said in earlier replies that link heading on console is "Personal/Group Taks list" but it doesnot displays the task to user even if that actor is present in pooled actors list.
Only "manager" using "All Tasks" link can assign task to the anyone of the pooled actor by using link "assign" present just beside each actorname.