<?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: End Event ExecutionListener DB Flush Question in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135582#M95126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What can I do to get notified only after the process ends really? I mean I want to be informed about ending of a process after it completely became history. Is this possible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So you mean the variables haven't been flushed to the database yet, but your execution listeners needs it … that's not possible at the moment because it would violate the transactional behaviour of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I understand your use case. One (hacky) solution could be to introduce your own command interceptor that sits above the transaction interceptor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way, you can intercept the execution of the command and send the event. But like I said, it's quite hacky in my eyes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 09:33:58 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-04-11T09:33:58Z</dc:date>
    <item>
      <title>End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135581#M95125</link>
      <description>Hello,I've added a custom parse handler for end events(none and error end) to some process definitions. One of them has only 1 service task. The problem arises here. It works like that:1-While parsing end event it adds an execution listener with ExecutionListener.EVENTNAME_END.2-This execution liste</description>
      <pubDate>Thu, 11 Apr 2013 00:48:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135581#M95125</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-04-11T00:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135582#M95126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What can I do to get notified only after the process ends really? I mean I want to be informed about ending of a process after it completely became history. Is this possible?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So you mean the variables haven't been flushed to the database yet, but your execution listeners needs it … that's not possible at the moment because it would violate the transactional behaviour of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I understand your use case. One (hacky) solution could be to introduce your own command interceptor that sits above the transaction interceptor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way, you can intercept the execution of the command and send the event. But like I said, it's quite hacky in my eyes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 09:33:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135582#M95126</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-11T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135583#M95127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for response Joram. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I don't need variables at execution listeners, I can get them from delegateExecution. Where I need them is after Spring Integration channels. I send processInstanceId and some other variables to a channel. After that channel a flow starts over integration mechanism, there is no Activiti interception here. Since it is not a direct call, I expect activiti transaction to end when I send it to a channel. In fact I don't like hacky solutions too &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; I just need the processInstanceId after process ends and flushes to database. I can move forward after that information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 11:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135583#M95127</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-04-11T11:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135584#M95128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I understand better now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmm, if you want the transaction to end , you'd probably need to make the invocation of the execution listener async. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That way, the regular transaction will continue and finish, and the listener execution will be done async afterwards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 07:55:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135584#M95128</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-15T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135585#M95129</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;I would like to make an execution listener async, but it does not work. I tried adding async="true" and activiti:async="true" as a field to activiti:executionListener. What's the way of doing it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 10:45:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135585#M95129</guid>
      <dc:creator>julia_bardi</dc:creator>
      <dc:date>2013-08-30T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: End Event ExecutionListener DB Flush Question</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135586#M95130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can't make the execution listener async. We only support the async attribute on an activity.&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>Mon, 02 Sep 2013 17:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/end-event-executionlistener-db-flush-question/m-p/135586#M95130</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-09-02T17:13:08Z</dc:date>
    </item>
  </channel>
</rss>

