<?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 Querying Message Intermediate Catching Event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126704#M89121</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;SPAN&gt;I've written an util method that get a DelegateExecution instance like JavaDelegate.execute(). I know there is a intermediateCatchEvent that waits for a message but I don't have the info about message name. I know also that the execution is waiting at that activity(I mean intermediateCatchEvent). How can I find the message name which intermediateCatchEvent is waiting for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At that point when I called:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;runtimeService.createExecutionQuery().processInstanceId(processInstance.getProcessInstanceId()).list()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;((ExecutionEntity)runtimeService.createExecutionQuery().processInstanceId(processInstance.getProcessInstanceId()).singleResult())&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get 1 process instance, it doesn't give me any info about message subscription. I've tried &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;executionEntity.getEngineServices().getManagementService().createJobQuery().list()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; but it gives nothing, I think it is only applicable to timer event, is that correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 12:21:22 GMT</pubDate>
    <dc:creator>gokceng1</dc:creator>
    <dc:date>2013-03-08T12:21:22Z</dc:date>
    <item>
      <title>Querying Message Intermediate Catching Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126704#M89121</link>
      <description>Hi,I've written an util method that get a DelegateExecution instance like JavaDelegate.execute(). I know there is a intermediateCatchEvent that waits for a message but I don't have the info about message name. I know also that the execution is waiting at that activity(I mean intermediateCatchEvent).</description>
      <pubDate>Fri, 08 Mar 2013 12:21:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126704#M89121</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-03-08T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Message Intermediate Catching Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126705#M89122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The job-query is only for timer-events, indeed. Messages are stored in the event-subscription-table. In our implementation, these can be queried when inside activiti-context, but it's not part of the public API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;EventSubscriptionEntity&amp;gt; eventSubscriptions = commandContext.getEventSubscriptionEntityManager()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .findEventSubscriptionsByNameAndExecution(MessageEventHandler.EVENT_HANDLER_TYPE, messageName, executionId);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also use the BPMNModel (as of 5.12) or ReadonlyProcessDefinition (prior to 5.12) to get the activity-representation and inspect that to see what message-event definitions it has.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 12:28:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126705#M89122</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-08T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Querying Message Intermediate Catching Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126706#M89123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, I will try your suggestion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 20:28:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-message-intermediate-catching-event/m-p/126706#M89123</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-03-08T20:28:28Z</dc:date>
    </item>
  </channel>
</rss>

