<?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 if condition in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514049#M26435</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add in if condition in my pareallel process. Because in the "Queue_1" should stop if it has more than 3 pieces &lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2019 11:04:21 GMT</pubDate>
    <dc:creator>kilian_k</dc:creator>
    <dc:date>2019-12-19T11:04:21Z</dc:date>
    <item>
      <title>if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514049#M26435</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add in if condition in my pareallel process. Because in the "Queue_1" should stop if it has more than 3 pieces &lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 11:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514049#M26435</guid>
      <dc:creator>kilian_k</dc:creator>
      <dc:date>2019-12-19T11:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514050#M26436</link>
      <description>&lt;P&gt;*more than 3 pieces&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 11:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514050#M26436</guid>
      <dc:creator>kilian_k</dc:creator>
      <dc:date>2019-12-19T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514051#M26437</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/18643/kiliank.html" nodeid="18643"&gt;@Kilian K&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;When Queue_1 has more than 3 pieces, what process do you want to stop? Once it is stopped, when will it start again?&lt;/P&gt;&lt;P&gt;I would use an Event-Triggered Source that listens to "On Content Change". This will create a token that can be used with a Custom Code Activity to stop whatever process you like, close an input/output, etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24361-on-content-change.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500873i7E66869568C03844/image-size/large?v=v2&amp;amp;px=999" role="button" title="24361-on-content-change.png" alt="24361-on-content-change.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:12:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514051#M26437</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2019-12-19T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514052#M26438</link>
      <description>&lt;P&gt;The process before the queue_1, so the multiporcessor should stopp. Once it is stopped it should start if in the queue_1 has lower than 3 pieces &lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:19:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514052#M26438</guid>
      <dc:creator>kilian_k</dc:creator>
      <dc:date>2019-12-19T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514053#M26439</link>
      <description>&lt;P&gt;Do you have any example file for to me. Because I am not so familiar with the "process flow" &lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514053#M26439</guid>
      <dc:creator>kilian_k</dc:creator>
      <dc:date>2019-12-19T16:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: if condition</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514054#M26440</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/18643/kiliank.html" nodeid="18643"&gt;@Kilian K&lt;/A&gt;&lt;P&gt;Yes, I have attached an updated version of your model to this comment as well as an example model that shows it more clearly. Let me know if this is what you're hoping the behavior to be. I used an Event-Triggered Source to listen to when the Queue has 3 or more items (shown in original reply). If it does, the activity creates a token that moves into a Custom Code activity that stops the Multiprocessor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24362-stop-object-custom-code.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500874iAF20161897CD389C/image-size/large?v=v2&amp;amp;px=999" role="button" title="24362-stop-object-custom-code.png" alt="24362-stop-object-custom-code.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then the token moves to a Wait for Event activity that listens for the content of the queue to drop below 3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24363-wait-for-event-less-3.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500875i8D64E2DD415817A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="24363-wait-for-event-less-3.png" alt="24363-wait-for-event-less-3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When this occurs, the token moves to a Custom Code activity that resumes the Multiprocessor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="24364-resume-multiprocessor.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500876i26ADB0F66680935C/image-size/large?v=v2&amp;amp;px=999" role="button" title="24364-resume-multiprocessor.png" alt="24364-resume-multiprocessor.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example Model: &lt;A id="24365" href="https://answers.flexsim.com/storage/temp/24365-stop-processor-example.fsm"&gt;stop-processor-example.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 17:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-condition/m-p/13514054#M26440</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2019-12-19T17:04:03Z</dc:date>
    </item>
  </channel>
</rss>

