<?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: When Itemtype exits, it repleneshes with the same item type? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563880#M65846</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/614/sam.s.html" nodeid="614"&gt;@Sam Stubbs&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Hi Sam, Can't seem to get it. Does the fixedresource process flow behave differently than a general process flow. I get quite a few errors when i run it. I have a feeling i'm close and it just needs a simple modification if you can help. Thanks! I attached a basic example just to get it work, then i can try to convert it to the more complicated model. &lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4818-test.fsm"&gt;test.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 19:44:19 GMT</pubDate>
    <dc:creator>bryan_suharik</dc:creator>
    <dc:date>2017-01-20T19:44:19Z</dc:date>
    <item>
      <title>When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563875#M65841</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello, i'm searching for a simple solution via scipt to replenish a queue when an itemtype exits. It needs to replenish with the same itemtype that left the Queue. &lt;/P&gt;
&lt;P&gt;Queue 1 has a "do not release" send to port as i don't want it to release until an item type leaves queue 2. But there are 5 different item types, so i don't want the pull to just pull the next in line item type from queue 1. &lt;/P&gt;
&lt;P&gt;I've tried with the exit triggers to activate the pull requirement. But i can't figure out how the pull requirement can determine what itemtype just left Queue2 and call that one. Perhaps the sendmessage to Queue 1 from Queue 2 would be a good strategy, but i don't know how that would look via code. &lt;/P&gt;
&lt;P&gt;QUEUE 1 ---&amp;gt; QUEUE 2 (leaving queue)&lt;/P&gt;
&lt;P&gt;My entire model is built from GUI script on opening, so code solution is most desired. &lt;/P&gt;
&lt;P&gt; Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 04:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563875#M65841</guid>
      <dc:creator>bryan_suharik</dc:creator>
      <dc:date>2017-01-15T04:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563876#M65842</link>
      <description>&lt;P&gt;One option, rather than use a script, is to use Process Flow.  Have all of your items be pushed to a list, instead of flowing straight into the queue.   Then have an event triggered source in your Process Flow, each time the trigger happens you can pull from the list and use a query to match the item type to the one that left.&lt;/P&gt;&lt;P&gt;Here's a quick example I created:&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4730-replenishitemtype.fsm"&gt;replenishitemtype.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 18:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563876#M65842</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2017-01-16T18:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563877#M65843</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/614/sam.s.html" nodeid="614"&gt;@Sam Stubbs&lt;/A&gt;
&lt;P&gt;Hi Sam, thanks for all the help with this model. I've worked on it last couple days since your last recommendation and haven't made much progress. I attached the model. &lt;/P&gt;
&lt;P&gt;What i need is for each Queue (wellsite 1,2,3,4,etc) to have that same process flow thats on wellsite 1. But i can't manually assign it to each one because the amount of wellsites is user defined by the GUI at the model setup. So i need a way to build a process flow like you've done in the attached, but then assign it to all of the wellsites upon creation if that makes sense. &lt;/P&gt;
&lt;P&gt;THanks!&lt;/P&gt;
&lt;P&gt;Bryan&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 18:29:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563877#M65843</guid>
      <dc:creator>bryan_suharik</dc:creator>
      <dc:date>2017-01-19T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563878#M65844</link>
      <description>&lt;P&gt;Could you not have the process Flow be a Fixed Resource process Flow instead of a General one?  Then just attach the desired objects (in this case the Well Site queues).   In the Event Triggered source you can then just write "current" for the triggering object.  Then it should run this process flow for each Well.&lt;/P&gt;&lt;P&gt;Alternatively, you could add the Well Site to a group, and then just reference the Group in the triggered object too.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:36:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563878#M65844</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2017-01-19T20:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563879#M65845</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/614/sam.s.html" nodeid="614"&gt;@Sam Stubbs&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;That sounds like a good option. I'll see if i can get that to work. &lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563879#M65845</guid>
      <dc:creator>bryan_suharik</dc:creator>
      <dc:date>2017-01-19T20:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563880#M65846</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/614/sam.s.html" nodeid="614"&gt;@Sam Stubbs&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Hi Sam, Can't seem to get it. Does the fixedresource process flow behave differently than a general process flow. I get quite a few errors when i run it. I have a feeling i'm close and it just needs a simple modification if you can help. Thanks! I attached a basic example just to get it work, then i can try to convert it to the more complicated model. &lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/4818-test.fsm"&gt;test.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 19:44:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563880#M65846</guid>
      <dc:creator>bryan_suharik</dc:creator>
      <dc:date>2017-01-20T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563881#M65847</link>
      <description>&lt;P&gt;Yes they are different in some ways.   First of all you need to attach objects to a FR Process Flow.  This process flow will then create an instance of itself for each attached object.  &lt;/P&gt;&lt;P&gt;I've reattached your previous model with this change so you can see  the difference.   IN the event triggered source I just reference which Well Site with 'current' since I've attached each Well Site Queue to the Process Flow.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/temp/4819-bryansuharik.fsm"&gt;bryansuharik.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 19:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563881#M65847</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2017-01-20T19:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563882#M65848</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/614/sam.s.html" nodeid="614"&gt;@Sam Stubbs&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;but is there a way to attach the queues on trigger or set up of model automatically. The user builds the amount of wellsites on set-up, and it can't be a manual task to go in and attach the queues to that fixed process flow. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563882#M65848</guid>
      <dc:creator>bryan_suharik</dc:creator>
      <dc:date>2017-01-20T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: When Itemtype exits, it repleneshes with the same item type?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563883#M65849</link>
      <description>&lt;P&gt;If you need to add them dynamically, then you should go with the other solution, to add the Well Sites to a group.  And keep the general Process Flow but reference the group members instead of each individual object. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4820-groupobjects.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494805iFC704A645D0AC28B/image-size/large?v=v2&amp;amp;px=999" role="button" title="4820-groupobjects.png" alt="4820-groupobjects.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can add and remove group members dynamically.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/temp/4821-bryansuharik.fsm"&gt;bryansuharik.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/when-itemtype-exits-it-repleneshes-with-the-same-item-type/m-p/13563883#M65849</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2017-01-20T20:14:58Z</dc:date>
    </item>
  </channel>
</rss>

