-
1. Re: extending taskquery
kukeltje Sep 14, 2009 6:10 AM (in response to sravyts)what is the advantage of combining it into one query compared to all the hassle you get into? The number and performance of the queries?
-
2. Re: extending taskquery
sravyts Sep 14, 2009 6:59 AM (in response to sravyts)This my situation:
I have a processInstance which has a variable "objectId" which points to an id of an object in our domain model.
Now I want to query for all tasks for which the object's name referenced by "objectId" in the variables is a given value.
Any suggestions on how to do this without using a query on both our object's table and the task/variables table?
Iterating over all tasks, getting the objectId from the variables, quering the object and seeing if the name is what we are looking for, seems not to be the best way, don't you agree?
Maybe I'm overlooking some other solution?
Wkr,
Sofie -
3. Re: extending taskquery
kukeltje Sep 14, 2009 7:28 AM (in response to sravyts)Is a processinstance related to a unique objectID? If so use the businesskey. You can retrieve the processinstance by key and retrieve all tasks related to this instance
-
4. Re: extending taskquery
ielias Feb 7, 2012 9:29 AM (in response to sravyts)I have the same problem , I want to use appendOrderByClause(hql), but never execute this code in my program, I want to do my self method, where I can execute appendOrderByClause(hql) for ordered the group tasks correctly.
Does anyone know how?
Thanks.