Get variable in historyTask

In taskService i found method: taskService.getVariables(), like that:

image

But in historyService i can not find method like method taskService.getVariables(), I want it return Map<String, Object> mapVariables

Im try use : historyService.createHistoricVariableInstanceQuery() but it return List should i cannot use data is Object like Map<String, Object> mapVariables

Support me, thanks u.

As far as I know Flowable doesn’t have special API that returns historic data in a map. You should transform the list of objects returned by Flowable into anything you want manually.

1 Like