<?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: Issue in release the token from wait for event in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485658#M4232</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When multiple tokens are waiting for the same event of the same object(s), the activity will release all tokens unless you have a way to filter what tokens are released. Usually, you would use the operations for “Match” or “Match Value” for this. Then tokens that match some aspect of the event data will be released instead. Match and Match Value are similar but with a key difference. Since you asked about it here’s how they work:&lt;/P&gt;&lt;P&gt;The Match operation expects a label on the token to have data that can match the event data for the event. In The case of OnEntry you can either match with the Flowitem that entered the object or the Input port on the object the item arrived on. So you would choose a label on the token whose data is either a reference to the item entering the queue or a label that has number data that represents an input port on the Queue. The token with the matching data is then released.&lt;/P&gt;&lt;P&gt;When using Match Value, rather than choosing a label with the matching data, you would type in the value you want to match explicitly into the Label name/Value column. For example if you were matching based on port connection you would type the number 2 into the column if the OnEntry event fired for port 2 on the Queue.&lt;/P&gt;&lt;P&gt;In your case however, you don’t have a way to match up very well to either of those event data that the OnEntry event offers. The tokens have no association with the items, and all the queues just have the 1 input port so you can’t match on that either.&lt;/P&gt;&lt;P&gt;However you do have a reference to each queue object on the tokens using your QueueName label, this gives a way to do what you want by changing how you listen to the OnEntry event. Rather than listening the Group or each Queue individually, in the Wait for Event activity’s Object field put in your label token.QueueName. That way each token only listens to the queue they are assigned to rather than listening to all the queues.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 06 Apr 2022 15:19:29 GMT</pubDate>
    <dc:creator>regan_blackett</dc:creator>
    <dc:date>2022-04-06T15:19:29Z</dc:date>
    <item>
      <title>Issue in release the token from wait for event</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485657#M4231</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In process flow I have created 3 tokens and in 3-D model I have 3 staging queues so item enter in the staging queue at different time. I need to understand how to execute the two methods.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method 1: &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In current logic, all three tokens exit the wait for event when first item enter the queue1 but the logic which I am expecting is.&lt;/P&gt;&lt;P&gt;token id 1 should exit the “wait for event” when the item enters in queue 1&lt;/P&gt;&lt;P&gt;token id 2 should exit the “wait for event” when the item enters in queue 2&lt;/P&gt;&lt;P&gt;token id 3 should exit the “wait for event” when the item enters in queue 3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Method 2:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using group logic in “wait for event” so in current logic all threes token exits the wait for event when first item enters the queue1 but the logic which I am expecting is.&lt;/P&gt;&lt;P&gt;token id 1 should exit the “wait for event” when the item enters in queue 1&lt;/P&gt;&lt;P&gt;token id 2 should exit the “wait for event” when the item enters in queue 2&lt;/P&gt;&lt;P&gt;token id 3 should exit the “wait for event” when the item enters in queue 3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Note:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would like to know when we have to use the “match value” in wait for event&lt;/P&gt;&lt;P&gt;Thanks for your valuable answer &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/50713-wait-for-event-sample-model.fsm" target="_blank"&gt;Wait For Event Sample Model.fsm&lt;/A&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/50709-matchvalue.png" target="_blank"&gt;MatchValue.PNG&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:27:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485657#M4231</guid>
      <dc:creator>gilbertjerald1993</dc:creator>
      <dc:date>2022-04-06T14:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in release the token from wait for event</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485658#M4232</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When multiple tokens are waiting for the same event of the same object(s), the activity will release all tokens unless you have a way to filter what tokens are released. Usually, you would use the operations for “Match” or “Match Value” for this. Then tokens that match some aspect of the event data will be released instead. Match and Match Value are similar but with a key difference. Since you asked about it here’s how they work:&lt;/P&gt;&lt;P&gt;The Match operation expects a label on the token to have data that can match the event data for the event. In The case of OnEntry you can either match with the Flowitem that entered the object or the Input port on the object the item arrived on. So you would choose a label on the token whose data is either a reference to the item entering the queue or a label that has number data that represents an input port on the Queue. The token with the matching data is then released.&lt;/P&gt;&lt;P&gt;When using Match Value, rather than choosing a label with the matching data, you would type in the value you want to match explicitly into the Label name/Value column. For example if you were matching based on port connection you would type the number 2 into the column if the OnEntry event fired for port 2 on the Queue.&lt;/P&gt;&lt;P&gt;In your case however, you don’t have a way to match up very well to either of those event data that the OnEntry event offers. The tokens have no association with the items, and all the queues just have the 1 input port so you can’t match on that either.&lt;/P&gt;&lt;P&gt;However you do have a reference to each queue object on the tokens using your QueueName label, this gives a way to do what you want by changing how you listen to the OnEntry event. Rather than listening the Group or each Queue individually, in the Wait for Event activity’s Object field put in your label token.QueueName. That way each token only listens to the queue they are assigned to rather than listening to all the queues.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:19:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485658#M4232</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2022-04-06T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in release the token from wait for event</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485659#M4233</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/215/regan.b.html" nodeid="215"&gt;@Regan Blackett&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for your detail answer I have tried out as you said to refer the QueueName in Object field and it's working But for match and match value can you give me a sample model that would be very useful for me. &lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:43:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485659#M4233</guid>
      <dc:creator>gilbertjerald1993</dc:creator>
      <dc:date>2022-04-07T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in release the token from wait for event</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485660#M4234</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/50759-wait-for-event-operations.fsm" target="_blank"&gt;wait for event operations.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485660#M4234</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2022-04-07T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in release the token from wait for event</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485661#M4235</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Thanks for your answer&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Apr 2022 03:31:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/issue-in-release-the-token-from-wait-for-event/m-p/13485661#M4235</guid>
      <dc:creator>gilbertjerald1993</dc:creator>
      <dc:date>2022-04-08T03:31:54Z</dc:date>
    </item>
  </channel>
</rss>

