<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Probable defect in EventSubscriptionEntityManager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/probable-defect-in-eventsubscriptionentitymanager/m-p/192929#M146059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has an obvious defect:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// add events created in this command (not visible yet in query)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (SignalEventSubscriptionEntity entity : createdSignalSubscriptions) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(processInstanceId.equals(processInstanceId) &amp;amp;&amp;amp; eventName.equals(entity.getEventName())) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectList.add(entity);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first test most likely should be if (entity.getProcessInstanceId.equals(processInstanceId) &amp;amp;&amp;amp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Other methods in the same class seem to have the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is in Activiti 5.15.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 08:21:38 GMT</pubDate>
    <dc:creator>franck102</dc:creator>
    <dc:date>2015-05-27T08:21:38Z</dc:date>
    <item>
      <title>Probable defect in EventSubscriptionEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probable-defect-in-eventsubscriptionentitymanager/m-p/192929#M146059</link>
      <description>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#findSignalEventSubscriptionsByProcessInstanceAndEventNamehas an obvious defect:// add events created in this command (not visible yet in</description>
      <pubDate>Wed, 27 May 2015 08:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probable-defect-in-eventsubscriptionentitymanager/m-p/192929#M146059</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2015-05-27T08:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Probable defect in EventSubscriptionEntityManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probable-defect-in-eventsubscriptionentitymanager/m-p/192930#M146060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad, the test is strange to say the least (may throw an NPE but will otherwise always return true), but the query used to obtain selectList should ensure that the processInstanceId matches anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 10:17:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probable-defect-in-eventsubscriptionentitymanager/m-p/192930#M146060</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2015-05-27T10:17:59Z</dc:date>
    </item>
  </channel>
</rss>

