<?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: Execution with id $FOO does not have a subscription to a message event with name $BAR in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141877#M99363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not a good way of implementing message events, no. So if you don't want to clutter the diagrams for the client, so may want to make 2 versions. But technically it should work. So if you run into DB deadlock issues can you post the stacktrace and maybe a unit test showing the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 12:05:15 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-04-29T12:05:15Z</dc:date>
    <item>
      <title>Execution with id $FOO does not have a subscription to a message event with name $BAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141875#M99361</link>
      <description>I have a simple process that looks like this:&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-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/2010</description>
      <pubDate>Fri, 26 Apr 2013 18:55:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141875#M99361</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-04-26T18:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with id $FOO does not have a subscription to a message event with name $BAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141876#M99362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, never mind that.&amp;nbsp; I was doing something dumb after all.&amp;nbsp; I should have been querying for the execution with the message subscription:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();&lt;BR /&gt;&amp;nbsp; RuntimeService runtimeService = engine.getRuntimeService();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Execution msgExec = runtimeService.createExecutionQuery().processInstanceId(exec.getProcessInstanceId()).messageEventSubscriptionName("message1").singleResult();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; runtimeService.messageEventReceived("message1", msgExec.getId(), null );&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The bigger issue is whether not not this whole approach is even feasible.&amp;nbsp; Basically, the client is trying to avoid having certain sequence flows in the BPMN because the make the diagram too "noisy" for some people.&amp;nbsp; So they are trying to cheat and use this "send and receive a message within the same process" mechanism to avoid those flows. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know if that is possible / supported?&amp;nbsp; After I fixed the problem with passing the wrong execution ID (which was causing the original problem I posted about), I find that the execution will, indeed, pick back up at the Message Intermediate Catching Event, but somewhere after that I start getting exceptions from PostgreSQL where it detects a DB deadlock.&amp;nbsp; Should I just tell them "don't do that" or is there a way to make this work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 20:02:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141876#M99362</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-04-26T20:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with id $FOO does not have a subscription to a message event with name $BAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141877#M99363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not a good way of implementing message events, no. So if you don't want to clutter the diagrams for the client, so may want to make 2 versions. But technically it should work. So if you run into DB deadlock issues can you post the stacktrace and maybe a unit test showing the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:05:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141877#M99363</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-29T12:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with id $FOO does not have a subscription to a message event with name $BAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141878#M99364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, thanks.&amp;nbsp; For now I've had them just accept drawing all the flows explicitly on the diagram.&amp;nbsp; I'll rerun this and grab a stacktrace to post in a bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:58:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-with-id-foo-does-not-have-a-subscription-to-a-message/m-p/141878#M99364</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-04-29T14:58:50Z</dc:date>
    </item>
  </channel>
</rss>

