05-24-2017 12:25 AM
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.
05-24-2017 04:06 AM
For that you can use HistoricProcessInstanceQuery HistoricProcessInstanceQuery (Activiti - Engine 5.22.0 API)
05-24-2017 10:26 AM
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.
05-24-2017 10:32 AM
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)
Explore our Alfresco products with the links below. Use labels to filter content by product module.