<?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 Inclusive Gateway: Major Performance Issue and Defect in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82280#M55119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found a major issue with the Inclusive Gateway.&amp;nbsp; This is a very different issue (and IMO even more pressing/critical) than ACT-1204, ACT-1026, and ACT-1073 (the currently reported items for Inclusive Gateway), in that it would seem to negate the benefits of using the Inclusive Gateway entirely. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, to set up the scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;We have a set of fairly complex flows, with sub-processes that can sometimes be complex as well.&amp;nbsp; We use inclusive gateways heavily to determine conditional behavior in these flows.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;It is assumed the reader knows that when an Inclusive Gateway is put into a flow, and it has multiple forks it can take, each fork causes a new activity instruction item to be logged into the Activiti History for that flow.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;To summarize the primary issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;After the first Inclusive Gateway path taken, every subsequent task created for that path doesn't have an &lt;EM&gt;end_time_&lt;/EM&gt; set, and therefore never gets a &lt;EM&gt;duration_&lt;/EM&gt; set.&amp;nbsp; Perhaps it never officially ends?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The &lt;SPAN style="color:#FF0000;"&gt;next&lt;/SPAN&gt; task (after each of those Inclusive Gateway tasks), is delayed by a minimum of 1 second (sometimes up to 3.5 second task).&amp;nbsp; See chart below.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;First, to see this for yourself on your own flows, add an Inclusive Gateway with several tasks as forks, join using an Inclusive Gateway, then run this handy query: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT r.slevel "Lev",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; act_name_ || ' [' || act_id_ || '}' act_name_id,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; decode(r.slevel, 1, 0, a.duration_) duration,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; decode(r.slevel, 1, a.duration_, 0) "MainTime",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.start_time_,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.end_time_,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(p.proc_def_id_, 1, instr(p.proc_def_id_, ':') - 1) process,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.proc_inst_id_&lt;BR /&gt;FROM&amp;nbsp;&amp;nbsp; act_hi_actinst a,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT LEVEL slevel, t.proc_inst_id_, duration_&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp; act_hi_procinst t&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; START&amp;nbsp; WITH super_process_instance_id_ IS NULL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp;&amp;nbsp; proc_inst_id_ = '1141690'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONNECT BY PRIOR proc_inst_id_ = super_process_instance_id_) r,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; act_hi_procinst p&lt;BR /&gt;WHERE&amp;nbsp; a.proc_inst_id_ = r.proc_inst_id_&lt;BR /&gt;AND&amp;nbsp;&amp;nbsp;&amp;nbsp; p.proc_inst_id_ = a.proc_inst_id_&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The query should give you a nice output, sequencing your history and showing you every task executed (in order) for a process and all of its sub-processes.&amp;nbsp; For one of our flows, we have the following statistics:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;There are 161 process instructions shown in the history.&amp;nbsp; Of the 162, 23 are related to Inclusive Gateways.&amp;nbsp; We only have 5 total Inclusive Gateways in the flow.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The whole flow takes &lt;STRONG&gt;53 seconds&lt;/STRONG&gt; to execute.&amp;nbsp; Of the 53 seconds, &lt;STRONG style="color: #FF0000;"&gt;36 seconds (68%)&lt;/STRONG&gt; are consumed between the start_time_ of Inclusive Gateways, and the start_time_ of the next process instruction (this is the only way duration can be determined, because end_time_ and duration_ aren't set for the Inclusive Gateway).&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;I have a specific table which shows all 161 generated from the above query, but I think a forum post probably isn't the way to view it.&amp;nbsp; Instead, I'll put a small sub-segment, from the first (shrunk down to be easier to see):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DURATION START_TIME&amp;nbsp; END_TIME&amp;nbsp;&amp;nbsp;&amp;nbsp; START_TO_START_DURATION&amp;nbsp; DIFFERENCE&lt;BR /&gt;123&amp;nbsp; Inclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1317&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.33168000&amp;nbsp; 1.34485000&amp;nbsp; 1317&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;124&amp;nbsp; Exclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.34485000&amp;nbsp; 1.34486000&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;125&amp;nbsp; Verify Something&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.34486000&amp;nbsp; 1.34581000&amp;nbsp; 95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;126&amp;nbsp; Exclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.34581000&amp;nbsp; 1.34581000&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;127&amp;nbsp; Inclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.34581000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3195&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3195&lt;BR /&gt;128&amp;nbsp; Verify Something Else 70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.37776000&amp;nbsp; 1.37846000&amp;nbsp; 70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;129&amp;nbsp; Inclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.37846000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2307&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2307&lt;BR /&gt;130&amp;nbsp; Inclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.40153000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1669&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1669&lt;BR /&gt;131&amp;nbsp; Update Something&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.41822000&amp;nbsp; 1.41849000&amp;nbsp; 47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;BR /&gt;132&amp;nbsp; Inclusive Gateway&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.41869000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1417&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1417&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Note on the columns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;# - The activity instruction number, out of 161.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;NAME - Taken from the act_name_id in the query above&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;DURATION - Taken from the duration_ in the query above&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;START_TIME - A simplified version of the start_time_ from the query above (in minutes)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;END_TIME - A simplified version of the end_time_ from the query above (in minutes)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;START_TO_START_DURATION - The "actual" duration between when the current activity instruction and the next activity instruction is executed&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;DIFFERENCE - The difference between Activiti's duration_, and the "actual" START_TO_START_DURATION.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;You can see in the above, that the Exclusive Gateway executes in 1 millisecond.&amp;nbsp; I would have thought the inclusive gateway would have been the same… but unfortunately as you can see the first execution takes 1.3 seconds.&amp;nbsp; All subsequent Inclusive Gateway calls do not have a duration, or an end_time, and the "next" activity instruction starts with a significant performance delay.&amp;nbsp; From 123 to 132 above, it took about 10 seconds to execute.&amp;nbsp; Only 203 milliseconds of that 10 seconds was spent executing actual business logic, the remainder was spent in delays caused by Inclusive Gateway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can certainly enter this as a JIRA issue as well, but wanted to put into the forum to see if there are any immediate thoughts from the community or Activiti development team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 18:25:19 GMT</pubDate>
    <dc:creator>tidetom</dc:creator>
    <dc:date>2012-05-23T18:25:19Z</dc:date>
    <item>
      <title>Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82280#M55119</link>
      <description>Hi all,I've found a major issue with the Inclusive Gateway.&amp;nbsp; This is a very different issue (and IMO even more pressing/critical) than ACT-1204, ACT-1026, and ACT-1073 (the currently reported items for Inclusive Gateway), in that it would seem to negate the benefits of using the Inclusive Gateway en</description>
      <pubDate>Wed, 23 May 2012 18:25:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82280#M55119</guid>
      <dc:creator>tidetom</dc:creator>
      <dc:date>2012-05-23T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82281#M55120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our team wanted to eliminate if there’s any side effect of things we do, like pause to get the output variables et al, so we have created simple flows with nothing but script tasks. Basically we have 4 flows, each with 5 ScriptTasks controlled by a condition.&amp;nbsp; The flows are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;1. 5 tasks controlled by an inclusive gateway&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;2. 5 tasks controlled by an exclusive gateway&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;3. 5 tasks controlled by a parallel gateway&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;4. 5 tasks controlled by a parallel gateway, followed by an exclusive gateway (emulating Inclusive Gateway functionality)&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;As expected for exclusive gateway the flow only passed thru one task, for parallel all 5 paths are executed and I set my condition to be true for 3 paths for inclusive gateway and parallelAndExclusive (our old implementation of inclusive gateway) runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Results prove: inclusive gateway is buggy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;PROC_DEF_ID_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(DURATION_) REAL_ELAPSED_TIME MIN(START_TIME_)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(END_TIME_)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASKCNT&lt;BR /&gt;svc_f_test_igw:1:736265&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3253&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.792&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-MAY-12 12.04.28.790000 PM&amp;nbsp; 23-MAY-12 12.04.34.582000 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;svc_f_test_eXgw:1:736261&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.08&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-MAY-12 12.04.24.739000 PM&amp;nbsp; 23-MAY-12 12.04.24.819000 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;svc_f_test_pgw:1:736273&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 162&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.336&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-MAY-12 12.04.36.272000 PM&amp;nbsp; 23-MAY-12 12.04.36.608000 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;BR /&gt;svc_f_test_pgwPluseXgw:1:736269 115&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.177&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23-MAY-12 12.04.40.701000 PM&amp;nbsp; 23-MAY-12 12.04.40.878000 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I can provide the ZIP file upon request with the tested BPMN flows, and an output captured using the following query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT proc_def_id_,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(duration_),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract (second FROM (MAX(end_time_) - MIN(start_time_))) real_elapsed_time,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN(start_time_),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(end_time_),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(decode(act_type_, 'scriptTask', 1, 0)) - 2 taskcnt&lt;BR /&gt;FROM&amp;nbsp;&amp;nbsp; act_hi_actinst&lt;BR /&gt;GROUP&amp;nbsp; BY proc_def_id_&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;All help is very much appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti Developers / QA - please let me know if you'd like me to submit a JIRA issue for this item.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 21:05:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82281#M55120</guid>
      <dc:creator>tidetom</dc:creator>
      <dc:date>2012-05-23T21:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82282#M55121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the detailed description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you create a JIRA and attach a ZIP with a unit test project so that I can run it and try to reproduce it, before I can seek for a solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 08:36:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82282#M55121</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-24T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82283#M55122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good to hear from you, and thank you for the quick reply.&amp;nbsp; I have added JIRA issue ACT-1231: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1231" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1231&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if there's anything else I can do to help this item along.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 22:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82283#M55122</guid>
      <dc:creator>tidetom</dc:creator>
      <dc:date>2012-05-25T22:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82284#M55123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm curious if you think this issue might be something that would be fixed in the near term, or longer term?&amp;nbsp; I don't mean to pressure you, but just ask because given its effect on performance, our team is trying to decide whether to change all of our inclusive gateways back to the equivalent parallel + exclusive gateway combination or not.&amp;nbsp; Naturally if this is something that will be investigated and potentially fixed in 5.10, then we'd prefer not to go through that effort.&amp;nbsp; If later than that, then we'd probably go ahead with changing our flows so that inclusive gateways are no longer used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:18:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82284#M55123</guid>
      <dc:creator>tidetom</dc:creator>
      <dc:date>2012-06-04T17:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82285#M55124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should we avoid using Inclusive Gateways until this is addressed? The workaround (parallel + exclusive gateways) seems to make the flows quite crowded and not very clear to the business people.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 00:06:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82285#M55124</guid>
      <dc:creator>cirerenat</dc:creator>
      <dc:date>2012-06-07T00:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82286#M55125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a comment on [&lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1231" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1231&lt;/A&gt;&lt;SPAN&gt;]. I think it's relevant… &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 18:00:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82286#M55125</guid>
      <dc:creator>silvioneto</dc:creator>
      <dc:date>2013-10-10T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inclusive Gateway: Major Performance Issue and Defect</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82287#M55126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't believe the inclusive gateway needs history enabled. And of course your index remarks is correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 11:20:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inclusive-gateway-major-performance-issue-and-defect/m-p/82287#M55126</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-10-21T11:20:17Z</dc:date>
    </item>
  </channel>
</rss>

