<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Complex doesnt finish</title><link>https://community.appian.com/discussions/f/general/19368/complex-doesnt-finish</link><description>Hello, 
 
 I have this problem: 
 
 It has 4 inputs and one ouput 
 
 
 but I dont know why doesnt finish at all. 
 Any help please? 
 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75788?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 13:48:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6c2f87e-70ff-42c1-b537-3c5587679ba8</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;This is somewhat unrelated, but it may also address your issue - do you have a &lt;a href="https://docs.appian.com/suite/help/latest/End_Event.html#adding-a-terminate-process-trigger"&gt;terminate&lt;/a&gt; as your end event? Regardless of the behavior of the complex gateway, the process won&amp;#39;t finish if you don&amp;#39;t have a terminate and still have active nodes in the process. In this case, for instance, even if the node shows as active, when additional paths arrive for the gateway, the process will complete if you use a terminate event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75785?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 08:21:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79cbeb30-f28c-4a8c-a7f9-4e0ec632a202</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Can you look at the process history for this instance, like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1596529210480v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This will definitively tell you if the Complex node was&amp;nbsp;transitioned to twice (once for each arriving input) and Completed once, as per your design. If you see any other instances of the Complex being started then this would be your issue. If not, I am at a loss as to what the problem is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75784?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 07:33:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72072910-3991-4e00-9190-ff55bcce24db</guid><dc:creator>mteresa</dc:creator><description>&lt;p&gt;Hello and thank you everyone.&lt;/p&gt;
&lt;p&gt;In my case, I have 4 inputs and to continue, just I need two inputs, so it is why I used a complex. I dont have a loop in the process, but it didnt finish,&amp;nbsp;and the monitoring looks like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1596526218664v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Never finish.&lt;/p&gt;
&lt;p&gt;The complex is still today in green color. I dont understand why dont finisih, because I need it executes two inputs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75780?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 18:09:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17df0b22-b644-4095-9c1e-4221c5cfeef5</guid><dc:creator>Omkar Ambardekar</dc:creator><description>&lt;p&gt;Stewart is right, the complex gateway won&amp;#39;t work&amp;nbsp;in your case if you are running the same node&amp;nbsp;in a loop. Also, based on your screenshot since the flow after your complex gateway is blue, it indicates that the gateway is already executed once in the process instance and you have a loop coming back to it which&amp;nbsp;gets stuck at the 2nd iteration.&lt;/p&gt;
&lt;p&gt;The thing to understand with Complex gateways is that when you specify 2 incoming paths as your condition then that means 2 incoming paths for only 1 execution of the node, not multiple executions of the node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75774?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:35:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:090dfa6e-9c5b-439c-a880-47643929a7ef</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I suppose the answer to that is how strictly the complex node join is.&amp;nbsp; It&amp;#39;s a lot easier in the case of an XOR gateway since you can always assume 1 incoming flow basically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75772?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 14:01:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec167e37-ab01-43a2-94f5-69e634a74fb8</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Still, the solution is the good ol&amp;#39; blank script task &amp;quot;Join&amp;quot;, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75771?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:11:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3ef25b1-aae0-40ee-900c-b22e3bfb44a0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Based on the screenshot, it has a completed outgoing flow already, so my guess is that your thinking is correct - one of the incoming flows has re-executed.&amp;nbsp; I guess what I don&amp;#39;t know is, what happens if both incoming flows re-execute?&amp;nbsp; Would it work as expected one additional time, or would it not count those after the initial 2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Complex doesnt finish</title><link>https://community.appian.com/thread/75770?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:02:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1934faf-50bd-4643-861c-b696ef2c08c8</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried this out, the only way I get the Complex Gateway to behave as you describe is to have a loop back into the gateway from downstream of the process. Do you have anything like that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>