<?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 Activiti : Last completed task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157311#M111504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;Problem&amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to get the last task completed for the process instance. I am able to get the last completed human task, but not a Service task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;What i have tried&amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written a SQL query, i am using MySQL, to find out what is last task that is completed. Here it goes :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM act_hi_taskinst &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where PROC_INST_ID_= '1234' and END_TIME_ IS&amp;nbsp; NOT NULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;order by END_TIME_ desc;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;act_hi_taskinst is the table that gets updated as and when the process instance progresses.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The process flow goes something like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A human Task (Leave request) -&amp;gt; Service task( Check availability of leave) -&amp;gt; service task(Check feasibility) -&amp;gt; A human task(Manager task)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the task comes to Manager Task the last completed is Check feasibility, but its not reflecting in database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;Can you please help&amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does activiti provide any such API to get the last completed service task? Can you suggest some SQL query to solve the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 09:26:33 GMT</pubDate>
    <dc:creator>madhusudanjoshi</dc:creator>
    <dc:date>2013-10-03T09:26:33Z</dc:date>
    <item>
      <title>Activiti : Last completed task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157311#M111504</link>
      <description>&amp;lt;b&amp;gt;Problem&amp;lt;/b&amp;gt;I want to get the last task completed for the process instance. I am able to get the last completed human task, but not a Service task.&amp;lt;b&amp;gt;What i have tried&amp;lt;/b&amp;gt;I have written a SQL query, i am using MySQL, to find out what is last task that is completed. Here it</description>
      <pubDate>Thu, 03 Oct 2013 09:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157311#M111504</guid>
      <dc:creator>madhusudanjoshi</dc:creator>
      <dc:date>2013-10-03T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti : Last completed task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157312#M111505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The data will not be stored in act_hi_taskinst, but in ACT_HI_ACTINST . act_hi_taskinst is only for user tasks (because queries there are way more common)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 08:26:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157312#M111505</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-10-04T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti : Last completed task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157313#M111506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks jbarrez!! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://become-the-alpha-male.com/blog/what-are-the-best-testosterone-boosters/" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #FDFDFF; text-decoration: underline;"&gt;testosterone boosters&lt;/SPAN&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 12:35:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-last-completed-task/m-p/157313#M111506</guid>
      <dc:creator>nicholascurren</dc:creator>
      <dc:date>2013-10-05T12:35:14Z</dc:date>
    </item>
  </channel>
</rss>

