<?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 Activiti CDI and Execution Listener in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113934#M80243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;having another issue &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; This time I changed to the CdiJtaProcessEngineConfiguration for using CDI and JTA (obviously &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;) and I am facing an issue with the execution listener, which worked fine before using that kind of engine. I have implemented a class to catch a process end event but since the change it doesn't seem to be invoked anymore. I tried various things to get to a solution, including using class/expression/delegateexpression variants for this purpose, implemented listeners of sequence flow and start event with same result and I tried using the configuration from the book Activiti in Action (beans.xml changes for interceptors + additional property customPostBPMNParseListeners on my config). Nothing seems to work for me, the process finishes and however the configuration or type of invocation nothing happens. Is this normal and I have to use CDI Event Listening? I tried that but since I am not an expert on JEE I wasn't sure how to do it and research didn't help (I used the configuration from the camunda site and implemented a method catching all events in a new / unrelated SessionScoped bean method and it also never got invoked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I don't have any exceptions, cause it all basically works, I don't know what more information I can provide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Things I tried: &lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;…&lt;BR /&gt;&amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="end" delegateExpression="${processOneEndListener}"&amp;gt;&amp;lt;/activiti:executionListener&amp;gt; –&amp;gt; processOneEndListener (@Named) has method required: public void notify(DelegateExecution execution) throws Exception&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="end" expression="${processOneEndListener.testMe(execution)}"&amp;gt;&amp;lt;/activiti:executionListener&amp;gt; –&amp;gt; processOneEndListener also @Named&lt;BR /&gt;&amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;…&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti.cfg.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;…&lt;BR /&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="dataSourceJndiName" value="jdbc/MyActiviti" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="history" value="full" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!– using externally managed transactions –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="transactionsExternallyManaged" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt; // also tried false since i wasn't sure how i had it before&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;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;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;nbsp;&amp;nbsp;&amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/bean&amp;gt;&lt;BR /&gt;…&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;beans.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;…&lt;BR /&gt;&amp;lt;interceptors&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;class&amp;gt;org.activiti.cdi.impl.annotation.StartProcessInterceptor&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;class&amp;gt;org.activiti.cdi.impl.annotation.CompleteTaskInterceptor&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;/interceptors&amp;gt;&lt;BR /&gt;….&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would really appreciate it if someone could help me and look into this or generally could give me an idea how to implement the following logic: I want to use an end event listener to change the data state of entity entries in a database created in the process. While the process is still active all data has no valid date (null for that time) and i store information about Tables/Entities used in process in a process variable. All my entities have a field for the process id so i can easily retrieve them. For example in my process i create and persist a book entity. It has a name, id, valid date (Timestamp) and a processinstanceid. So when first saving it in the process all fields are filled but the valid date. This should be updated at process end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 02:56:14 GMT</pubDate>
    <dc:creator>se040</dc:creator>
    <dc:date>2012-11-20T02:56:14Z</dc:date>
    <item>
      <title>Activiti CDI and Execution Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113934#M80243</link>
      <description>Hi again,having another issue &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; This time I changed to the CdiJtaProcessEngineConfiguration for using CDI and JTA (obviously &lt;IMG id="smileywink" class="emoticon emoticon-smileywink" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;) and I am facing an issue with the execution listener, which worked fine before using that kind of engine. I have implemented a class to catch a process end event but sinc</description>
      <pubDate>Tue, 20 Nov 2012 02:56:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113934#M80243</guid>
      <dc:creator>se040</dc:creator>
      <dc:date>2012-11-20T02:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti CDI and Execution Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113935#M80244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you get an exception when the process ends or is the task-listener just not called? Are you 100% sure the listener isn't called?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have implemented a class to catch a process end event but since the change it doesn't seem to be invoked anymore&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;After changing to JTA, it's not working anymore?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:14:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113935#M80244</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-11-21T08:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti CDI and Execution Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113936#M80245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I looked for Exceptions but couldn't find any (any Exceptions would be in the glassfish log) and I am sure the methods are not invoked since I debugged with breakpoints and they were never reached. Also I tried just plainly throwing exceptions in these methods so I would have seen them. The processes finish successful as I can see in the database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 12:22:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-cdi-and-execution-listener/m-p/113936#M80245</guid>
      <dc:creator>se040</dc:creator>
      <dc:date>2012-11-23T12:22:11Z</dc:date>
    </item>
  </channel>
</rss>

