TODO:
- investigate to improve the performance of the historic variable instance query
historyService.createHistoricVariableInstanceQuery().processInstanceIdIn(processInstanceIds).variableName(variableName).list();
- with activated authorization
- apply "new" authorization check like it is already done in historic process instance query
Hint:
- the query
SELECT DISTINCT DKEYS.PROC_DEF_KEY_ FROM ACT_HI_VARINST DKEYS;
seems to be slow (see the support issue for details)
- the "old" authorization check is still used in the historic variable query