HistoricProcessInstance inside PROCESS_STARTED event in Activiti 5.22?

cancel
Showing results for 
Search instead for 
Did you mean: 
oszust002
Active Member

HistoricProcessInstance inside PROCESS_STARTED event in Activiti 5.22?

Jump to solution

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 Solution

Accepted Solutions
oszust002
Active Member

Re: HistoricProcessInstance inside PROCESS_STARTED event in Activiti 5.22?

Jump to solution

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

View solution in original post

1 Reply
oszust002
Active Member

Re: HistoricProcessInstance inside PROCESS_STARTED event in Activiti 5.22?

Jump to solution

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