<?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 task listener and Complete task listener problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150875#M105694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason is mainly a technical one. Maybe you can add logic to a delete listener for the exception use case and add a service task after the user task for the "completed normally" use case?&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>Tue, 11 Feb 2014 15:30:16 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2014-02-11T15:30:16Z</dc:date>
    <item>
      <title>Delete task listener and Complete task listener problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150872#M105691</link>
      <description>Hi there,I am having a couple of problems with a delete listener, here is some background about this issue. I am using Activiti 5.13, and I have a complete task listener and a delete task listener, I also have a task service that ends all processes that share the same property value: @Override&amp;nbsp;&amp;nbsp;&amp;nbsp; pu</description>
      <pubDate>Fri, 07 Feb 2014 09:31:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150872#M105691</guid>
      <dc:creator>yahekia</dc:creator>
      <dc:date>2014-02-07T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete task listener and Complete task listener problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150873#M105692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"The first problem is that both listeners are being fired, I think this should not be happening but I do not know if it is coded that way for some reason."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, a task will first be completed before it is deleted from the runtime table. If you're not interested in the delete event, simply don't listen to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"The second problem is that I do not have any way to get the delete reason in the delegate task neither in the taskhistory instance, Is there any place where I can get the value¿¿??"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The delete reason is not yet flushed to the database at that point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Afterwards you can get it from the HistoricTaskInstance:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /** The reason why this task was deleted {'completed' | 'deleted' | any other user defined string }. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String getDeleteReason();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:27:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150873#M105692</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-10T08:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete task listener and Complete task listener problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150874#M105693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not so simply because what I want is to diferenciate when a task has been completed normally or has been deleted by an user action(my code), and I need it to be known in the listener because in that point we are indexing the task in an external index&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why you can not suppose that when a task is completed is deleted from the runtime table? I do not see the reason to fire both events, can you explain it to me??&amp;nbsp; I really want to understand if I am doing something wrong or assuming things that are not supossed to be that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thnx!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 09:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150874#M105693</guid>
      <dc:creator>yahekia</dc:creator>
      <dc:date>2014-02-10T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete task listener and Complete task listener problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150875#M105694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason is mainly a technical one. Maybe you can add logic to a delete listener for the exception use case and add a service task after the user task for the "completed normally" use case?&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>Tue, 11 Feb 2014 15:30:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150875#M105694</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-02-11T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete task listener and Complete task listener problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150876#M105695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"Why you can not suppose that when a task is completed is deleted from the runtime table? I do not see the reason to fire both events, can you explain it to me?"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause some people will only care about the delete event, not the complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Taks (standalone tasks especially) can be deleted from the api, without being completed for example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 15:32:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-task-listener-and-complete-task-listener-problem/m-p/150876#M105695</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-11T15:32:59Z</dc:date>
    </item>
  </channel>
</rss>

