i am writing a C# SOA program to change the assignment of a users workflow tasks.
There are many tasks that are not relevant for me (Completed Tasks, Aborted Tasks, ...).
I only want to get taks where the task state is Pending (2), Started (4) or Suspended (128) AND where the the task state of the roottask is Started (4) or Suspended (128).
I could build a TC query to find all tasks by a given Responsible Party and filter them manually in my C# code, but the problem is that this methode has a very bad performance, because I also load tasks that i don't need (and this can be a lot).
Is there any SOA function that returns me only the tasks that i need?