<?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 Stopped process is still running in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176945#M130075</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;BR /&gt;&lt;SPAN&gt;I have a very simple workflow with two Java service tasks. Both tasks are doing nothing, but waiting for 5 seconds. The first service task is asynchronous the second one is synchronous. There's an ExecutionListener attached to the end event of the process and of the service tasks too. There's a unit test, which starts an Activiti ProcessEngine, deploys the example workflow and executes it. The unit test waits 3 seconds after starting the workflow and then calls the deleteProcessInstance method of the RuntimeService. The ExecutionListener of the first service task gets called by Activiti, right before the calling of the ExecutionListener of the process. The assertProcessEnded method returns successfully. But the workflow is still running. After 5 seconds the second service task is started and after another 5 seconds the process ends normally. During the deleteProcessInstance call, Activiti calls the deleteTasksByProcessInstanceId method of TaskEntityManager, but this method does not find any tasks to delete. It seems that the JobExecutor does not check whether the process stopped or not. We are on Activiti version 5.13, but the same applies to version 5.15 too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are some log messages:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;10:39:57,604 [main] INFO&amp;nbsp; org.activiti.engine.impl.ProcessEngineImpl&amp;nbsp; - ProcessEngine default created&lt;BR /&gt;10:39:57,605 [main] INFO&amp;nbsp; org.activiti.engine.impl.jobexecutor.JobExecutor&amp;nbsp; - Starting up the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].&lt;BR /&gt;10:39:57,608 [Thread-1] INFO&amp;nbsp; org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable&amp;nbsp; - JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] starting to acquire jobs&lt;BR /&gt;10:39:57,626 [main] INFO&amp;nbsp; org.activiti.engine.impl.bpmn.deployer.BpmnDeployer&amp;nbsp; - Processing resource async.bpmn20.xml&lt;BR /&gt;10:39:58,027 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask1 started&lt;BR /&gt;10:40:01,014 [main] INFO&amp;nbsp; UnitTest&amp;nbsp; - calling deleteProcessInstance()&lt;BR /&gt;10:40:01,111 [main] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask1 ended&lt;BR /&gt;10:40:01,114 [main] INFO&amp;nbsp; ProcessExecutionListener&amp;nbsp; - process ended&lt;BR /&gt;10:40:02,140 [main] INFO&amp;nbsp; org.activiti.engine.impl.jobexecutor.JobExecutor&amp;nbsp; - Shutting down the JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor].&lt;BR /&gt;10:40:02,141 [Thread-1] INFO&amp;nbsp; org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable&amp;nbsp; - JobExecutor[org.activiti.engine.impl.jobexecutor.DefaultJobExecutor] stopped job acquisition&lt;BR /&gt;10:40:03,028 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask1 stopped&lt;BR /&gt;10:40:03,029 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask1 ended&lt;BR /&gt;10:40:03,030 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask2 started&lt;BR /&gt;10:40:08,031 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask2 stopped&lt;BR /&gt;10:40:08,032 [pool-1-thread-1] INFO&amp;nbsp; JavaServiceTask&amp;nbsp; - javaServiceTask servicetask2 ended&lt;BR /&gt;10:40:08,034 [pool-1-thread-1] INFO&amp;nbsp; ProcessExecutionListener&amp;nbsp; - process ended&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gábor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 08:45:48 GMT</pubDate>
    <dc:creator>suhaig</dc:creator>
    <dc:date>2014-07-03T08:45:48Z</dc:date>
    <item>
      <title>Stopped process is still running</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176945#M130075</link>
      <description>Hi,I have a very simple workflow with two Java service tasks. Both tasks are doing nothing, but waiting for 5 seconds. The first service task is asynchronous the second one is synchronous. There's an ExecutionListener attached to the end event of the process and of the service tasks too. There's a u</description>
      <pubDate>Thu, 03 Jul 2014 08:45:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176945#M130075</guid>
      <dc:creator>suhaig</dc:creator>
      <dc:date>2014-07-03T08:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stopped process is still running</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176946#M130076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you create a JIRA issue and attach a unit test showing this issue to it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When deleting a process instance, all jobs of that process instance should be deleted.&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>Thu, 03 Jul 2014 16:35:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176946#M130076</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-07-03T16:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stopped process is still running</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176947#M130077</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;BR /&gt;&lt;SPAN&gt;I opened a JIRA ticket, you can find it here: &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-2041" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-2041&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gábor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 07:11:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/stopped-process-is-still-running/m-p/176947#M130077</guid>
      <dc:creator>suhaig</dc:creator>
      <dc:date>2014-07-04T07:11:32Z</dc:date>
    </item>
  </channel>
</rss>

