cancel
Showing results for 
Search instead for 
Did you mean: 

Mutliple Execution with same executionId

gokceng1
Champ in-the-making
Champ in-the-making
Hello,

getRuntimeService().createExecutionQuery().executionId(executionId).list()

Is there a possibility that this query returns more than one instance(assuming this is not a process instance id)?
If so what can be the scenario for this?

Also if I supply the activity id like this:

getRuntimeService().createExecutionQuery().executionId(executionId).activityId(activityId).list()

can this return more than one execution?

Thanks.

2 REPLIES 2

trademak
Star Contributor
Star Contributor
When you query using an execution id (not being the process instance) then you would get back one execution. Adding the activityId query parameter should not matter.

Best regards,

gokceng1
Champ in-the-making
Champ in-the-making
Thank you Tijs.