<?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 Conditional Decide if Item with certain label is inside Queue? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-if-item-with-certain-label-is-inside-queue/m-p/13536370#M44093</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48364-decide-function.fsm" target="_blank"&gt;Decide_Function.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hello, &lt;/P&gt;
 &lt;P&gt;In my model I have two Queues for Material. One for new and full raw materials (Queue1) and one in which opened raw material drums are placed (Queue2). &lt;/P&gt;
 &lt;P&gt;For a dispensing activity of my operator I want a conditional decide in process flow which decides wether there is opened material in Queue2 or not. If there is the matching Material in Queue2 the operator should get it from there. If there is not, he should get it out of Queue1. It is guaranteed that the needed material is always either in Queue1 or Queue2.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;The Token for my operator activity in process flow has the label "RawMaterial1" with value "silver". Because thats, what the operator should get. Inside Queue2 is the item with the label on the 3D Cylinder "RawMaterial_3D" = "silver". In the conditional decide function I am asking:&lt;/P&gt;
 &lt;P&gt;Model.find("Queue2").Cylinder1.labels["RawMaterial_3D"].value == token.RawMaterial1.value &lt;/P&gt;
 &lt;P&gt;which ist not working. I possibly do not "speak" to the item in Queue 2 properly but I couldnt find any other questions here, which solved my problem. &lt;/P&gt;
 &lt;P&gt;I would really appreciate any help! I attached the test model. &lt;/P&gt;
 &lt;P&gt;Best wishes, &lt;/P&gt;
 &lt;P&gt;Marie&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 08 Feb 2022 08:53:16 GMT</pubDate>
    <dc:creator>lisa_marie_gl</dc:creator>
    <dc:date>2022-02-08T08:53:16Z</dc:date>
    <item>
      <title>Conditional Decide if Item with certain label is inside Queue?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-if-item-with-certain-label-is-inside-queue/m-p/13536370#M44093</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48364-decide-function.fsm" target="_blank"&gt;Decide_Function.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hello, &lt;/P&gt;
 &lt;P&gt;In my model I have two Queues for Material. One for new and full raw materials (Queue1) and one in which opened raw material drums are placed (Queue2). &lt;/P&gt;
 &lt;P&gt;For a dispensing activity of my operator I want a conditional decide in process flow which decides wether there is opened material in Queue2 or not. If there is the matching Material in Queue2 the operator should get it from there. If there is not, he should get it out of Queue1. It is guaranteed that the needed material is always either in Queue1 or Queue2.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;The Token for my operator activity in process flow has the label "RawMaterial1" with value "silver". Because thats, what the operator should get. Inside Queue2 is the item with the label on the 3D Cylinder "RawMaterial_3D" = "silver". In the conditional decide function I am asking:&lt;/P&gt;
 &lt;P&gt;Model.find("Queue2").Cylinder1.labels["RawMaterial_3D"].value == token.RawMaterial1.value &lt;/P&gt;
 &lt;P&gt;which ist not working. I possibly do not "speak" to the item in Queue 2 properly but I couldnt find any other questions here, which solved my problem. &lt;/P&gt;
 &lt;P&gt;I would really appreciate any help! I attached the test model. &lt;/P&gt;
 &lt;P&gt;Best wishes, &lt;/P&gt;
 &lt;P&gt;Marie&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:53:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-if-item-with-certain-label-is-inside-queue/m-p/13536370#M44093</guid>
      <dc:creator>lisa_marie_gl</dc:creator>
      <dc:date>2022-02-08T08:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Decide if Item with certain label is inside Queue?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-if-item-with-certain-label-is-inside-queue/m-p/13536371#M44094</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;"Model.find("Queue2").Cylinder1" tells FlexSim to read a label called "Cylinder1" on Queue2. To get a reference to the item either include the name in the find-command or use the subnodes syntax.&lt;/P&gt;&lt;P&gt;Model.find("Queue2/Cylinder1").labels["RawMaterial_3D"].value&lt;BR /&gt;Model.find("Queue2").subnodes["Cylinder1"].labels["RawMaterial_3D"].value&lt;BR /&gt;Model.find("Queue2").subnodes[1].labels["RawMaterial_3D"].value &lt;/P&gt;&lt;P&gt;In either case this assumes that there will always be exactly one item in the queue. It'd be better to use a for-loop to check all items in the queue for the correct label value. You can also "try" to pull from the list containing the items in Queue2 first by utilizing the "Use Max Wait Timer" option in the Pull from List activity.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48339-test-decide-function-2.fsm" target="_blank"&gt;Test_Decide_Function_2.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Feb 2022 09:57:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/conditional-decide-if-item-with-certain-label-is-inside-queue/m-p/13536371#M44094</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-02-08T09:57:11Z</dc:date>
    </item>
  </channel>
</rss>

