<?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 Event-based Gateway in Unit Test in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132065#M92800</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 an event-based gateway in my process. In one outgoing flow of it there is a timer and in the other one there is a message catching event. I'm executing timer event by calling &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;managementService.executeJob(delayTimer.getId());&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After my process ends(I thought this way), I've checked if there are any stray processes left:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;List&amp;lt;Execution&amp;gt; executionList = processEngine.getRuntimeService().createExecutionQuery().list();&lt;BR /&gt;assertEquals(0, executionList.size());&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that there are 2 executions left, one is the process itself and the other one is execution of event based gateway. I don't know it is normal or not. If it is not, how can I make that event-based gateway execution ends when the process ends?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: It is bad that I can not search 'event based' words in the forum. So maybe this question is asked before but I couldn't find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 13:38:29 GMT</pubDate>
    <dc:creator>gokceng1</dc:creator>
    <dc:date>2013-03-13T13:38:29Z</dc:date>
    <item>
      <title>Event-based Gateway in Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132065#M92800</link>
      <description>Hi,I've an event-based gateway in my process. In one outgoing flow of it there is a timer and in the other one there is a message catching event. I'm executing timer event by calling managementService.executeJob(delayTimer.getId());After my process ends(I thought this way), I've checked if there are</description>
      <pubDate>Wed, 13 Mar 2013 13:38:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132065#M92800</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-03-13T13:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based Gateway in Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132066#M92801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Event-based gateway with 2 outgoing flows will take both outgoing paths, this is how activiti works. If you can't the process to stop, you can add a subprocess around it with a boundary-event, that has "cancelActivity=true" which ends the subprocess (and all executions in it) when the event occurs…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 11:29:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132066#M92801</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-14T11:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based Gateway in Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132067#M92802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This behavior seems counter to the intuition described in the documentation: &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnEventbasedGateway" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnEventbasedGateway&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The Join gateway in the user guide example is an Exclusive Gateway. In my understanding the behavior of the event based gateway should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a one of the mutually exclusive paths based on which event is fired first. Is the behavior mentioned above a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:40:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132067#M92802</guid>
      <dc:creator>kiyer</dc:creator>
      <dc:date>2013-06-07T20:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based Gateway in Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132068#M92803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This behavior seems counter to the intuition described in the documentation: &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/#bpmnEventbasedGateway" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#bpmnEventbasedGateway&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The Join gateway in the user guide example is an Exclusive Gateway. In my understanding the behavior of the event based gateway should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a one of the mutually exclusive paths based on which event is fired first. Is the behavior mentioned above a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:55:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132068#M92803</guid>
      <dc:creator>kiyer</dc:creator>
      <dc:date>2013-06-07T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Event-based Gateway in Unit Test</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132069#M92804</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;The behavior of the event based gateway only will take one of the outgoing paths. The first event that's received will be processed and the event-based gateway is finished.&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, 10 Jun 2013 14:14:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-based-gateway-in-unit-test/m-p/132069#M92804</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-06-10T14:14:02Z</dc:date>
    </item>
  </channel>
</rss>

