<?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 get token's labels on a subflow using Statistics Collector? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552326#M56680</link>
    <description>&lt;DIV class="fr-view clearfix"&gt; 
 &lt;P&gt;Hi, &lt;A rel="user" href="https://answers.flexsim.com/users/29530/ericm3.html" nodeid="29530"&gt;@Eric M&lt;/A&gt;! Perfect! That's works too. &lt;/P&gt; 
 &lt;P&gt;After some attempts I found out other way to do it. We can set RowValue as &lt;STRONG&gt;data.token.labels["SKU"].&lt;A rel="nofollow noopener noreferrer" href="http://value.as" target="_blank"&gt;value.as&lt;/A&gt;(Token).id&lt;/STRONG&gt; and it works too. A the column tab I did the same.Thanks!&lt;/P&gt; 
&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Aug 2021 13:11:57 GMT</pubDate>
    <dc:creator>yasmin_t2</dc:creator>
    <dc:date>2021-08-13T13:11:57Z</dc:date>
    <item>
      <title>How to get token's labels on a subflow using Statistics Collector?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552324#M56678</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;I'm working on a model that frequentely uses subflow and lists to simulate subprocess of one single product. This product has a label to reference its SKU that I'm using as value the token id. I intend to use this value as rows of my table in statistics collector, so I will be able to evaluate the process times of every SKU.&lt;/P&gt;
  &lt;P&gt;Happens that my statistic collector is not able to get the SKU value, and returns "Invalid ID" as value. I attached a simple model to represents what's the problem to be solved.&lt;/P&gt;
  &lt;P&gt;It's important to say that I wish to use the SKUs as rows in and out the subflow and list, so I could visualize all process as one.&lt;/P&gt;
  &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/42497-statisticscollector-example.fsm" target="_blank"&gt;StatisticsCollector_Example.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Aug 2021 21:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552324#M56678</guid>
      <dc:creator>yasmin_t2</dc:creator>
      <dc:date>2021-08-11T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get token's labels on a subflow using Statistics Collector?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552325#M56679</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/28046/yasmint2.html" nodeid="28046"&gt;@Yasmin Tavore&lt;/A&gt;, I changed the value of the assign labels activity to &lt;EM&gt;&lt;A rel="noopener noreferrer" href="http://token.id" target="_blank"&gt;token.id&lt;/A&gt; &lt;/EM&gt;which gets the actual token id number instead of a reference to the token node. This makes it so the value actually makes sense to the stats collector. There were a couple changes in the Stats Collector that I made as well. For the Row Value(s) section, add a ".value" at the end of the data.token.labels["SKU"] or simply replace it all by data.token.SKU (I did this both ways so you can see how either would work). &lt;/P&gt;
 &lt;P&gt;In the columns tab, I changed the Initial Time columns to be Event driven as opposed to Row Add driven and checked the boxes at the bottom so they are triggered by the correct event. Without this change, both columns recorded the same time, which is when the row was created. Changing it to be updated by the events gives you the time the event actually fires. Here's a &lt;A href="https://answers.flexsim.com/articles/105427/visualizing-the-logic-of-the-statistics-collector.html"&gt;pretty cool article&lt;/A&gt; that helps explain things a little more in depth if you're interested.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/42576-statisticscollector-example-1.fsm" target="_blank"&gt;statisticscollector-example_1.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Aug 2021 22:46:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552325#M56679</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-08-12T22:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get token's labels on a subflow using Statistics Collector?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552326#M56680</link>
      <description>&lt;DIV class="fr-view clearfix"&gt; 
 &lt;P&gt;Hi, &lt;A rel="user" href="https://answers.flexsim.com/users/29530/ericm3.html" nodeid="29530"&gt;@Eric M&lt;/A&gt;! Perfect! That's works too. &lt;/P&gt; 
 &lt;P&gt;After some attempts I found out other way to do it. We can set RowValue as &lt;STRONG&gt;data.token.labels["SKU"].&lt;A rel="nofollow noopener noreferrer" href="http://value.as" target="_blank"&gt;value.as&lt;/A&gt;(Token).id&lt;/STRONG&gt; and it works too. A the column tab I did the same.Thanks!&lt;/P&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:11:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-token-s-labels-on-a-subflow-using-statistics/m-p/13552326#M56680</guid>
      <dc:creator>yasmin_t2</dc:creator>
      <dc:date>2021-08-13T13:11:57Z</dc:date>
    </item>
  </channel>
</rss>

