<?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: Delete Process Instance doesn't mark end of HistoricProcess instant and loses deleteReason in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140502#M98426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a test to master in github, asserting that the "deleteReason" is indeed set after deleting: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/7b3575d50bbc1620f487ae0ce172edab25ceb9cb" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/7b3575d50bbc1620f487ae0ce172edab25ceb9cb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not just query the actually non-historic Processinstances and delete them instead of using the Historic?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 09:31:33 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-04-30T09:31:33Z</dc:date>
    <item>
      <title>Delete Process Instance doesn't mark end of HistoricProcess instant and loses deleteReason</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140500#M98424</link>
      <description>Hi,I used RuntimeService.deleteProcessInstance to delete some old process instance by using the following code. The reason I add the processDefinition to the DeploymentCache is that they are some old definition and is not in the cache since the system has restarted many times.if(pi.getEndTime()==nul</description>
      <pubDate>Fri, 26 Apr 2013 07:59:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140500#M98424</guid>
      <dc:creator>zoenzo</dc:creator>
      <dc:date>2013-04-26T07:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Process Instance doesn't mark end of HistoricProcess instant and loses deleteReason</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140501#M98425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, I use the following native sql to do the mark end. Is it Ok ? Can anyone help? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void markProcessInstanceEnd(String processId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String sql="update act_hi_procinst set&amp;nbsp; END_TIME_=NOW(), DELETE_REASON_='Admin TEST' where ID_='"+processId+"'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SQLQuery query = this.getSession().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; createSQLQuery(sql);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; query.executeUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 08:04:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140501#M98425</guid>
      <dc:creator>zoenzo</dc:creator>
      <dc:date>2013-04-27T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Process Instance doesn't mark end of HistoricProcess instant and loses deleteReason</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140502#M98426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a test to master in github, asserting that the "deleteReason" is indeed set after deleting: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commit/7b3575d50bbc1620f487ae0ce172edab25ceb9cb" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commit/7b3575d50bbc1620f487ae0ce172edab25ceb9cb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not just query the actually non-historic Processinstances and delete them instead of using the Historic?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 09:31:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-process-instance-doesn-t-mark-end-of-historicprocess/m-p/140502#M98426</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-30T09:31:33Z</dc:date>
    </item>
  </channel>
</rss>

