<?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 Does engine have a hook to install an event listener? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132286#M92923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was wondering if the Activiti engine has a hook to enable a listener to be configured whose callback method is invoked whenever a process instance progresses from one activity to the next.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our current 'in house' workflow has hooks that allow us to configure a listener that fires off certain actions based on entering/exiting particular activities. We're looking to switch over to Activiti and need to be able to implement this functionality somehow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that there seems to be some extensions in Activiti's BPMN file but we were hoping to plug this in at the Java level to avoid modifying all of the process definitions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 00:45:56 GMT</pubDate>
    <dc:creator>chrisc</dc:creator>
    <dc:date>2013-02-08T00:45:56Z</dc:date>
    <item>
      <title>Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132286#M92923</link>
      <description>I was wondering if the Activiti engine has a hook to enable a listener to be configured whose callback method is invoked whenever a process instance progresses from one activity to the next.Our current 'in house' workflow has hooks that allow us to configure a listener that fires off certain actions</description>
      <pubDate>Fri, 08 Feb 2013 00:45:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132286#M92923</guid>
      <dc:creator>chrisc</dc:creator>
      <dc:date>2013-02-08T00:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132287#M92924</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;Yes this is supported via ExecutionListeners –&amp;gt; &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#executionListeners" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#executionListeners&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to add the execution listener in every process definition, you can write a BpmnParseListener to add it to all process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extend the AbstractBpmnParseListener class and hook it in to the process engine configuration like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;property name="customPostBPMNParseListeners"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&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;lt;bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseListener" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that in Activiti 5.12 the BpmnParseListener changes quite a bit. But the idea and logic remains the same.&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>Fri, 08 Feb 2013 07:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132287#M92924</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-02-08T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132288#M92925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't use spring so I'm hoping that the 'bean' in &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseListener" /&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;does not imply Spring support must be present.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the BpmnParseListener activate when a process definition is added to the repository or each time a process instance is created for the process definition?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 07:59:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132288#M92925</guid>
      <dc:creator>chrisc</dc:creator>
      <dc:date>2013-02-08T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132289#M92926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No need to use spring, you can add the listener to the processEngineConfigurationImpl in code as well…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The listener is called when:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;New process is deployed&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Process is added to the deployment-cache (again) after engine reboot or when definition was evicted from cache.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;So you can be 100% sure that EVERY process-definition that is going to be used, will pass through the listener. In that listener, you can add execution-listeners (class implementing ExecutionListener interface) to ALL flow-elements in the parsed process. This way, every process that runs, you'll be notified of every step completing…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132289#M92926</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-08T08:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132290#M92927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So you can be 100% sure that EVERY process-definition that is going to be used, will pass through the listener. In that listener, you can add execution-listeners (class implementing ExecutionListener interface) to ALL flow-elements in the parsed process. This way, every process that runs, you'll be notified of every step completing…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;That sounds like what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:55:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132290#M92927</guid>
      <dc:creator>chrisc</dc:creator>
      <dc:date>2013-02-08T08:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132291#M92928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to do the exact same thing (be notified of all state transitions). Would you be willing to share the code using the BpmnParseListener?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132291#M92928</guid>
      <dc:creator>boberetezeke</dc:creator>
      <dc:date>2014-05-27T17:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does engine have a hook to install an event listener?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132292#M92929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's called 'BpmnParseHandler' now. Implement that interface, and attach to each SequenceFlow your own ExecutionListener which is called on state transation, shouldn't be too hard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:03:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/does-engine-have-a-hook-to-install-an-event-listener/m-p/132292#M92929</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-30T09:03:17Z</dc:date>
    </item>
  </channel>
</rss>

