AnsweredAssumed Answered

execution query with signalEventSubscriptionName does not work with other criteria

Question asked by pcuvecle_9059 on Feb 21, 2014
Latest reply on Jul 2, 2015 by njames
Hi All,

If I run this :

List<Execution> executions = runtimeService.createExecutionQuery()
   .signalEventSubscriptionName(signalName)
   .list();

I get all the executions waiting for signaName

But if I add another criteria like processInstanceId, I would expect to have the execution waiting for signalName but only for process having instance ID = processInstanceId


List<Execution> executions = runtimeService.createExecutionQuery()
   .signalEventSubscriptionName(signalName)
   .processInstanceId(processInstanceId)
   .list();


But I get no result (of course in my test I had a waiting signal in the process instance I used)
It seams that if I put any other criteria than signalEventSubscriptionName in the execution query, I get no result in all cases.
This applies to V5.14.



Outcomes