<?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: Subprocess does not terminate after the parent process was terminated by a timer event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184346#M137476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm designing a workflow in BPMN 2.0,I've uploaded all the necessary files, in summary my workflow starts with a standard start event followed by a java service task which is bounded to a java class named test7, one more thing for java service task is having a boundary timer set for 1 second if fired the flow will submit to a script task which outputs a small text, if not fired flow will submit to another script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is the boundary timer is not fired , even with job executor and AsyncExecutor are activated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if anyone has an idea for this situation ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Apr 2016 11:13:58 GMT</pubDate>
    <dc:creator>slaimankoeik</dc:creator>
    <dc:date>2016-04-03T11:13:58Z</dc:date>
    <item>
      <title>Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184338#M137468</link>
      <description>Hi everybody.I got a process containing a subprocess. The subprocess has a timer boundary event. After it was fired I would expect the subprocess to be terminated, but the user task inside the subprocess is still accessible.The 'cancel activiti' flag of the timer is set to 'true'.We are using Activi</description>
      <pubDate>Tue, 30 Sep 2014 08:48:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184338#M137468</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2014-09-30T08:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184339#M137469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found similar subprocess with timer event in activiti tests:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.test.bpmn.event.timer.BoundaryTimerEventTest#testTimerOnNestingOfSubprocesses&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you check your process definition with the jUnit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 19:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184339#M137469</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-30T19:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184340#M137470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where do I get the test from?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not included in the Activiti download package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 07:18:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184340#M137470</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2014-10-02T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184341#M137471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can find it here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 14:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184341#M137471</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-10-02T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184342#M137472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now I wrote several tests and I got the following solutions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Timer is fired manually as in your example: works correctly!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Timer is fired by timeout (I added a sleep command longer that the timer duration) : Now the subprocess' task is still active&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. "normal execution" by completing the inner task: correct&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No I suspect that I maybe defined the timer in an incorrect way. Please may you have a look at it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want it to fire after 2 seconds and interrupt the subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attachement find the bpmn and my tests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="timer" attachedToRef="subProcess" cancelActivity="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&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;timeDuration&amp;gt;PT2S&amp;lt;/timeDuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:52:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184342#M137472</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2014-10-08T13:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184343#M137473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When writing unit tests with jobs working with sleeps is not really convenient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In our unit tests we disable the job executor and execute the job manually to make sure it's executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your timer definition is correct. Please note that the job executor has a default wait time of 5 seconds, so it's possible that the job is executed after 5 seconds in stead of 2 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:11:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184343#M137473</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-10-10T09:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184344#M137474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, I tried to reproduce an error that we have in our system with that kind of situation in a process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I make sure the subprocess is really canceled after the timer event fired? And that the inner task may not be executed anymore?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We had an error reported from a customer, and I am not sure where the problem could be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the subprocess should have been ended by the timer, an other user still could see the inner task of the subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:18:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184344#M137474</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2014-10-10T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184345#M137475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"After the subprocess should have been ended by the timer, an other user still could see the inner task of the subprocess."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds very odd! Maybe this user didnt refresh his task inbox for a while?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 10:20:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184345#M137475</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-17T10:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184346#M137476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm designing a workflow in BPMN 2.0,I've uploaded all the necessary files, in summary my workflow starts with a standard start event followed by a java service task which is bounded to a java class named test7, one more thing for java service task is having a boundary timer set for 1 second if fired the flow will submit to a script task which outputs a small text, if not fired flow will submit to another script task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is the boundary timer is not fired , even with job executor and AsyncExecutor are activated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if anyone has an idea for this situation ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 11:13:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184346#M137476</guid>
      <dc:creator>slaimankoeik</dc:creator>
      <dc:date>2016-04-03T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subprocess does not terminate after the parent process was terminated by a timer event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184347#M137477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Slaiman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to add &lt;/SPAN&gt;&lt;CODE&gt;JobTestHelper.waitForJobExecutorToProcessAllJobs(this.activitiRule, 10000, 500);&lt;/CODE&gt;&lt;SPAN&gt; to your test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 08:21:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/subprocess-does-not-terminate-after-the-parent-process-was/m-p/184347#M137477</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-04T08:21:04Z</dc:date>
    </item>
  </channel>
</rss>

