<?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: Pull multiple items (milkrun type model) in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488266#M6332</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/2385/xavi.a.html" nodeid="2385"&gt;@Xavi Aguirre&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Attached is your model with the changes that I made.  I added a label call "NumToPull' to both Queue10 and Queue2.  And I changed the OnMessage code in both of those queues.  To modify the number of items to put in the queue, all you would have to do is set that label sometime before calling the OnMessage trigger.  Hope that will get you to a place where you can apply it for your needs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/5268-rampla-2-jn1.fsm"&gt;rampla-2-jn1.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 17:10:15 GMT</pubDate>
    <dc:creator>jeff_nordgren</dc:creator>
    <dc:date>2017-02-16T17:10:15Z</dc:date>
    <item>
      <title>Pull multiple items (milkrun type model)</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488265#M6331</link>
      <description>&lt;A href="https://answers.flexsim.com/storage/attachments/5235-rampla-2.fsm"&gt;rampla-2.fsm&lt;/A&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to model a milkrun type delivery of materials, where a platform will travel to multiple locations and drop different kinds of materials.&lt;/P&gt;
&lt;P&gt;I "joined" a queue with a task executer to create the travelling platform and I'm pushing the contents into a list. At every location node, the idea is to trigger a pull with a message to drop the specific items.&lt;/P&gt;
&lt;P&gt;So far I have made it to drop 1 item of it's type at each location, but I would like to ask if anyone can help me in how to configure the Pull query to make it drop "N" units of itemtype 1, "X" units of itemtype 2, etc...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 10:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488265#M6331</guid>
      <dc:creator>xavi_aguirre</dc:creator>
      <dc:date>2017-02-16T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple items (milkrun type model)</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488266#M6332</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/2385/xavi.a.html" nodeid="2385"&gt;@Xavi Aguirre&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Attached is your model with the changes that I made.  I added a label call "NumToPull' to both Queue10 and Queue2.  And I changed the OnMessage code in both of those queues.  To modify the number of items to put in the queue, all you would have to do is set that label sometime before calling the OnMessage trigger.  Hope that will get you to a place where you can apply it for your needs.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/5268-rampla-2-jn1.fsm"&gt;rampla-2-jn1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:10:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488266#M6332</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2017-02-16T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pull multiple items (milkrun type model)</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488267#M6333</link>
      <description>&lt;P&gt;Thank you very much &lt;A rel="user" href="https://answers.flexsim.com/users/187/jeff.n.html" nodeid="187"&gt;@Jeff Nordgren&lt;/A&gt;. I modified it a bit, since it seems that the combo taskexecuter+queue was generating 2 messages on arrival to the node and pulling twice as many items as the label value. With limiting the number of message to the value of the itemsToPull label, It is working now! Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 08:30:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pull-multiple-items-milkrun-type-model/m-p/13488267#M6333</guid>
      <dc:creator>xavi_aguirre1</dc:creator>
      <dc:date>2017-02-17T08:30:22Z</dc:date>
    </item>
  </channel>
</rss>

