<?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: Sending BPMN signal upon variable update in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193743#M146873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Event listeners could be used for this. If you register an event listener on a variable create/update you get a trigger every time a variable is updated or created. There's an option to store al events in the Activiti database table ACT_EVT_LOG and you could create a thread that reads new rows from this event log table. When its written to this table you are sure that the transaction has been committed successfully.&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>Sun, 31 May 2015 12:59:07 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2015-05-31T12:59:07Z</dc:date>
    <item>
      <title>Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193740#M146870</link>
      <description>Hi all,We are trying to have implement a backend extension that will send out a BPMN signal (i.e. notify subscribers) whenever a given process variable is modified.The issue we are running into is that, the way we understand it, using an Activiti listener to fire the signal asynchronously means that</description>
      <pubDate>Wed, 27 May 2015 13:43:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193740#M146870</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2015-05-27T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193741#M146871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 2 ideas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;[#] reimplement variable store in DbSqlSession.&lt;BR /&gt;[#] implement your own variable handling outside of activiti variables.&lt;/UL&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 07:36:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193741#M146871</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-05-28T07:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193742#M146872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ouch, both options sound pretty scary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't there a way to programmatically create the equivalent of a BPMN continuation, something that isn't a TransactionListener but that would execute after the variable is committed, and would throw the signal? Maybe scheduling a job with the job manager?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 06:21:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193742#M146872</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2015-05-30T06:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193743#M146873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Franck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Event listeners could be used for this. If you register an event listener on a variable create/update you get a trigger every time a variable is updated or created. There's an option to store al events in the Activiti database table ACT_EVT_LOG and you could create a thread that reads new rows from this event log table. When its written to this table you are sure that the transaction has been committed successfully.&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>Sun, 31 May 2015 12:59:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193743#M146873</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-05-31T12:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193744#M146874</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;SPAN&gt;I think it does not solve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The issue we are running into is that, the way we understand it, using an Activiti listener to fire the signal asynchronously means that subscribers may start executing before the new variable value has been committed to the database.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 07:05:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193744#M146874</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-06-02T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193745#M146875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed… the issue is still pending for us pm 5.15.1, if there is anything in the latest releases that would help with this I would love any pointers you can give.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 13:28:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193745#M146875</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2015-11-04T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending BPMN signal upon variable update</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193746#M146876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Franck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using Spring, you can implement a org.springframework.transaction.support.TransactionSynchronization listener that will be notified when a transaction is committed (e.g. it's afterCommit() method). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Store your modified variables in a resource holder attached to the Spring Transaction.&amp;nbsp; If using Spring, Activiti DB commands will be using a Spring Transaction, so you are good to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In your implementation's 'afterCommit()' method, take the variable(s) and/or signal and fire them off IN A SEPARATE THREAD.&amp;nbsp; The current thread just had a txn on it and it won't like you doing more work on it.&amp;nbsp; So, spin off a separate thread for this signal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 21:46:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-bpmn-signal-upon-variable-update/m-p/193746#M146876</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-28T21:46:50Z</dc:date>
    </item>
  </channel>
</rss>

