User story
As a developer, I want to have the option to define variables that should be fetched with process instances, so that I do not have to run separate queries.
Background / problem
When having X open user tasks, it takes 3X REST requests to get the variables needed to evaluate and prioritize these user tasks.
i.e. Getting the variables for 100k user tasks currently requires 300k REST requests to get the variables of interest, which is taking a lot of time and strains the system severely.
Customer hint:
if the rest/tast/get-query/ also allowed to choose variable types and variables of interest all the 300K REST requests could be reduced to 1 REST request
AC
- Offer a query to fetch a process instance with defined variables attached to the process instance
- Avoid additional queries for each fetched process instance when specific variables are needed