<?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 message events to a process in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11442#M5059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That worked.&lt;/P&gt;&lt;P&gt;I have a couple of more questions though.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why do I get 2 executions, when I have a single threaded process with no branches?&lt;/LI&gt;&lt;LI&gt;Why do getId() and getName() return null, and for one execution, even getActivitiId()?&lt;/LI&gt;&lt;LI&gt;Given this ambiguity, how do I know which is the execution that I want to deliver&amp;nbsp;the event to?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 14:08:29 GMT</pubDate>
    <dc:creator>mprakash</dc:creator>
    <dc:date>2017-06-01T14:08:29Z</dc:date>
    <item>
      <title>Sending message events to a process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11440#M5057</link>
      <description>I am trying to understand the message event catching functionality in Activiti 5.22.To that end, I created the following process definition:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst</description>
      <pubDate>Wed, 31 May 2017 21:50:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11440#M5057</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-05-31T21:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sending message events to a process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11441#M5058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to specify a messageName, not a messageRef.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnMessageEventDefinition" title="https://www.activiti.org/userguide/#bpmnMessageEventDefinition" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;runtimeService&lt;/SPAN&gt;.messageEventReceived(&lt;SPAN class=""&gt;"Hello Event"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;ex&lt;/SPAN&gt;.getId());&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:00:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11441#M5058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T07:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending message events to a process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11442#M5059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That worked.&lt;/P&gt;&lt;P&gt;I have a couple of more questions though.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why do I get 2 executions, when I have a single threaded process with no branches?&lt;/LI&gt;&lt;LI&gt;Why do getId() and getName() return null, and for one execution, even getActivitiId()?&lt;/LI&gt;&lt;LI&gt;Given this ambiguity, how do I know which is the execution that I want to deliver&amp;nbsp;the event to?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11442#M5059</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-06-01T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sending message events to a process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11443#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; 1. Why do I get 2 executions, when I have a single threaded process with no branches?&lt;/P&gt;&lt;P&gt;It is difficult to explain how executions are generated in Activiti.&lt;BR /&gt;In this case, it splits into the scope execution of the message intermediate event and the execution of the process instance itself.Execution is not splited only in case of branch or parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Why do getId() and getName() return null,&lt;/P&gt;&lt;P&gt;Do you mention　about getName() and getDescription()?&lt;BR /&gt;It will be null if you do not intentionally set it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; and for one execution, even getActivitiId()?&lt;/P&gt;&lt;P&gt;Because the second execution of your loop is the execution of the process instance itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Given this ambiguity, how do I know which is the execution that I want to deliver the event to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use ExecutionQuery.messageEventSubscriptionName(String messageName).&lt;BR /&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/runtime/ExecutionQuery.html#messageEventSubscriptionName-java.lang.String-" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/javadocs/org/activiti/engine/runtime/ExecutionQuery.html#messageEventSubscriptionName-java.lang.String-&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check the link I uploaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://www.activiti.org/userguide/#bpmnMessageEventDefinition" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;https://www.activiti.org/userguide/#bpmnMessageEventDefinition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 14:34:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sending-message-events-to-a-process/m-p/11443#M5060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T14:34:03Z</dc:date>
    </item>
  </channel>
</rss>

