cancel
Showing results for 
Search instead for 
Did you mean: 

HistoricProcessInstance inside PROCESS_STARTED event in Activiti 5.22?

oszust002
Champ on-the-rise
Champ on-the-rise

I have EventListener which listens to PROCESS_STARTED event. For archiving reasons I need to get both ProcessInstance and HistoricProcessInstance of process. The problem is, PROCESS_STARTED fires before flushing data to DB so query for it returns null. Is there any other slution to get HistoricProcessInstance from this event?

1 ACCEPTED ANSWER

oszust002
Champ on-the-rise
Champ on-the-rise

Nevermind, I just found solution, I get this data directly from entity managers, from Context class

View answer in original post

1 REPLY 1

oszust002
Champ on-the-rise
Champ on-the-rise

Nevermind, I just found solution, I get this data directly from entity managers, from Context class