-
1. Re: Group Assignment
roxy1987 Jan 18, 2013 2:47 PM (in response to roxy1987)1 of 1 people found this helpfulWell I have solved the second part by adding a list of groups to the method claim.
client.getTasksAssignedAsPotentialOwner(userId, groups, "en-UK", summaryHandler);
But still wondering about 1st question.
-
2. Re: Group Assignment
thomas.setiabudi Jan 21, 2013 8:19 AM (in response to roxy1987)Hi roxy1987,
What version of JBPM do you use?
in JBPM5.4, Human Task Service will use UserGroupCallback to get the user's group, so when the userGroupCallback component cannot prove that mary belong to the group in which the task is assigned, you will get that error.
You can give mary membership to the group by editing the roles.properties file or you can override and write your own implementation of userGroupCallback if you get your user and group relation on other place such as database.
if you write your own implementation of userGroupCallback, make sure you tell HumanTaskService to use your component by specifying it on
\jbpm-human-task-war.war\WEB-INF\web.xml
<param-name>user.group.callback.class</param-name>
<param-value>org.jbpm.task.identity.DefaultUserGroupCallbackImpl</param-value>Regards,
Thomas Setiabudi
-
3. Re: Group Assignment
roxy1987 Jan 21, 2013 8:41 AM (in response to thomas.setiabudi)Thanks for your reply Thomas. I am able to workout the 2nd question. I just need the name of the group to which the task was assigned. Is there no way to get the group id using the taskSummary Object that I have?
I cant find out the information using just the id of the user as it is gonna be assigned to many different groups.
Regards.
-
4. Re: Group Assignment
thomas.setiabudi Jan 21, 2013 7:38 PM (in response to roxy1987)1 of 1 people found this helpfulHi Roxy1987,
By Default, The TaskSummary object does not have information about the name of the group.
If you are using JBPM5.4, you can look at the query to get content of TaskSummary at
jbpm-human-task-war.war\WEB-INF\classes\META-INF\Taskorm-JPA2.xmlYou can try to modify that query, or you can just query the database directly to get the name of the group.
Regards,
Thomas Setiabudi
-
5. Re: Group Assignment
roxy1987 Jan 22, 2013 9:27 AM (in response to thomas.setiabudi)Yeah well I guess thats what I would need to do. Thanks Thomas. Your help Much appreciated.