<?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 Completed user task still present in ACT_RU_TASK (Activiti 5.17.0.2) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/completed-user-task-still-present-in-act-ru-task-activiti-5-17-0/m-p/214857#M167987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have run into a situation where a user task remains in the ACT_RU_TASK table after it has been completed. It was completed by using the Activiti API (formService.submitTaskFormData).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the user task was completed, an end time was recorded for the task in the ACT_HI_TASK table and the process execution continued. The user task was followed by a script task, an exclusive gateway, two more script tasks, and then a new user task. All the subsequent steps were executed successfully and the next user task has become active. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The process instance is in a state where it has two active, sequential tasks. taskService.createTaskQuery().processInstanceId(&amp;lt;processInstanceId&amp;gt;) returns two active user tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have investigated all the logs without finding any related error situations. The process definition is well proven and has been used for many process instances. This is the first time we have run into a situation like this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea on how our process instance has ended up in this state? And what is the best way to solve the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're running Activiti 5.17.0.2, Java 8, Debian Linux.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The completed user task is available both in ACT_HI_TASKINST and ACT_RU_TASK:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select h.id_, h.proc_inst_id_, h.name_, h.assignee_, h.start_time_, h.end_time_, h.duration_, h.delete_reason_, h.claim_time_, a.create_time_, a.suspension_state_, a.delegation_&lt;BR /&gt;from act_hi_taskinst h&lt;BR /&gt;join act_ru_task a on a.id_ = h.id_&lt;BR /&gt;and h.end_time_ is not null;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1064109&amp;nbsp;&amp;nbsp;&amp;nbsp;1064090&amp;nbsp;&amp;nbsp;&amp;nbsp;Behandles?&amp;nbsp;&amp;nbsp;&amp;nbsp;OLABRE&amp;nbsp;&amp;nbsp;&amp;nbsp;19.04.2016 15.34.52,910000000&amp;nbsp;&amp;nbsp;&amp;nbsp;19.04.2016 16.33.21,447000000&amp;nbsp;&amp;nbsp;&amp;nbsp;3508537&amp;nbsp;&amp;nbsp;&amp;nbsp;completed&amp;nbsp;&amp;nbsp;&amp;nbsp;19.04.2016 16.33.06,648000000&amp;nbsp;&amp;nbsp;&amp;nbsp;19.04.2016 15.34.52,910000000&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Process instance activities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select * from act_hi_actinst where proc_inst_id_ =1064090;&lt;BR /&gt;&lt;BR /&gt;ID_;PROC_DEF_ID_;PROC_INST_ID_;EXECUTION_ID_;ACT_ID_;ACT_NAME_;ACT_TYPE_;ASSIGNEE_;START_TIME_;END_TIME_;DURATION_;TASK_ID_;CALL_PROC_INST_ID;TENANT_ID_&lt;BR /&gt;1064092;hoeringsprosess:16:117247;1064090;1064090;startevent1;Start;startEvent;;19.04.2016 15.34.51,442000000;19.04.2016 15.34.51,442000000;0;;;&lt;BR /&gt;1064095;hoeringsprosess:16:117247;1064090;1064090;scripttask30;Initialiser;scriptTask;;19.04.2016 15.34.51,442000000;19.04.2016 15.34.51,457000000;15;;;&lt;BR /&gt;1064105;hoeringsprosess:16:117247;1064090;1064090;scripttask1;pre;scriptTask;;19.04.2016 15.34.51,457000000;19.04.2016 15.34.52,910000000;1453;;;&lt;BR /&gt;1064108;hoeringsprosess:16:117247;1064090;1064090;usertask2;Behandles?;userTask;OLABRE;19.04.2016 15.34.52,910000000;19.04.2016 16.33.21,447000000;3508537;1064109;;&lt;BR /&gt;1064598;hoeringsprosess:16:117247;1064090;1064090;scripttask2;post;scriptTask;;19.04.2016 16.33.21,447000000;19.04.2016 16.33.27,911000000;6464;;;&lt;BR /&gt;1064613;hoeringsprosess:16:117247;1064090;1064090;exclusivegateway2;Exclusive Gateway;exclusiveGateway;;19.04.2016 16.33.27,911000000;19.04.2016 16.33.27,911000000;0;;;&lt;BR /&gt;1064614;hoeringsprosess:16:117247;1064090;1064090;scripttask43;Opprett DM saksnr og dok;scriptTask;;19.04.2016 16.33.27,911000000;19.04.2016 16.33.47,692000000;19781;;;&lt;BR /&gt;1064619;hoeringsprosess:16:117247;1064090;1064090;scripttask4;pre;scriptTask;;19.04.2016 16.33.47,692000000;19.04.2016 16.33.49,385000000;1693;;;&lt;BR /&gt;1064626;hoeringsprosess:16:117247;1064090;1064090;usertask6;Utarbeid best.;userTask;;19.04.2016 16.33.49,385000000;;;1064627;;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 12:24:03 GMT</pubDate>
    <dc:creator>avalde</dc:creator>
    <dc:date>2016-04-26T12:24:03Z</dc:date>
    <item>
      <title>Completed user task still present in ACT_RU_TASK (Activiti 5.17.0.2)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completed-user-task-still-present-in-act-ru-task-activiti-5-17-0/m-p/214857#M167987</link>
      <description>We have run into a situation where a user task remains in the ACT_RU_TASK table after it has been completed. It was completed by using the Activiti API (formService.submitTaskFormData).After the user task was completed, an end time was recorded for the task in the ACT_HI_TASK table and the process e</description>
      <pubDate>Tue, 26 Apr 2016 12:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completed-user-task-still-present-in-act-ru-task-activiti-5-17-0/m-p/214857#M167987</guid>
      <dc:creator>avalde</dc:creator>
      <dc:date>2016-04-26T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Completed user task still present in ACT_RU_TASK (Activiti 5.17.0.2)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completed-user-task-still-present-in-act-ru-task-activiti-5-17-0/m-p/214858#M167988</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;Could you reproduce the issue in the jUnit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:04:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completed-user-task-still-present-in-act-ru-task-activiti-5-17-0/m-p/214858#M167988</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-27T06:04:06Z</dc:date>
    </item>
  </channel>
</rss>

