<?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: Queue Stuck in the Releasing State in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594912#M89906</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In general, whenever you have a case like this, where you want to re-check some condition, try to wait for the condition in the first place.&lt;/P&gt;&lt;P&gt;Here that means setting the queue to not release items by itself at all. Then react to each item entering with an Event-Triggered Source in Process Flow, have the token wait for the condition to be true, then release the item.&lt;/P&gt;&lt;P&gt;You currently also set the TR in each object's entry trigger. It would be better to initialize it once at the start of the model. Then only increment/decrement it when applicable (when an item is released or exits the chain of processors).&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84026-example-1.fsm" target="_blank"&gt;example_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Jun 2024 16:44:06 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2024-06-25T16:44:06Z</dc:date>
    <item>
      <title>Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594905#M89899</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.15 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;It looks like Queue10a is stuck in the releasing state because at first the condition I have set in the Send to Port was false. Eventually the condition does become true, but Queue10a does not want to release the item to its designated output port. I'm guessing it's because Queue10a needs to recheck the condition for the particular item, but I'm not sure how to execute. &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I have tried using ProcessFlow (EventTriggeredSource, Decide with the same condition, Move Object, Sink) and it works as intended, but the problem with this is the timing since I have other Objects with the same condition to send to port if the condition is met. When I have multiple objects checking the condition where they will send the item to designated port because for a second the condition is met. The Variable ends up with a value of -1 since two items were inputted into the system when there was only space for 1.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1718921033220.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524324i48A453CE79EF799C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1718921033220.png" alt="1718921033220.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I guess what I'm wondering is how can I get the items in Queue10a to move by rechecking the condition for that particular item. I hope this makes sense.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Software Version = 23.0.2&lt;/P&gt;
 &lt;P&gt;Thank you,&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jun 2024 22:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594905#M89899</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-20T22:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594906#M89900</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;Have you tried using a zone with max content one? The structure should be very similar: &lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: "&gt;EventTriggeredSource, Enter Zone, Decide with the same condition, Move Object, Exit Zone, Sink. This way, you make sure that there's only one item at a time evaluating if it can enter the next object and the rest of them will enter the decide activity once this first one has already left, returning false and not exiting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="isPasted"&gt;I hope it helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jun 2024 06:51:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594906#M89900</guid>
      <dc:creator>Paula_LG</dc:creator>
      <dc:date>2024-06-21T06:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594907#M89901</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Paula,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Yes, I have utilized the Zone feature; however, my variable still reaching -1 meaning that two items were meeting the condition and released two items at once when I only had room for one item. This is mostly due to my 3d objects having the same condition (Queues and/or Processors) and for that one second where the condition is true any object or process flow decide activity executing this condition will release its object. At times multiple items are released resulting in -1.&lt;/P&gt;
 &lt;P&gt;I'm wondering if there is a way where we can execute the condition again for the items in the queue. It looks as if the condition was initiated when it first arrived in the queue but it was false so the item stays in the queue. After that, the item stays in the queue forever because there is nothing telling the queue to check the condition again for that particular item.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you,&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594907#M89901</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-24T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594908#M89902</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;For some reason, I have the same code snippet implemented in the processor (far right of the video) that decremented the Current value from 2 to 1. In the processor (far left of the video) that did not execute the code snippet which needed to decrement the Current value from 1 to 0. Instead, the next time the code snippet is executed at another object then it realizes we have -1 in the system (inputting two items when the value is at 1.) Why is the code snippet trigger on entry not working? It works every time before this, but at this particular time it decides not to work.&lt;/P&gt;
 &lt;P&gt;&lt;SPAN class="fr-video fr-dvb fr-draggable"&gt;
   &lt;VIDEO controls="" src="https://forums.autodesk.com/storage/attachments/83988-2024-06-24-16-22-45.mp4"&gt;
    Your browser does not support HTML5 video.
   &lt;/VIDEO&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jun 2024 23:28:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594908#M89902</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-24T23:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594909#M89903</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I think I figured out what the problem was - the snippet code counts all the subnodes.length of each processor I call out that I need to maintain. However, when an operator is transporting the unit from one processor to another, the subnodes.length command does not count it when I need it to count since the item is still within the same operation and utilizing the same resource (trackedvariable). &lt;/P&gt;
 &lt;P&gt;Now, another issue occurs where all the available spaces in the tracked variable are accounted for at 0. I stop the input of the processors affected with .input.stop, but since the task sequence has been generated for this particular operator it will continue until it finishes its task and load the item on the processor (and sabotage the count and turn the count to -1) although the processor's input is stopped. Is there a way for the operator to reevaluate the situation.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1719276196006.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524323i302EE51DE3272910/image-size/large?v=v2&amp;amp;px=999" role="button" title="1719276196006.png" alt="1719276196006.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 00:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594909#M89903</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-25T00:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594910#M89904</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;In theory that would be probably be possible but I am sure that there must be an easier way to handle this.&lt;P&gt;Could you explain a bit more about what you are trying to achieve in the model? It looks like you are trying to limit the amount of items present in a chain of processors. The tracked variable denotes how many processors of some type are available?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:23:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594910#M89904</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-25T06:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594911#M89905</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'm going back to square one on this model. There is a queue with a Conditional Port as the Send to Port. When the condition is false the item stays in the queue, but at some point the condition becomes true. However; when the condition becomes true, the initial item that had a false condition does not move. Rather the new item going through the queue will be sent through the port.&lt;/P&gt;
 &lt;P&gt;How can I send to port the items in the queue when the condition eventually becomes true? Is there a way to re-execute the condition for the item stuck in the queue?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Please see attached model for an example. As you can see all the items that failed the condition and have been accumulated in the queue will stay there forever because of the send to port condition. If you remove the conditional port to first available, then it works the way I want it to but the tracked variable goes past 0 to -1 which is wrong.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84024-example.fsm" target="_blank"&gt;Example.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 15:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594911#M89905</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-25T15:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594912#M89906</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In general, whenever you have a case like this, where you want to re-check some condition, try to wait for the condition in the first place.&lt;/P&gt;&lt;P&gt;Here that means setting the queue to not release items by itself at all. Then react to each item entering with an Event-Triggered Source in Process Flow, have the token wait for the condition to be true, then release the item.&lt;/P&gt;&lt;P&gt;You currently also set the TR in each object's entry trigger. It would be better to initialize it once at the start of the model. Then only increment/decrement it when applicable (when an item is released or exits the chain of processors).&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/84026-example-1.fsm" target="_blank"&gt;example_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 16:44:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594912#M89906</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-25T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Queue Stuck in the Releasing State</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594913#M89907</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Looks good, this method should work just fine on the prime model. Thank you Felix and as always, its much appreciated!
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2024 17:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/queue-stuck-in-the-releasing-state/m-p/13594913#M89907</guid>
      <dc:creator>adrian_moraZLCQV</dc:creator>
      <dc:date>2024-06-25T17:18:05Z</dc:date>
    </item>
  </channel>
</rss>

