cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with TaskQuery when using custom GroupEntityManager and UserEntityManager

xman-berlin
Champ in-the-making
Champ in-the-making
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.

        <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
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
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?

xman-berlin
Champ in-the-making
Champ in-the-making
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

trademak
Star Contributor
Star Contributor
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,