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?
Solved! Go to Solution.
Nevermind, I just found solution, I get this data directly from entity managers, from Context class
Nevermind, I just found solution, I get this data directly from entity managers, from Context class
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.