<?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/219301#M172431</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 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 code works perfectly fine if I notify the instance that is already sitting in a 'Intermediate Catch Message Event'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Get the process instance Id from the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String processInstanceId=runtimeService.createProcessInstanceQuery().processInstanceBusinessKey("12345").singleResult().getId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Use the process instance id to get handle to 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;messageEventSubscriptionName("testCatchMessage").singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.messageEventReceived("testCatchMessage", execution.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/SPAN&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 that is sitting in a &amp;lt;HUMAN TASK&amp;gt; and NOT in the 'Intermediate Catch Message Event'.&lt;/SPAN&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 but instead the instance should get notified as soon as the instance arrives at 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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 17:29:43 GMT</pubDate>
    <dc:creator>samsmith</dc:creator>
    <dc:date>2016-02-29T17:29:43Z</dc:date>
    <item>
      <title>Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219301#M172431</link>
      <description>Hi,I have got a question on the following scenario:Lets say that I have a BPM process that has 2 steps:'Human Task' followed by a 'Intermediate Catch Message Event'.The below code works perfectly fine if I notify the instance that is already sitting in a 'Intermediate Catch Message Event'.xxxxxxxxxx</description>
      <pubDate>Mon, 29 Feb 2016 17:29:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219301#M172431</guid>
      <dc:creator>samsmith</dc:creator>
      <dc:date>2016-02-29T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219302#M172432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;runtimeService.createExecutionQuery().processInstanceId(processInstanceId) will return ExecutionQuery. You have to do .singleResult().get() on it to retrieve execution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 18:02:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219302#M172432</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2016-02-29T18:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219303#M172433</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;SPAN&gt;It is expected behaviour. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Queueing -&amp;gt; You can implement it by&amp;nbsp; your own. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the case when you fire an event to the relevant execution which is not listening on this event, nothing happens.&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:02:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219303#M172433</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-01T08:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219304#M172434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm facing a problem with message events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After start the main process, while waiting for Task1 to complete, a message was received and subprocess started. When subprocess ends, a message is thrown to start subprocess event (SubEvent1). After SubEvent2 is completed a message is thrown and the Task4 has to catch the event and ends the main process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that possible with Activiti 5.17.0???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:33:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219304#M172434</guid>
      <dc:creator>mariocmp</dc:creator>
      <dc:date>2016-03-02T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219305#M172435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mario,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say that your question is not related to the thread topic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer is yes.&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>Thu, 03 Mar 2016 07:47:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219305#M172435</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-03T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219306#M172436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any plan to add this QUEUING mechanism into the notification service anytime soon. I am from the Oracle BPM background and it has a in-built QUEUEING mechanism where the Event stays in the Queue until the execution arrives at the Notification Wait step and then it notifies it automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 10:33:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219306#M172436</guid>
      <dc:creator>samsmith</dc:creator>
      <dc:date>2016-03-03T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Message Notification</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219307#M172437</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;SPAN&gt;I do not have such a plan.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have such a need, you can implement it by yourselves and create pull request. Anybody from the team will provide you support.&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>Fri, 04 Mar 2016 07:37:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/message-notification/m-p/219307#M172437</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-04T07:37:39Z</dc:date>
    </item>
  </channel>
</rss>

