I want to get the unassigned tasks of all process instances of a process definition.
The graphql query TaskQuery does not have a ProcessName nor a ProcessDefinitionId field to query only the tasks of a process definition. So, I am forced to iterate on returned Task objects to filter what I am interested for. I think this is an over-fetching.
Anyone has another idea to query the tasks of a proces definition? Am I missing something?
with two query parameters, for example:
processDefinitionName - Restrict to tasks that belong to a process definition with the given name.
active - Only include active tasks. Value may only be true , as false is the default behavior.
So, one request and I get what I need without further treatments.
Your solution I don’t think is feasible: first get all task definition ids of a process definition, then iterate over and query them.