cancel
Showing results for 
Search instead for 
Did you mean: 

I can't read into variableIntances

pachera_simone
Champ in-the-making
Champ in-the-making
Hi there,

context :
I deploy my BPM process like this

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("name_process", variableMap);

problem :
When the process is finished I want to get all my process variables in the easiest way (like this)

Map<String, Object> resultMap = new HashMap<String, Object>();
resultMap.putAll(processIntance.getProcessVariables();

When i do debug after the finish of the process i can see the variables I need into the processIntances, but when I call the code up here the result is always NULL

What can I do? What is the error?

Thank you all

Simone
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Simone,

When the process instance is finished, there is no row in the ACT_RU_* table. (There is still track of the process instance in the ACT_HI_* tables).
Use HistoryService to query finished process instance variables.

Regards
Martin

Thank you Martin

Simone