<?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: workflow not executed Both task if two service task as a part of parallel gateway. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/workflow-not-executed-both-task-if-two-service-task-as-a-part-of/m-p/16137#M7150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might be seeing a race condition. Whichever branch of the fork finishes first ends the process.&amp;nbsp;If so&amp;nbsp;you need a join before the end if you want both branches to be executed. It might be that one finishes before the other is even scheduled to run by the job executor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The engine tests scenarios similar to this under&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/develop/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/gateway/ParallelGatewayTest.java" title="https://github.com/Activiti/Activiti/blob/develop/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/gateway/ParallelGatewayTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/ParallelGatewayTest.java at develop · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;and the BPMN for those tests is at&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/tree/develop/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway" title="https://github.com/Activiti/Activiti/tree/develop/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway" rel="nofollow noopener noreferrer"&gt;Activiti/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway at develop · Activiti/Activiti · GitHu…&lt;/A&gt;&amp;nbsp; I don't see your specific scenario of two service tasks on different sequence flows out from the fork but I think that's because you&amp;nbsp;need to either have a join or&amp;nbsp;have something that will stop the flow like a manual task in the branch in order to avoid&amp;nbsp;a race condition. But if you're confident this condition can and should be addressed by the engine then it's an option to try to find an example out there of this scenario working and/or create a test case and see how to accommodate it with Activiti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 10:41:36 GMT</pubDate>
    <dc:creator>ryandawson</dc:creator>
    <dc:date>2018-03-20T10:41:36Z</dc:date>
    <item>
      <title>workflow not executed Both task if two service task as a part of parallel gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflow-not-executed-both-task-if-two-service-task-as-a-part-of/m-p/16136#M7149</link>
      <description>Hi community,we have integrated activity framework in my product version (Activiti - 5.15.1).Only one service task is executed if two service task is connected as a output of parallel gateway, and found below error. here i have attached image of my workflow.Here&amp;nbsp;can any one give suggestion that how</description>
      <pubDate>Fri, 16 Mar 2018 20:54:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflow-not-executed-both-task-if-two-service-task-as-a-part-of/m-p/16136#M7149</guid>
      <dc:creator>nprajapatiasite</dc:creator>
      <dc:date>2018-03-16T20:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: workflow not executed Both task if two service task as a part of parallel gateway.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/workflow-not-executed-both-task-if-two-service-task-as-a-part-of/m-p/16137#M7150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might be seeing a race condition. Whichever branch of the fork finishes first ends the process.&amp;nbsp;If so&amp;nbsp;you need a join before the end if you want both branches to be executed. It might be that one finishes before the other is even scheduled to run by the job executor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The engine tests scenarios similar to this under&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/develop/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/gateway/ParallelGatewayTest.java" title="https://github.com/Activiti/Activiti/blob/develop/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/gateway/ParallelGatewayTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/ParallelGatewayTest.java at develop · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;and the BPMN for those tests is at&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/tree/develop/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway" title="https://github.com/Activiti/Activiti/tree/develop/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway" rel="nofollow noopener noreferrer"&gt;Activiti/activiti-engine/src/test/resources/org/activiti/engine/test/bpmn/gateway at develop · Activiti/Activiti · GitHu…&lt;/A&gt;&amp;nbsp; I don't see your specific scenario of two service tasks on different sequence flows out from the fork but I think that's because you&amp;nbsp;need to either have a join or&amp;nbsp;have something that will stop the flow like a manual task in the branch in order to avoid&amp;nbsp;a race condition. But if you're confident this condition can and should be addressed by the engine then it's an option to try to find an example out there of this scenario working and/or create a test case and see how to accommodate it with Activiti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 10:41:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/workflow-not-executed-both-task-if-two-service-task-as-a-part-of/m-p/16137#M7150</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-03-20T10:41:36Z</dc:date>
    </item>
  </channel>
</rss>

