Problem with TaskQuery when using custom GroupEntityManager and UserEntityManager

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 08:45 AM
Hi folks,
I'm facing an issue when I try to perform a task query using "taskCandidateOrAssigned" but using a custom GroupEntityManager. The problem is that the iBatis-query for groups is using actititi internal tables (ACT_ID_MEMBERSHIP) ignoring the configured custom GroupEntityManager (see Task.xml / commonSelectTaskByQueryCriteriaSql / bothCandidateAndAssigned).
I already saw that it is recommended to provide a custom TaskManager as well, but this would mean I'd have to reimplement the whole task query concept just because I need to provide a custom user-group-mapping.
A quick-and-dirty solution would be that in case of using "bothCandidateAndAssigned" the "TaskQuery.taskCandidateGroupIn" attribute (candidateGroups) would be used for the query, e.g.
Any other recommendation how I can solve this issue?
Thanks,
Torsten
I'm facing an issue when I try to perform a task query using "taskCandidateOrAssigned" but using a custom GroupEntityManager. The problem is that the iBatis-query for groups is using actititi internal tables (ACT_ID_MEMBERSHIP) ignoring the configured custom GroupEntityManager (see Task.xml / commonSelectTaskByQueryCriteriaSql / bothCandidateAndAssigned).
I already saw that it is recommended to provide a custom TaskManager as well, but this would mean I'd have to reimplement the whole task query concept just because I need to provide a custom user-group-mapping.
A quick-and-dirty solution would be that in case of using "bothCandidateAndAssigned" the "TaskQuery.taskCandidateGroupIn" attribute (candidateGroups) would be used for the query, e.g.
<when test="bothCandidateAndAssigned"> <if test="userIdForCandidateAndAssignee != null"> and (RES.ASSIGNEE_ = #{userIdForCandidateAndAssignee} or (RES.ASSIGNEE_ is null and I.USER_ID_ = #{userIdForCandidateAndAssignee} or I.GROUP_ID_ IN <foreach item="group" index="index" collection="candidateGroups" open="(" separator="," close=")"> #{group} </foreach>) ) </if> </when>
Any other recommendation how I can solve this issue?
Thanks,
Torsten
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2014 08:18 AM
Hmmm this seems to me to be more of a bug, as the query basically doesnt work using custom identity management.
Would you be able to create a jira issue for this?
Would you be able to create a jira issue for this?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2014 06:35 AM
Hi Joram,
I don't have a JIRA account. On the website, they told me: "Not a member? To request an account, please contact your JIRA administrators."
Whom shall I contact?
Thanks,
Torsten
I don't have a JIRA account. On the website, they told me: "Not a member? To request an account, please contact your JIRA administrators."
Whom shall I contact?
Thanks,
Torsten

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2014 11:17 AM
Hi Torsten,
You should be able to create a JIRA account here:
http://xircles.codehaus.org/signup
Let me know if it doesn't.
Best regards,
You should be able to create a JIRA account here:
http://xircles.codehaus.org/signup
Let me know if it doesn't.
Best regards,
