<?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: Process Parsing to add task listeners in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20393#M8998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your class is not even instantiated at all then it stands to reason that some Spring configuration may be overriding your configuration of the&amp;nbsp;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;postBpmnParseHandlers&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;property, otherwise Spring would have to call the constructor of your class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 06:17:52 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-06-20T06:17:52Z</dc:date>
    <item>
      <title>Process Parsing to add task listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20392#M8997</link>
      <description>I am trying to hook into process parsing to add task listeners to all tasks. I tried the following config:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bean id="processEngineConfiguration"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="postBpmnPar</description>
      <pubDate>Mon, 19 Jun 2017 16:54:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20392#M8997</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-06-19T16:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process Parsing to add task listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20393#M8998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your class is not even instantiated at all then it stands to reason that some Spring configuration may be overriding your configuration of the&amp;nbsp;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;postBpmnParseHandlers&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;property, otherwise Spring would have to call the constructor of your class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 06:17:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20393#M8998</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-20T06:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Process Parsing to add task listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20394#M8999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was user error-I wasn't flushing the file. Adding log.flush() fixed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I still haven't solved the basic problem--I want to add a listener to all User and Script tasks, which should get called upon entry and exit to the task, so I can generate some events. Ideally, this should be done automatically on all processes when they are parsed, so the definition creator does not have to manually add the listeners to each task.&lt;/P&gt;&lt;P&gt;What is the best way to do that? I can add listeners in the designer, but how can I do it programmatically? The parsing hook does see to have a way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 18:13:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20394#M8999</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-06-20T18:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process Parsing to add task listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20395#M9000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, sans-serif;"&gt;I found a possible solution in one of the threads, but it only partly works. It seems that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;((ProcessDefinitionEntity) bpmnParsegetCurrentScope().getProcessDefinition())&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;getTaskDefinitions()&lt;/SPAN&gt; is non-empty only for User Tasks. For Service and Script Tasks, it is an empty collection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;What will be the best way to attach a listener to all task nodes in a process definition at parsing time?#processparsing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Any answers are greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;BTW, I am using Activiti 5.22 (CE).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 21:09:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20395#M9000</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-06-27T21:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Process Parsing to add task listeners</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20396#M9001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any answers?&lt;/P&gt;&lt;P&gt;Thanks everyone&lt;/P&gt;&lt;P&gt;process parsing&amp;nbsp;&lt;A __default_attr="93456" __jive_macro_name="user" _jive_internal="true" data-id="93456" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/jbarrez" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:18:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/process-parsing-to-add-task-listeners/m-p/20396#M9001</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-06-29T14:18:40Z</dc:date>
    </item>
  </channel>
</rss>

