<?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 Which column from Activiti db tables identifies that a User Task has cancelActivity=true in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26276#M11361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me find out Activiti table and column name, that can indicate that a User Task has attribute 'cancelActivity' true? Means a task is cancelled.&lt;/P&gt;&lt;P&gt;Is 'DELETE_REASON_' column (from table ACT_HI_TASKINST) value 'deleted' identifies that User task is cancelled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&amp;nbsp;have a look at this query, if somebody can answer this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/229481"&gt;Boundary timer continues its execution even if attached User task is completed&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 10:58:06 GMT</pubDate>
    <dc:creator>ami</dc:creator>
    <dc:date>2017-03-03T10:58:06Z</dc:date>
    <item>
      <title>Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26276#M11361</link>
      <description>Hi,Can anybody help me find out Activiti table and column name, that can indicate that a User Task has attribute 'cancelActivity' true? Means a task is cancelled.Is 'DELETE_REASON_' column (from table ACT_HI_TASKINST) value 'deleted' identifies that User task is cancelled?Also&amp;nbsp;have a look at this qu</description>
      <pubDate>Fri, 03 Mar 2017 10:58:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26276#M11361</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-03-03T10:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26277#M11362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the 'ACT_HI_PROCINST' &amp;amp; the 'ACT_HI_TASKINST' tables, for processes and tasks respectively, there is a column "DELETE_REASON_" that noted in your comment. In that column is completed till the end, it'll simply say&amp;nbsp;&lt;EM&gt;completed&lt;/EM&gt;, if the task or process is cancelled, it will say&amp;nbsp;&lt;EM&gt;Cancelled by &amp;lt;ID number of User&amp;gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 20:13:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26277#M11362</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-03T20:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26278#M11363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JEarles,&lt;/P&gt;&lt;P&gt;What I found in DELETE_REASON_ column, for my cancelled task is, 'deleted'.&lt;/P&gt;&lt;P&gt;I am bit confused whether value 'deleted' is put for any other operations&lt;/P&gt;&lt;P&gt;also or only when my task is Cancelled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me determining this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 01:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26278#M11363</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-03-04T01:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26279#M11364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Ami Dave&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you 'cancelling' your task now? Are you using your own implementation to cancel task and expecting to see a 'cancelled' reason in Activiti tables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think Activiti provides any API to cancel a task. Have a look at the docs here&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#deleteTask-java.lang.String-" title="https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#deleteTask-java.lang.String-" rel="nofollow noopener noreferrer"&gt;TaskService (Activiti - Engine 5.22.0 API)&lt;/A&gt;&amp;nbsp;. You&amp;nbsp;can do the following with Task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Delete: delete but its record is still in history&lt;/P&gt;&lt;P&gt;- Complete: complete it&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Delegate: delegates task to another user&lt;/P&gt;&lt;P&gt;- Unclaim: remove this task from current claimed user inbox and pass it back to the group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would one of these available actions suit your need? What is your business use case regarding 'cancelling'? Is completing the task and set a process variable for reason work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 06:55:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26279#M11364</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-03-07T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26280#M11365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for responding back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly refer the comment above by Jonathan Earles, what he has written is: If by any means User Task is cancelled, the DELETE_REASON_ column would have value 'cancelled...' but actually in my case, it has value : 'deleted'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lemme tell you steps by which we mark a User Task cancelled:&lt;/P&gt;&lt;P&gt;1. If I have configured a Boundary timer (attached User Task) with value of property 'timerCycles' is '1'&lt;/P&gt;&lt;P&gt;2. When boundary timer is hit, we simple change the value of property 'cancelActivity' (It is User task's property)&amp;nbsp;to true from false using our logic, which marks the User task cancelled and we get to see User task is finished. and the&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;ACT_HI_TASKINST table's column : "&lt;SPAN&gt;DELETE_REASON_&lt;/SPAN&gt;" has value ''deleted'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;So my concern is, is Jonathan right? Shall I consider 'cancelled' or 'delete' as a value to that column when User task is cancelled?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Ami Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 07:31:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26280#M11365</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-03-07T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26281#M11366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting back to your original question.&lt;/P&gt;&lt;P&gt;There is no column in the database that represents cancelActivity. This is part of the BPMN definition and is stoed in the process definition itself.&lt;BR /&gt;&lt;BR /&gt;The DELETE_REASON column you are referring to in other posts is populated on completion of a process or task that is used AFTER the task or process instance has been cancelled/terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, there is no column that equates to cancelActivity in the process definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:46:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26281#M11366</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-07T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Which column from Activiti db tables identifies that a User Task has cancelActivity=true</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26282#M11367</link>
      <description>&lt;P&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/13625"&gt;@ami&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing a similar problem. In the Alfresco Workflow API there is no way to know wheather a Task was cancelled by the BoundaryTimer or completed by a user. In the Activiti API there is a "deleteReason" property which is set to "deleted" when the task is canceled but this property is not propagated to the Alfresco API.&lt;/P&gt;&lt;P&gt;The only, "dirty", solution I found is it call ServiceTask after BoundaryTimer in which a custom process property will be updated which would contain a taskId and a deleteReason.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 10:11:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/which-column-from-activiti-db-tables-identifies-that-a-user-task/m-p/26282#M11367</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-08-26T10:11:19Z</dc:date>
    </item>
  </channel>
</rss>

