AnsweredAssumed Answered

Geting variables withing a Task or process

Question asked by tima_d on Dec 15, 2012
Latest reply on Dec 18, 2012 by jbarrez
Hi!
Is it possible to get all process or task variables using TaskService:

processEngine.getTaskService.createTaskQuery().list();

I know there is an opportunity to get variables via
processEngine.getTaskService().getVariable()

or

processEngine.getRuntimeService().getVariable()

but every of operation above goes to database. If I have list of 100 tasks I'll make 100 queries to DB. I don't want to use this approach. Is there any other way to get task or process related variables?

Outcomes