<?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: ¿How I can remove or send to a sink items from an incomplete batching? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-remove-or-send-to-a-sink-items-from-an-incomplete/m-p/13552966#M57163</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;One thought would be to use a User Event at time 1AM that releases all the items that are currently in the queue by calling the command "releaseitem()" on each item. I just tested the following code in a Script Console and it seemed to work:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35095-1607632154525.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504403iF85A6CCA86916676/image-size/large?v=v2&amp;amp;px=999" role="button" title="35095-1607632154525.png" alt="35095-1607632154525.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;If the queue needs to be reset for another batch arriving later after 1AM, then you may need to reset the current batch size property of the queue as well by adding this line of code to the end of the code snippit above:&lt;/P&gt;
 &lt;PRE&gt;obj.setProperty("currentbatchsize", 0);&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Dec 2020 20:29:19 GMT</pubDate>
    <dc:creator>cliff_king</dc:creator>
    <dc:date>2020-12-10T20:29:19Z</dc:date>
    <item>
      <title>¿How I can remove or send to a sink items from an incomplete batching?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-remove-or-send-to-a-sink-items-from-an-incomplete/m-p/13552965#M57162</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;Hey,&lt;/P&gt;
 &lt;P&gt;I have 6 queues with a target batch size of 120, but at the end of the model (1 AM) I have to remove all the items from this queue or send them to a sink because at this point of the model there are no more items to complete the batch and also I can't have any items at the end.&lt;/P&gt;
 &lt;P&gt;I can't use "Max Wait Time" or Process Flow. Just have to work with triggers or variables. It does not matter the quantity of the last batch.&lt;/P&gt;
 &lt;P&gt;Thanks for your attention.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/34898-modelofinal.fsm" target="_blank"&gt;ModeloFinal.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Dec 2020 23:23:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-remove-or-send-to-a-sink-items-from-an-incomplete/m-p/13552965#M57162</guid>
      <dc:creator>johan_sebastian_vda</dc:creator>
      <dc:date>2020-12-05T23:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: ¿How I can remove or send to a sink items from an incomplete batching?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-remove-or-send-to-a-sink-items-from-an-incomplete/m-p/13552966#M57163</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;One thought would be to use a User Event at time 1AM that releases all the items that are currently in the queue by calling the command "releaseitem()" on each item. I just tested the following code in a Script Console and it seemed to work:&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35095-1607632154525.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504403iF85A6CCA86916676/image-size/large?v=v2&amp;amp;px=999" role="button" title="35095-1607632154525.png" alt="35095-1607632154525.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;If the queue needs to be reset for another batch arriving later after 1AM, then you may need to reset the current batch size property of the queue as well by adding this line of code to the end of the code snippit above:&lt;/P&gt;
 &lt;PRE&gt;obj.setProperty("currentbatchsize", 0);&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Dec 2020 20:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-remove-or-send-to-a-sink-items-from-an-incomplete/m-p/13552966#M57163</guid>
      <dc:creator>cliff_king</dc:creator>
      <dc:date>2020-12-10T20:29:19Z</dc:date>
    </item>
  </channel>
</rss>

