03-15-2011 07:21 AM
pe.getTaskService().createTaskQuery().taskAssignee("life").taskCandidateUser("life").orderByTaskCreateTime().desc().listPage(0, 1000) And I found the generated sql is :select distinct T.* from ACT_RU_TASK T
inner join ACT_RU_IDENTITYLINK I on I.TASK_ID_ = T.ID_
WHERE T.ASSIGNEE_ = ?
and T.ASSIGNEE_ is null
and I.TYPE_ = 'candidate'
and ( I.USER_ID_ = ? )
order by T.CREATE_TIME_ desc 03-16-2011 06:27 AM
03-17-2011 04:45 AM
Hi,Thanks for your reply, I'm using version 5.1.
1) When asking for taskAssignee and candidate in the same query, you get the contradicting T.ASSIGNEE_ clauses. This is because the candidate user/group excludes all tasks that are already assigned.
2) You can use the TaskQuery.taskVariableValueEquals (and in 5.4, also processVariableValueEquals) for this. Per variable you query, a extra join will be made in DB.
03-21-2011 12:36 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.