cancel
Showing results for 
Search instead for 
Did you mean: 

Get a task's process definition name through query

felipe1
Champ in-the-making
Champ in-the-making
The Task object does not have a 'processDefinitionName' property (only 'processDefinitionID' ), so when I query for tasks and need to know the name of the process to which this task belongs I need to perform a second query.

The problem is that I'm creating a query that may return thousands of tasks, so doing a query for each task to find out its process' name would be really painful.
1 REPLY 1

trademak
Star Contributor
Star Contributor
A typical solution would be to get a list of process definitions in one query and then in the second query get the tasks. Then you can loop through all tasks and get the process definition name from the list you first queried.

Best regards,