<?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 User Task Enhancment to invoke custom code on task creation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/user-task-enhancment-to-invoke-custom-code-on-task-creation/m-p/191283#M144413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Respected Activiti Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement where in I want to execute a custom piece of code when a User Task is created. This custom code will make a call back to the mother application from where the workflow was initiated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the user guide I found that Task Listeners (&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/#taskListeners" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#taskListeners&lt;/A&gt;&lt;SPAN&gt;) can be used to enhance the User Code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, these task listeners need to specified as part of the template definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="myTask" name="My Task" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="create" class="org.activiti.MyTaskCreateListener" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, I need this custom code to be executed for all the User tasks and don't want to rely on the inclusion of task listeners in the template definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I am looking for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Is there a way to enhance/customize the engine side Task or task service to achieve the same effect OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Is it possible to invoke the task listener for all user task without relying on the template definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P Manchanda&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 09:25:42 GMT</pubDate>
    <dc:creator>manchandap</dc:creator>
    <dc:date>2015-10-09T09:25:42Z</dc:date>
    <item>
      <title>User Task Enhancment to invoke custom code on task creation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-enhancment-to-invoke-custom-code-on-task-creation/m-p/191283#M144413</link>
      <description>Respected Activiti Experts,I have a requirement where in I want to execute a custom piece of code when a User Task is created. This custom code will make a call back to the mother application from where the workflow was initiated. Looking at the user guide I found that Task Listeners (http://www.act</description>
      <pubDate>Fri, 09 Oct 2015 09:25:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-enhancment-to-invoke-custom-code-on-task-creation/m-p/191283#M144413</guid>
      <dc:creator>manchandap</dc:creator>
      <dc:date>2015-10-09T09:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: User Task Enhancment to invoke custom code on task creation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-enhancment-to-invoke-custom-code-on-task-creation/m-p/191284#M144414</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;BR /&gt;&lt;SPAN&gt;ad 1) yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ad 2) yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#_hooking_into_process_parsing" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#_hooking_into_process_parsing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example: org.activiti.standalone.parsing.CustomDefaultBpmnParseHandlerTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sets tasks to asynchronous. You can add custom listener in the similar way.&lt;/SPAN&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>Mon, 12 Oct 2015 07:46:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-enhancment-to-invoke-custom-code-on-task-creation/m-p/191284#M144414</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-10-12T07:46:03Z</dc:date>
    </item>
  </channel>
</rss>

