AnsweredAssumed Answered

Probable defect in EventSubscriptionEntityManager

Question asked by franck102 on May 27, 2015
Latest reply on May 27, 2015 by franck102
I haven't tested this out, but just from looking at the code it looks like the logic in org.activiti.engine.impl.persistence.entity.EventSubscriptionEntityManager#findSignalEventSubscriptionsByProcessInstanceAndEventName

has an obvious defect:

// add events created in this command (not visible yet in query)
    for (SignalEventSubscriptionEntity entity : createdSignalSubscriptions) {
      if(processInstanceId.equals(processInstanceId) && eventName.equals(entity.getEventName())) {

The first test most likely should be if (entity.getProcessInstanceId.equals(processInstanceId) && …
Other methods in the same class seem to have the same issue.

This is in Activiti 5.15.