<?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: Match labels in a combiner in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593003#M88492</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can activate Pull on Input Pane. A combiner need at least 2 input port connections. They can be from the same queue ahead of the combiner. &lt;BR /&gt;&lt;BR /&gt;You need a logic that allows every item type to enter through input port number 1. And any item Type entering the combiner by input port number greater than 1 must be equal to the item already present from input port number 1&lt;BR /&gt;&lt;BR /&gt;current.first.labels["Type"].value == item.Type&lt;BR /&gt;&lt;BR /&gt;This is a logical test statement to compare first already received item Type label and any other item being able to enter next.&lt;BR /&gt;&lt;BR /&gt;An tested item will be pulled if the return value is true by a value 1 or greater than 1. A tested item is rejected if the return value is 0 or seen as logical false.&lt;BR /&gt;&lt;BR /&gt;You can write the logical test statement directly in a return line for any port greater than 1 condition.&lt;/P&gt;&lt;P&gt;Pull Requirement&lt;/P&gt;&lt;P&gt;default header&lt;/P&gt;&lt;PRE&gt;Object current = ownerobject(c);
Object item = param(1);
int port =  param(2);&lt;/PRE&gt;&lt;P&gt;added source code&lt;/P&gt;&lt;PRE&gt;if (port == 1) return 1; // first item pull everything
if (port &amp;gt; 1) return item.Type == current.first.labels["Type"].value; // further items&lt;/PRE&gt;&lt;P&gt;You need to add any picklist option and click on the source code editor icon looking like a parchment roll. Edit the code to distinguish between first any following item entering the combiner.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 05 Dec 2023 09:13:35 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2023-12-05T09:13:35Z</dc:date>
    <item>
      <title>Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593001#M88490</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi, I am currently working on a model wher i hace two sources and it creates objects with two different number labels that goes from 1 to 8, in the process i need to combine these two objects in a combiner but i need that the number of both labels be the same, for example, i need to combine "DONANTE = 2 " = "ST=2", how can i do that. &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/76695-cambios-proceso.fsm" target="_blank"&gt;CAMBIOS PROCESO.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Dec 2023 12:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593001#M88490</guid>
      <dc:creator>est_cindyorj</dc:creator>
      <dc:date>2023-12-04T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593002#M88491</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P id="isPasted"&gt;Hey @Cindy, you could try using lists to do this.&lt;/P&gt;&lt;P&gt;First you can create two ItemLists that just keep track of a label.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701714326463.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521311iEFFD8D728F95B2F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701714326463.png" alt="1701714326463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can separate the queues so they keep items and push them to a list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701714400553.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521312i98C9081155D0C941/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701714400553.png" alt="1701714400553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701714418535.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521313iB7DF968B887E9C85/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701714418535.png" alt="1701714418535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can have a Process Flow that pulls any "Donante" from the list and then pull a matching ST from the STList. Once you have a reference to them, you can move them forward to their respective queues.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1701714467147.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521315i86A42F130D65C837/image-size/large?v=v2&amp;amp;px=999" role="button" title="1701714467147.png" alt="1701714467147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Dec 2023 18:28:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593002#M88491</guid>
      <dc:creator>kavika_faleumu</dc:creator>
      <dc:date>2023-12-04T18:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593003#M88492</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can activate Pull on Input Pane. A combiner need at least 2 input port connections. They can be from the same queue ahead of the combiner. &lt;BR /&gt;&lt;BR /&gt;You need a logic that allows every item type to enter through input port number 1. And any item Type entering the combiner by input port number greater than 1 must be equal to the item already present from input port number 1&lt;BR /&gt;&lt;BR /&gt;current.first.labels["Type"].value == item.Type&lt;BR /&gt;&lt;BR /&gt;This is a logical test statement to compare first already received item Type label and any other item being able to enter next.&lt;BR /&gt;&lt;BR /&gt;An tested item will be pulled if the return value is true by a value 1 or greater than 1. A tested item is rejected if the return value is 0 or seen as logical false.&lt;BR /&gt;&lt;BR /&gt;You can write the logical test statement directly in a return line for any port greater than 1 condition.&lt;/P&gt;&lt;P&gt;Pull Requirement&lt;/P&gt;&lt;P&gt;default header&lt;/P&gt;&lt;PRE&gt;Object current = ownerobject(c);
Object item = param(1);
int port =  param(2);&lt;/PRE&gt;&lt;P&gt;added source code&lt;/P&gt;&lt;PRE&gt;if (port == 1) return 1; // first item pull everything
if (port &amp;gt; 1) return item.Type == current.first.labels["Type"].value; // further items&lt;/PRE&gt;&lt;P&gt;You need to add any picklist option and click on the source code editor icon looking like a parchment roll. Edit the code to distinguish between first any following item entering the combiner.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 09:13:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593003#M88492</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-12-05T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593004#M88493</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You'll need to replace 'Type' in Joerg's example with your own labels - ST and DONANTE&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:23:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593004#M88493</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-12-05T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593005#M88494</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/76740-combine-pair-items.fsm" target="_blank"&gt;combine_pair_items.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593005#M88494</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-12-05T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Match labels in a combiner</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593006#M88495</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 21:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/match-labels-in-a-combiner/m-p/13593006#M88495</guid>
      <dc:creator>est_cindyorj</dc:creator>
      <dc:date>2023-12-05T21:13:28Z</dc:date>
    </item>
  </channel>
</rss>

