<?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: Why is my Wait For Event not working as expected? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563324#M65391</link>
    <description>&lt;P&gt;Can you please post your model with each question? As we can better see your problems in the model. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 16:01:33 GMT</pubDate>
    <dc:creator>zac_h_adsk</dc:creator>
    <dc:date>2019-07-31T16:01:33Z</dc:date>
    <item>
      <title>Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563323#M65390</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21108-waitforevent.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499802i7BC06E31F577A03B/image-size/large?v=v2&amp;amp;px=999" role="button" title="21108-waitforevent.jpg" alt="21108-waitforevent.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the image, just before a token enters the Wait For Event, it creates a token (an independent copy) which enters a loop. When the loop is finished, the Wait For Event Activity should fire IF the token.Unit value is a match. As you can see, the token made it to the delay, but the other token has not been released from the Wait Activity. And while not in the image, I've confirmed that the value of token.Unit reference the same object. &lt;BR /&gt;I've tried every conceivable combination of inputs in the Label Matching/Assignment, but it never allows the token to progress (except when there are NO conditions at all, but I absolutely need that condition). Is my syntax for the Label Matching/Assignment incorrect? (I've also tried token.Unit as the label name, and "match value" and those didn't work either)&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:42:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563323#M65390</guid>
      <dc:creator>aaron_c</dc:creator>
      <dc:date>2019-07-31T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563324#M65391</link>
      <description>&lt;P&gt;Can you please post your model with each question? As we can better see your problems in the model. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:01:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563324#M65391</guid>
      <dc:creator>zac_h_adsk</dc:creator>
      <dc:date>2019-07-31T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563325#M65392</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/14783/zacharyh.html" nodeid="14783"&gt;@Zac H&lt;/A&gt;, the attached model has the same problem.&lt;A id="21109" href="https://answers.flexsim.com/storage/temp/21109-wait-for-event-match-token.fsm"&gt;wait-for-event-match-token.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563325#M65392</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-07-31T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563326#M65393</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/14783/zacharyh.html" nodeid="14783"&gt;@Zac H&lt;/A&gt; I'd have to create a model with no confidential info in it, but the model that &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;/A&gt; posted, as he said, is experiencing the exact issue.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 16:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563326#M65393</guid>
      <dc:creator>aaron_c</dc:creator>
      <dc:date>2019-07-31T16:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563327#M65394</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/13607/aaronc.html" nodeid="13607"&gt;@Aaron C&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The problem you are having has to do with how the "Wait for Event" matching operation works.&lt;/P&gt;&lt;P&gt;From the manual's definition of how "match" works, it says "This will match the label's existing value to the parameter that is being referenced. The token will only finish the activity when the event fires AND the event's parameter matches the value of the token's label."&lt;/P&gt;&lt;P&gt;What this means is that "match" matches a parameter to a label you specify.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21111-capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499797iEBEE3E0B214C3BB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="21111-capture.png" alt="21111-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The parameter in this case is the token that triggered the event (circled in blue), not a label on that token.  In order to match with the token itself, you need a reference to that token from your original token.&lt;/P&gt;&lt;P&gt;I did that here by assigning the newly created token to token.Unit so that the parent token has a reference to it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21112-capture2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499799iA32AD0247A1F7FC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="21112-capture2.png" alt="21112-capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's an updated version of Jorg's model with this fix working: &lt;A id="21113" href="https://answers.flexsim.com/storage/attachments/21113-matchtokenanswer.fsm"&gt;matchtokenanswer.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563327#M65394</guid>
      <dc:creator>joseph_g3</dc:creator>
      <dc:date>2019-07-31T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563328#M65395</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/15415/leslieh.html" nodeid="15415"&gt;@leslie H&lt;/A&gt; - good info ^&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:44:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563328#M65395</guid>
      <dc:creator>aaron_c</dc:creator>
      <dc:date>2019-07-31T17:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563329#M65396</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/14704/josephg3.html" nodeid="14704"&gt;@Joseph Gillespie&lt;/A&gt; Thanks! Works perfect. Once I wrapped my head around it, it was an easy fix.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563329#M65396</guid>
      <dc:creator>aaron_c</dc:creator>
      <dc:date>2019-07-31T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563330#M65397</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/13607/aaronc.html" nodeid="13607"&gt;@Aaron C&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Glad to be of help!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:51:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/13563330#M65397</guid>
      <dc:creator>joseph_g3</dc:creator>
      <dc:date>2019-07-31T17:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Wait For Event not working as expected?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/14062298#M100498</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17309150"&gt;@joseph_g3&lt;/a&gt;&amp;nbsp;Hi, i am working on same and in my case i have mapped labels to token on both side on the delay side and on waitforevet side, still its not working, what might be the reason, sharing screenshot for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waitevent ss.jpg" style="width: 397px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1627596i4E8F5DDFB9E6067A/image-dimensions/397x217?v=v2" width="397" height="217" role="button" title="waitevent ss.jpg" alt="waitevent ss.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2026-03-21 141724.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1627597i1262641AAF3DE254/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2026-03-21 141724.jpg" alt="Annotation 2026-03-21 141724.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2026 12:34:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-is-my-wait-for-event-not-working-as-expected/m-p/14062298#M100498</guid>
      <dc:creator>siddheshtilekar9</dc:creator>
      <dc:date>2026-03-21T12:34:08Z</dc:date>
    </item>
  </channel>
</rss>

