AnsweredAssumed Answered

Historic Process Variables

Question asked by dmifs on Feb 26, 2014
Latest reply on Feb 27, 2014 by dmifs

I am quite a beginner with Activiti. I am running a simple process which just contains a java task. I am setting some variables and when the process finishes I can see them in the database table ACT_HI_VARINST  as can be seen below


Now I would like to retrieve them and I am using the code below

   HistoricProcessInstance history = processEngine.getHistoryService()
   Map<String, Object> processVars = history.getProcessVariables();

however the map is empty and doesn't contain any entries. I am just interested in the final state of the variables and do not need the intermediary state for now. Can you please help?