<?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: Check entries's count of a list in Decide Activity in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572294#M72255</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; I understand that strategy, but I need to know on implementing it within a Decide Activity. There's a scenario where the token is directed to connector 2 due to a Max Wait Timer setting. If it fails to retrieve an item from the list, it moves to a Decide activity. Here, it needs to count the entries from a different list in another process flow before making a decision. Is it feasible?&lt;/P&gt;
 &lt;P&gt;* I rephrased the question.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 Feb 2024 16:04:27 GMT</pubDate>
    <dc:creator>maryamh11</dc:creator>
    <dc:date>2024-02-23T16:04:27Z</dc:date>
    <item>
      <title>Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572289#M72250</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;If I'm working with a Global List and need to check if it's empty or count the entries in a Decide Activity, but I don't have a partition ID, what should the checking clause be in the Decide Activity? None of the options below seem to work. Also, could you explain what "processFlow" refers to?&lt;/P&gt;
 &lt;OL id="isPasted"&gt;&lt;LI style="line-height: 20px; list-style-type: decimal;"&gt;&lt;A rel="nofollow noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/CodingInFlexSim/FlexScriptAPIReference/List/#Method-entries" target="_blank"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;List&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;entries&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;length&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;
 &lt;P&gt;OR&lt;/P&gt;
 &lt;OL id="isPasted"&gt;&lt;LI style="line-height: 20px; list-style-type: decimal;"&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;getstat&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;getactivity&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;processFlow&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 136, 0);"&gt;"List"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 136, 0);"&gt;"PartitionContent"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; STAT_CURRENT&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 102, 102);"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt; partitionID&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0);"&gt;)&lt;/SPAN&gt;&lt;A rel="nofollow" id="isPasted" href="https://answers.flexsim.com/questions/32530/list-entry-count-by-partition-id.html"&gt; &lt;/A&gt;&lt;A rel="nofollow" id="isPasted" href="https://answers.flexsim.com/questions/32530/list-entry-count-by-partition-id.html"&gt;&lt;/A&gt;&lt;A rel="nofollow" id="isPasted" href="https://answers.flexsim.com/questions/32530/list-entry-count-by-partition-id.html"&gt;https://answers.flexsim.com/questions/32530/list-entry-count-by-partition-id.html&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;
 &lt;P&gt;Also, how I check entries of two Lists at the same time?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 20:36:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572289#M72250</guid>
      <dc:creator>maryamh11</dc:creator>
      <dc:date>2024-02-22T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572290#M72251</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Instead of a decide can you not just use a pull activity set to leave entries on the list and with a timeout to send the token to port 2 if it fails to pull?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 22:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572290#M72251</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-22T22:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572291#M72252</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I assume you want to check entries of a global list, without knowing actually the partition ID. You find a global list still in your model tree. And you find all entries and their partitions, too.&lt;BR /&gt;&lt;A id="isPasted" href="https://answers.flexsim.com/answers/64417/view.html&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://answers.flexsim.com/answers/64417/view.html"&gt;https://answers.flexsim.com/answers/64417/view.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 06:59:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572291#M72252</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-02-23T06:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572292#M72253</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; yes, it's a globall list and there is no partition ID on my list. 
 &lt;P&gt;I want to know how I can check the count of entries of a global list in a Decide Activity, the link you've shared doesn't answer to this question. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:54:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572292#M72253</guid>
      <dc:creator>maryamh11</dc:creator>
      <dc:date>2024-02-23T15:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572293#M72254</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You said in your question you just wanted to know if it was empty...&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572293#M72254</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-23T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572294#M72255</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; I understand that strategy, but I need to know on implementing it within a Decide Activity. There's a scenario where the token is directed to connector 2 due to a Max Wait Timer setting. If it fails to retrieve an item from the list, it moves to a Decide activity. Here, it needs to count the entries from a different list in another process flow before making a decision. Is it feasible?&lt;/P&gt;
 &lt;P&gt;* I rephrased the question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572294#M72255</guid>
      <dc:creator>maryamh11</dc:creator>
      <dc:date>2024-02-23T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572295#M72256</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Let we say, you call your list "myList".&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;PRE&gt;List("myList").entries().length&lt;/PRE&gt;&lt;P&gt;returns number of entries.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:18:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572295#M72256</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-02-23T16:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Check entries's count of a list in Decide Activity</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572296#M72257</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 that worked, thanks!
&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/check-entries-s-count-of-a-list-in-decide-activity/m-p/13572296#M72257</guid>
      <dc:creator>maryamh11</dc:creator>
      <dc:date>2024-02-23T16:53:54Z</dc:date>
    </item>
  </channel>
</rss>

