<?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 Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172680#M125882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; But you managed to reproduce it a few times? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I didn't. I ran it 10 times but no issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Are you going to investigate it further? I think it's a quite serious bug..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everybody's bug is serious &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; To look into it i would need a 100% reproducable test im afraid &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 15:26:58 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-03-24T15:26:58Z</dc:date>
    <item>
      <title>Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172675#M125877</link>
      <description>I have developed a following process : https://dl.dropboxusercontent.com/u/1846654/subprocess.jpgAs you can see the sub-process contains two intermediate catching time events. When the boundary signal occurs, the process goes through appropriate flow as expected.. but in the next moment black magic</description>
      <pubDate>Mon, 03 Mar 2014 15:48:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172675#M125877</guid>
      <dc:creator>michalwrobel</dc:creator>
      <dc:date>2014-03-03T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172676#M125878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; The expected behavior would be to terminate the subProcess even when it's suspended by a timer, isn't it.. ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you upload the process xml (preferably in a simplified form so we can test it easily)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:26:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172676#M125878</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-10T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172677#M125879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(I added .txt extension for the uploaded files because of security policy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, so I simplified it, now the process uses just script tasks which log something to the console, but in this form the bug tends to be more elusive, not so easy to reproduce. Especially with default timer settings which should be over 5 seconds.&amp;nbsp; Previously the service tasks had more sophisticated logic, they called some REST webservices, and the bug occured almost every time.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You enter the loop by sending 'critical-temperature' signal, and the subprocess should exit with 'normal-temperature' signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To easier reproduce the bug I lowered timer settings in this case to 1 second. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTICE : To achieve such timer interval it was required to tweak the job executor class (there was a bug filed about this somewhere in JIRA, by default the sleep time is set for 5 seconds there). The tweaked job executor is also attached to the post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Plus the configuration in activiti-context.xml to enable custom job executor: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerHost" value="localhost" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerPort" value="5025" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutor" ref="jobExecutor" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;bean id="jobExecutor" class="xxxx.activiti.extensions.JobExecutor" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After lowering the timer settings you should easily (but not always) get response like this from signal service after sending 'normal-temperature':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;errorMessage: "JobEntity [id=348] was updated by another transaction concurrently"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;statusCode: 409&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:48:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172677#M125879</guid>
      <dc:creator>michalwrobel</dc:creator>
      <dc:date>2014-03-11T08:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172678#M125880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried these processes, but it's very hard to reproduce. It is surely around timing and things going on in parallel. However, what happens (i assume) is that the timer wins vs the signal … and only one can win.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:02:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172678#M125880</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-18T16:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172679#M125881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But you managed to reproduce it a few times? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you going to investigate it further? I think it's a quite serious bug..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 11:28:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172679#M125881</guid>
      <dc:creator>michalwrobel</dc:creator>
      <dc:date>2014-03-24T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Activiti Engine : cancelling sub-process containing intermediate timer catching events should be cancelled by si</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172680#M125882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; But you managed to reproduce it a few times? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I didn't. I ran it 10 times but no issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Are you going to investigate it further? I think it's a quite serious bug..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everybody's bug is serious &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; To look into it i would need a 100% reproducable test im afraid &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 15:26:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/possible-bug-in-activiti-engine-cancelling-sub-process/m-p/172680#M125882</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-03-24T15:26:58Z</dc:date>
    </item>
  </channel>
</rss>

