cancel
Showing results for 
Search instead for 
Did you mean: 

excution is null when a processinstance start

sendreams
Champ in-the-making
Champ in-the-making
a normal process, i want to get the process progress diagram inmidiately after start it ,  but the execution will return null.

the code is below:
Execution execution = runtimeService.createExecutionQuery()
                     .processInstanceId(processInstanceId).singleResult();

after restart the angine, there will be ok.

i think it is a bug.

i use 5.19.0.2
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Can you create jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin