<?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 Message Notification in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219275#M172405</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 have got a question on the following scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets say that I have a BPM process that that has 2 steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Human Task' followed by a 'Intermediate Catch Message Event'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below&amp;nbsp; code works perfectly fine if I notify the instance that&amp;nbsp; is already sitting in a 'Intermediate Catch Message Event'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Get the process instance Id from the &amp;lt;Business Key&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String processInstanceId=runtimeService.createProcessInstanceQuery().processInstanceBusinessKey("12345").singleResult().getId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Use the process instance id to get handle to&amp;nbsp; Execution object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Execution execution=runtimeService.createExecutionQuery().processInstanceId(processInstanceId).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; messageEventSubscriptionName("testCatchMessage").singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.messageEventReceived("testCatchMessage", execution.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code fails with a NullPointerException (because the 'Execution' object it returned was null) when I try to notify the instance and it&amp;nbsp; is sitting in a &amp;lt;HUMAN TASK&amp;gt; and NOT&amp;nbsp; in the 'Intermediate Catch Message Event'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this an expected behaviour? I would have thought that even in the second scenraio, when the instance is not sitting in a &amp;lt;Wait&amp;gt; state, the client code should not get an error and instead the instance should get notified as soon as the instance arrives in the 'Intermediate Catch Message Event' step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Surely, this request should get QUEUED and the instance should be notified when it arrives at the &amp;lt;Wait&amp;gt; step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 17:21:43 GMT</pubDate>
    <dc:creator>samsmith</dc:creator>
    <dc:date>2016-02-29T17:21:43Z</dc:date>
    <item>
      <title>Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219275#M172405</link>
      <description>Hi,I have got a question on the following scenario:Lets say that I have a BPM process that that has 2 steps:'Human Task' followed by a 'Intermediate Catch Message Event'.The below&amp;nbsp; code works perfectly fine if I notify the instance that&amp;nbsp; is already sitting in a 'Intermediate Catch Message Event'.xxx</description>
      <pubDate>Mon, 29 Feb 2016 17:21:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219275#M172405</guid>
      <dc:creator>samsmith</dc:creator>
      <dc:date>2016-02-29T17:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219276#M172406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is this an expected behaviour?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can implement queueing by yourself if you want to have something like that. The question is when the events should be re-thrown from the queue again (are they still valid?).&lt;/SPAN&gt;&lt;BR /&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, 01 Mar 2016 08:28:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219276#M172406</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-01T08:28:45Z</dc:date>
    </item>
  </channel>
</rss>

