-
1. Re: jBPM5 : Assign Human task to a Group / Role
gxqin Jun 2, 2011 10:38 AM (in response to suadalshamsi)i'm facing the same problem too. still not get any solution.
-
2. Re: jBPM5 : Assign Human task to a Group / Role
gxqin Jun 2, 2011 10:59 AM (in response to gxqin)hi,man
seems i found the solution. this association is not defined in xxx.mvl files. just in the xx.bpmn file. you need to define both groupid and actorid. then, the enginee will create association between this group and actorids.
-
3. Re: jBPM5 : Assign Human task to a Group / Role
kirubagaran Jun 15, 2011 12:41 AM (in response to gxqin)Hi Austen,
Im also facing same problem
If u have any example Please post here that will help us a lot and i will save a lot of time
Regards,
Kiru
-
4. Re: jBPM5 : Assign Human task to a Group / Role
blazob Jun 16, 2011 11:38 AM (in response to suadalshamsi)Same problem we have. No success with setting in bpmn file.
Is there some hint or sample file please.
Regards
BlazoB
-
5. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Sep 28, 2011 2:47 PM (in response to suadalshamsi)I would like to see exaple of group human task.
I aslo found following thread: http://community.jboss.org/message/602786
There is setUserInfo( ) on TaskService used, but did't manage how to use it.
It would be greate to have any halp from community
-
6. Re: jBPM5 : Assign Human task to a Group / Role
calca Sep 28, 2011 9:32 PM (in response to a.kushunin)Hi! Maybe this simple example can help you to clarify:
jbpm does not keep reference to the association between user and group. Recently it was added a callback interface to integrate with any external system:
Hope this helps,
Demian
-
7. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Sep 29, 2011 3:14 AM (in response to calca)Hi Demian!
Thanks for example. But I still missing something :-(
If I set ActorId, without any GroupId in my bpmn file, than I can retrive tasks assignet to this actorId using:
client.getTasksAssignedAsPotentialOwner("actorId", "en-UK", taskSummaryResponseHandler);
But if I set ActorId and GroupId in bpmn tasks list always empty no matter if I use
client.getTasksAssignedAsPotentialOwner("actorId", "en-UK", taskSummaryResponseHandler);
or
client.getTasksAssignedAsPotentialOwner("actorId", groups, "en-UK", taskSummaryResponseHandler);
I looked at example that you provided and tried to also remove ActorId from task and left only GroupId, but still no luck. What I have missed?
I aslo tried to use process definition from the exapmle, but have the same troubles task list is empty. But in DB tasks are created.
-
8. Re: jBPM5 : Assign Human task to a Group / Role
melc Sep 29, 2011 9:43 AM (in response to a.kushunin)Hello,
just specifying the groupid and
this code
client.getTasksAssignedAsPotentialOwner("actorId", groups, "en-UK", taskSummaryResponseHandler);
is enough.
Make sure that you have added the groups and users to the task session i.e. from https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/BaseHumanTaskTest.java
.....
session.addUser(new User(testUser));
session.addGroup(new Group(testGroup));
Also make sure the database table OrganizationalEntity contains them.
-
9. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Sep 29, 2011 9:47 AM (in response to melc)hm, Users and Groups are added to the session and present in DB. But no luck
-
10. Re: jBPM5 : Assign Human task to a Group / Role
calca Oct 3, 2011 3:11 PM (in response to a.kushunin)Hey, could you please provide a running test so that we can try to reproduce it and help you?
Thanks,
Demian
-
11. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Oct 18, 2011 11:57 AM (in response to calca)I've downloaded tests, and they realy works fine, but in my environment group tasks list is alway empty.
Today I've found the problem.
I've traced querries to MySql DB, and if I start TasksServer (i.e. Mina) in J2SE environment it makes different calls to DB.
When I start TasksServer in J2EE environment (EJB 3.1 and JPA 2.0) it's generates 2 extra joins in query:
inner join tasks.OrganizationalEntity user7_ on task0_.actualOwner_id=user7_.id
inner join tasks.OrganizationalEntity user8_ on task0_.createdBy_id=user8_.id
So group task has empty values in actualOwner_id and createdBy_id columns (because it's group task (-: ) and result is always empty.
Any suggestion how to tell hibernate not to add extra joins?
-
12. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Oct 19, 2011 7:06 AM (in response to a.kushunin)Found the solution, but it's connected to named queries in orm.xml of human task.
Extra joins appears because of: https://hibernate.onjira.com/browse/HHH-5518
Solution provided on link below works, and I can finnaly see group tasks on my page.
Should I post CR into jBPM jira according this problem?
-
13. Re: jBPM5 : Assign Human task to a Group / Role
salaboy21 Oct 19, 2011 8:50 AM (in response to a.kushunin)Hi Aliaksei,
Yes if you can post that in a jira issue for us, it will definitely help!
-
14. Re: jBPM5 : Assign Human task to a Group / Role
a.kushunin Oct 19, 2011 9:13 AM (in response to salaboy21)