<?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 to identify which event the Event triggered source listened to? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520684#M31660</link>
    <description>&lt;P&gt;For each event would the label values follow the sequence of the events added in the source? Because if this is the case, I would design my model in that manner.&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 13:20:40 GMT</pubDate>
    <dc:creator>pinakin_k</dc:creator>
    <dc:date>2018-05-24T13:20:40Z</dc:date>
    <item>
      <title>How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520680#M31656</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I have a process flow, where I am using one event triggered source activity to listen to 2 events. My objective is to identify the event that triggered it, so that I can reference it in my further process.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12007-eventtriggeredsource.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497027i4D04C728E1C7920C/image-size/large?v=v2&amp;amp;px=999" role="button" title="12007-eventtriggeredsource.png" alt="12007-eventtriggeredsource.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see in the picture, two events are listened to, and both are global table references.&lt;/P&gt;
&lt;P&gt;I want to identify, by using labels or any other similar identifier, which event was listened to, so that I can reference it in my further process. I don't want to use 2 event triggered sources.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 13:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520680#M31656</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-05-21T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520681#M31657</link>
      <description>&lt;P&gt;To reference the Event triggered, you can type token.Event, or token.("insert desired label name") in the Assign Event Object To box. This will assign the object that was fired to a label on the token.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12009-event-trigger-assign.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497025iB224378706CC5516/image-size/large?v=v2&amp;amp;px=999" role="button" title="12009-event-trigger-assign.png" alt="12009-event-trigger-assign.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 14:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520681#M31657</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-05-21T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520682#M31658</link>
      <description>&lt;P&gt;So, if i put token.Event, then how do I reference this in my further process. &lt;/P&gt;
&lt;P&gt;I plan on referencing the event in following manner&lt;/P&gt;
&lt;PRE&gt;if(token.firstevent?)
{
return 1;
}
else
{
return 2;
}&lt;/PRE&gt;
&lt;P&gt;So how do I name the token coming from each event? &lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 14:47:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520682#M31658</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-05-21T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520683#M31659</link>
      <description>&lt;P&gt;Try comparing the names, for instance one of your events was named TableEvent:&lt;/P&gt;
&lt;PRE&gt;if(token.Event.name=="TableEvent")
{
return 1;
}
else
{
return 2;
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 May 2018 14:54:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520683#M31659</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-05-21T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520684#M31660</link>
      <description>&lt;P&gt;For each event would the label values follow the sequence of the events added in the source? Because if this is the case, I would design my model in that manner.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 13:20:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520684#M31660</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-05-24T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520685#M31661</link>
      <description>&lt;P&gt;Each token created will have that label assigned to it from its source and the event that triggered the creation of that token.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 13:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520685#M31661</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-05-24T13:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520686#M31662</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12085-eventtriggeredsource.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497026iF2723F5FFBBC6BCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="12085-eventtriggeredsource.png" alt="12085-eventtriggeredsource.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It only has one assign event to Object, So I cannot give the label to each event&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:50:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520686#M31662</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-05-25T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520687#M31663</link>
      <description>&lt;P&gt;Regardless of how many events you listen to in the source activity, the "Assign Event Object" will assign a label with the value of the specific object that was triggered, and once it fires, the token moves on and does not listen to any other events that are triggered at the source.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 14:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520687#M31663</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-05-25T14:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520688#M31664</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/8187/joshuas.html" nodeid="8187"&gt;@Joshua S&lt;/A&gt; ok, but the source should listen to other events even if it listened to the first event. I want to do this because I have 15 event triggered sources, but i want to include all the events under one source, to make it simpler. I use 15 sources, which depict each machine. The sources operate on one simple sub flow. The tokens from each source have same label names but different label values, which get differentiated in the sub flow. &lt;/P&gt;
&lt;P&gt;Instead of all this i just want to use one event triggered source to listen to these events. As these events would be working simultaneously.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 17:49:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520688#M31664</guid>
      <dc:creator>pinakin_k</dc:creator>
      <dc:date>2018-05-25T17:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520689#M31665</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt; Here is a model I put together where there are several sources that filter into a queue. In my process flow the the Event-Triggered Source is then listening to each of those sources waiting for them to create an object. Let the process run a little and then click through the different tokens to see that their label "Event" has a different value for each token referencing the trigger source. &lt;A id="12095" href="https://answers.flexsim.com/storage/temp/12095-listening-to-several-events.fsm"&gt;listening-to-several-events.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 18:54:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520689#M31665</guid>
      <dc:creator>joshua_s</dc:creator>
      <dc:date>2018-05-25T18:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify which event the Event triggered source listened to?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520690#M31666</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/4687/pinakin.k.html" nodeid="4687"&gt;@Pinakin K&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Maybe you didn't understand what &lt;A rel="user" href="https://answers.flexsim.com/users/8187/joshuas.html" nodeid="8187"&gt;@Joshua S&lt;/A&gt; said?  He said, "&lt;STRONG&gt;Regardless&lt;/STRONG&gt; of how many events you listen to in the &lt;STRONG&gt;source activity&lt;/STRONG&gt;, the "Assign Event Object" will assign a label with the value of&lt;STRONG&gt; the specific object that was triggered&lt;/STRONG&gt;, and once it fires, &lt;STRONG&gt;the token moves on&lt;/STRONG&gt; and does not listen to any other events that are triggered at the source."&lt;/P&gt;&lt;P&gt;Maybe that last part about the token "does not listen to any other events" is what is confusing you?  The Source continues to listen for events. After an event is triggered, it creates a token with the labels on it and the token leaves the Source.  The Source is always listening for any all all events.  Does that clear it up?&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 18:59:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-identify-which-event-the-event-triggered-source-listened/m-p/13520690#M31666</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2018-05-25T18:59:26Z</dc:date>
    </item>
  </channel>
</rss>

