<?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: Shortest Queue is Missing in V2021? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563906#M65867</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/22125/sudharsanr.html" nodeid="22125"&gt;@Sudharsan R&lt;/A&gt;, was marcello.rosadini's answer helpful? If so, please click the red "Accept" button at the bottom their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 Jan 2021 19:12:48 GMT</pubDate>
    <dc:creator>Ben_WilsonADSK</dc:creator>
    <dc:date>2021-01-20T19:12:48Z</dc:date>
    <item>
      <title>Shortest Queue is Missing in V2021?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563903#M65864</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;HI,&lt;/P&gt;
 &lt;P&gt;I am using the latest version V 2021.20.0.1. In this version, i am working on Process flow model.&lt;/P&gt;
 &lt;P&gt;I couldn't see the "shortest queue" option in the decide block.&lt;span class="lia-inline-image-display-wrapper" image-alt="36014-1610858977682.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504768iF742925BAA292840/image-size/large?v=v2&amp;amp;px=999" role="button" title="36014-1610858977682.png" alt="36014-1610858977682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 04:50:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563903#M65864</guid>
      <dc:creator>sudharsan_r</dc:creator>
      <dc:date>2021-01-17T04:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shortest Queue is Missing in V2021?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563904#M65865</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Sudharsan,&lt;/P&gt;&lt;P&gt;that seems to be the case. I am not sure about the reason of it being removed, buy you could open the code editor for the Decide activity:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36033-1610859871177.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504767i3F8D2DBCE3B4C99E/image-size/large?v=v2&amp;amp;px=999" role="button" title="36033-1610859871177.png" alt="36033-1610859871177.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and just paste this code (copied from the shortest queue option on a previous version of FlexSim)&lt;/P&gt;&lt;PRE&gt;Object current = param(1);
treenode activity = param(2);
Token token = param(3);
treenode processFlow = ownerobject(activity);
/**Shortest Queue*/
/**Send to the connector corresponding to the activity with the shortest queue.*/
int curmincontent = &amp;nbsp;1000000000; // this sets the integer to the largest possible value that an integer can hold.
int connector = 1;

for (int index = 1; index &amp;lt;= nrop(activity); index++) {
&amp;nbsp; &amp;nbsp; treenode tempactivity = outobject(activity, index);
&amp;nbsp; &amp;nbsp; int activitycontent = getstat(tempactivity, "Content", STAT_CURRENT, current);
&amp;nbsp; &amp;nbsp; if (activitycontent &amp;lt; curmincontent) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curmincontent = activitycontent;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; connector = index;
&amp;nbsp; &amp;nbsp; }
}

return connector ;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 05:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563904#M65865</guid>
      <dc:creator>m_rosadini</dc:creator>
      <dc:date>2021-01-17T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Shortest Queue is Missing in V2021?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563905#M65866</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/192/marcello.r.html" nodeid="192"&gt;@marcello.rosadini&lt;/A&gt;,&lt;/P&gt;
 &lt;P&gt;Thanks for the help. Great. &lt;/P&gt;
 &lt;P&gt;Cheers,&lt;/P&gt;
 &lt;P&gt;Sudharsan R&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Jan 2021 05:30:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563905#M65866</guid>
      <dc:creator>sudharsan_r</dc:creator>
      <dc:date>2021-01-17T05:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shortest Queue is Missing in V2021?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563906#M65867</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/22125/sudharsanr.html" nodeid="22125"&gt;@Sudharsan R&lt;/A&gt;, was marcello.rosadini's answer helpful? If so, please click the red "Accept" button at the bottom their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jan 2021 19:12:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/shortest-queue-is-missing-in-v2021/m-p/13563906#M65867</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2021-01-20T19:12:48Z</dc:date>
    </item>
  </channel>
</rss>

