<?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: Referring contents of the rack with respect to the label in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586212#M83123</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can refer to the items as &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/BasicModelingFunctions/BasicModelingFunctions.html#referencing" target="_blank"&gt;subnodes&lt;/A&gt; of the rack. So you could loop through all items in the rack and compare the type values in the &lt;STRONG&gt;Send to Port&lt;/STRONG&gt; code. Depending on whether an item is found or not, you send the item/customer to a different output. I would implement this in a queue, since with the combiner you would also have to deal with prematurely releasing the container object.&lt;/P&gt;&lt;P&gt;Apart from using subnodes, you can also query items in storage objects. &lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-findItem"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-findItem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This would essentially replace the for-loop you would need in the first case with a single command.&lt;/P&gt;&lt;P&gt;Lastly, you could use a list and Process Flow. Items entering the rack are pushed to a global list. When a customer enters the queue, a token is created in the Process Flow. This token tries to pull a matching item from the list. If it can't do so within the maximum wait time, the customer is send to the second sink, otherwise the item is moved to the customer and he is send to the first sink.&lt;/P&gt;&lt;P&gt;This method offers the most flexibility and is the fastest to set up, which is why I would personally use this approach.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/68866-model-1-fm.fsm" target="_blank"&gt;model-1-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 May 2023 08:35:16 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2023-05-30T08:35:16Z</dc:date>
    <item>
      <title>Referring contents of the rack with respect to the label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586211#M83122</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Basically, I have customers arriving at a shop and they are labelled upon creation with the same label with the contents of my "Refrigerator". A combiner is used to combine matching labels. The problem is if there are no contents in the rack with the same label as the customer that arrived in the combiner, the customer does not leave the combiner and the simulation is stuck.&lt;/P&gt;
 &lt;P&gt;I'm just a beginner at FlexSim and my problem is if there is a way to refer on the contents of the rack and it will be used for conditional ports in a queue or a combiner so that if there is no matching label on the rack, it will go to a specific output port. If there are also other workarounds to making this work, please do suggest too &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Hope someone can help me with this. Thanks!&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1685425837390.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517367iFA808C1B62F477B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1685425837390.png" alt="1685425837390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/68847-model-1.fsm" target="_blank"&gt;Model 1.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 05:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586211#M83122</guid>
      <dc:creator>gpaologuiao</dc:creator>
      <dc:date>2023-05-30T05:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Referring contents of the rack with respect to the label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586212#M83123</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can refer to the items as &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/BasicModelingFunctions/BasicModelingFunctions.html#referencing" target="_blank"&gt;subnodes&lt;/A&gt; of the rack. So you could loop through all items in the rack and compare the type values in the &lt;STRONG&gt;Send to Port&lt;/STRONG&gt; code. Depending on whether an item is found or not, you send the item/customer to a different output. I would implement this in a queue, since with the combiner you would also have to deal with prematurely releasing the container object.&lt;/P&gt;&lt;P&gt;Apart from using subnodes, you can also query items in storage objects. &lt;A id="isPasted" href="https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-findItem"&gt;https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.System.html#Method-findItem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This would essentially replace the for-loop you would need in the first case with a single command.&lt;/P&gt;&lt;P&gt;Lastly, you could use a list and Process Flow. Items entering the rack are pushed to a global list. When a customer enters the queue, a token is created in the Process Flow. This token tries to pull a matching item from the list. If it can't do so within the maximum wait time, the customer is send to the second sink, otherwise the item is moved to the customer and he is send to the first sink.&lt;/P&gt;&lt;P&gt;This method offers the most flexibility and is the fastest to set up, which is why I would personally use this approach.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/68866-model-1-fm.fsm" target="_blank"&gt;model-1-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 08:35:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586212#M83123</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-05-30T08:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Referring contents of the rack with respect to the label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586213#M83124</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Note that if you have a very large number of items to draw in racks then you would use Virtualized Items for which you would need to use the storage system queries or store references to the Storage.Items, not the subnodes.&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 09:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586213#M83124</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-05-30T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Referring contents of the rack with respect to the label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586214#M83125</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42902/gpaologuiao.html" nodeid="42902"&gt;@mauser&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of 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 comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:50:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referring-contents-of-the-rack-with-respect-to-the-label/m-p/13586214#M83125</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-06-02T13:50:46Z</dc:date>
    </item>
  </channel>
</rss>

