<?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 Thread safety of signalEventReceived vs signalEventReceivedAsync in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/thread-safety-of-signaleventreceived-vs-signaleventreceivedasync/m-p/204972#M158102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shortly speaking : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need functionality of RuntimeService signalEventReceived(String executionId, Map&amp;lt;String,Object&amp;gt; processVariables) in the asynchronous manner. I wanted to go towards signalEventReceivedAsync, but they don't have a form with setting process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the sake of experimenting I put every synchronous signalEventReceived call into a new thread but I feel something can go wrong with this attitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Are signalEventReceived methods thread safe, or everything will everything break eventually?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Why there is no version signalEventReceivedAsync supporting setting process variables? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it only because of no guarantee of not suppressing these variable values by other calls to signalEventReceivedAsync? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be hard to implement async version of signalEventReceived supporting process variables?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is sequence of delivering signals called using Async method unchanged or is it random?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 14:31:04 GMT</pubDate>
    <dc:creator>michalwrobel</dc:creator>
    <dc:date>2014-09-01T14:31:04Z</dc:date>
    <item>
      <title>Thread safety of signalEventReceived vs signalEventReceivedAsync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-safety-of-signaleventreceived-vs-signaleventreceivedasync/m-p/204972#M158102</link>
      <description>Shortly speaking : I need functionality of RuntimeService signalEventReceived(String executionId, Map&amp;lt;String,Object&amp;gt; processVariables) in the asynchronous manner. I wanted to go towards signalEventReceivedAsync, but they don't have a form with setting process variables.For the sake of experime</description>
      <pubDate>Mon, 01 Sep 2014 14:31:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-safety-of-signaleventreceived-vs-signaleventreceivedasync/m-p/204972#M158102</guid>
      <dc:creator>michalwrobel</dc:creator>
      <dc:date>2014-09-01T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Thread safety of signalEventReceived vs signalEventReceivedAsync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-safety-of-signaleventreceived-vs-signaleventreceivedasync/m-p/204973#M158103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are referring to a single queue solution, so the order of processing is guaranteed. This is something that's not part of the Activiti core but could be added on top of Activiti. Handling the signals synchronously or asynchronously doesn't really make a difference I think, because multiple threads can invoke the logic at the same time.&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, 08 Sep 2014 19:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-safety-of-signaleventreceived-vs-signaleventreceivedasync/m-p/204973#M158103</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-09-08T19:16:48Z</dc:date>
    </item>
  </channel>
</rss>

