cancel
Showing results for 
Search instead for 
Did you mean: 

Query Process Instances by Start User

luismdelgado
Champ in-the-making
Champ in-the-making
Hello,

Is there a way to retrieve the list of ProcessInstances started by a user? I don't see a way to specify the user in any of the Query objects.

Thanks,
Luis Delgado
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Hi,

You can use the initiatorVariable to capture who has started a certain process:
<startEvent id="request" activiti:initiator="initiator" />
Afterwards, you can query for all process instance with variableValue equal to the person you are looking for:
runtimeService.createProcessInstanceQuery().variableValueEquals("initiator", "kermit);