<?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 Getting null value while calling Message catching event  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132966#M93387</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;AS per the client request, we need to insert values to multiple tables in the same flow (more than 10 tables) so I created multiple service tasks- one for each table, Inorder to handle db issue i added error boundary event on each service task and calling a call activity (fault handling process) to handle the exception, once the error has been handled the call needs to go back to the same service task from where the issue occured - again to complete the insertion of values into the table. Inoreder to handle that scenario i created a sequence flow from service task to call activity and vice versa. Since multiple service tasks came into picture, the flow started looking confused so client asked me to go for different approach, so I created sequence flow from service task to call activity&amp;nbsp; (fault handling process) and in call activity i created a java class with method to call back the service task through Message catching event and i added message catching event( intermediate event ) in the flow and created a sequence flow between message catching event and service task. But when i try to make a call from call activity to message catching event I am getting null exception. All the scenario exists in the same flow. Please find below the code I wrote to call message catching event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public void Task6(DelegateExecution execution)throws Exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("Error boundary call");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EngineServices engineServices&amp;nbsp; = execution.getEngineServices();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RuntimeService runtimeService = engineServices.getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Execution messageExecution = runtimeService.createExecutionQuery().processInstanceId(execution.getProcessInstanceId()).messageEventSubscriptionName("MessageCatchEvent").singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("messageExecution "+messageExecution ); —-&amp;gt; This returning null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;runtimeService.messageEventReceived("MessageCatchEvent", messageExecution .getId() );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;catch(Exception e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.printstacktrace();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+++++++System.out.println("messageExecution "+messageExecution );+++++ —-&amp;gt; This returning null&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the name of the message catching event is "MessageCatchEvent".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me out in fixing the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dhayanidhy P.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2013 04:00:58 GMT</pubDate>
    <dc:creator>dhayanidhypazha</dc:creator>
    <dc:date>2013-07-02T04:00:58Z</dc:date>
    <item>
      <title>Getting null value while calling Message catching event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132966#M93387</link>
      <description>Hi,AS per the client request, we need to insert values to multiple tables in the same flow (more than 10 tables) so I created multiple service tasks- one for each table, Inorder to handle db issue i added error boundary event on each service task and calling a call activity (fault handling process)</description>
      <pubDate>Tue, 02 Jul 2013 04:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132966#M93387</guid>
      <dc:creator>dhayanidhypazha</dc:creator>
      <dc:date>2013-07-02T04:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null value while calling Message catching event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132967#M93388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure that messages will work through a call activity (I don't even think it is valid BPMN 2.0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And embedded subprocess will work, but that won't solve your problem probably.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:23:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132967#M93388</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-03T10:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null value while calling Message catching event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132968#M93389</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;Is it possible to add boundary and Intermediate events to call activity? I hope we can add error boundary event and timer event other than that any other event is possible? Because when i try to call message boundary event of call activity from call activity, I m getting null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is possible to call, then plz share some reference document it will be very much helpful for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 21:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132968#M93389</guid>
      <dc:creator>dhayanidhypazha</dc:creator>
      <dc:date>2013-07-03T21:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null value while calling Message catching event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132969#M93390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Timers will work, but passing data using events is not something that will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The right BPMN 2.0 way to do it, is to have multiple processes in one definition file and define message exchange between them. However, that is unfortunately not implemented in Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could, however, create a similar behavipur using custom service tasks and receive tasks to continue/halt processes based on messages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 11:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132969#M93390</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-05T11:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null value while calling Message catching event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132970#M93391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot Jorambarrez for your update.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 15:24:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-null-value-while-calling-message-catching-event/m-p/132970#M93391</guid>
      <dc:creator>dhayanidhypazha</dc:creator>
      <dc:date>2013-07-05T15:24:23Z</dc:date>
    </item>
  </channel>
</rss>

