How can I search for process instances started/created by a particular user? I used the identityService to set the authenticatedUser before creating the instance so that the START_USER_ID_ column in the ACT_HI_PROCINST table is populated. I don't see any obvious way of performing this operation using ProcessInstanceQuery. Appreciate any help.
For that you can use HistoricProcessInstanceQuery HistoricProcessInstanceQuery (Activiti - Engine 5.22.0 API)
Thanks Bassam. My understanding was that the HistoricProcessInstanceQuery can be used only against ended instances and not against active process instances. I need to run the query against active instances.
HistoricProcessInstanceQuery can also be used for unfinished instances as well. To only retrieve unfinished instances use unfinished method HistoricProcessInstanceQuery (Activiti - Engine 5.22.0 API)
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.