cancel
Showing results for 
Search instead for 
Did you mean: 

bulk workflow variable read using rungimeService

kethur
Champ in-the-making
Champ in-the-making
Hi,

I would like to read all the process variables in one query.  Right now, i am using runtimeService.getVariable() which runs a query for each process instance id.  This is too expensive for my application's performance.

is there a way i can read a particular variable from a bunch of processes in one query?

Thanks,
Raj
3 REPLIES 3

trademak
Star Contributor
Star Contributor
For this purpose it's better to use the HistoricVariableInstanceQuery. There you can query on all instances of a variables across tasks and processes.

Best regards,

kethur
Champ in-the-making
Champ in-the-making
Hi,

I would like the runtime variables and not Historic ones.  Also, i am using Activiti 5.10 and it does not have this class.  Any other alternative?

Thanks,
Raj

trademak
Star Contributor
Star Contributor
Historic variables also contain the runtime variables so that would make no difference. But in 5.10 this wasn't available yet.
Instead you can use the HistoricDetailQuery in a similar way and that should be available in 5.10.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.