<?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: Referencing an object from central port conection on Process Flow in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528612#M37840</link>
    <description>&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;I think Fixed Resource is the way to go in this case.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 15:02:03 GMT</pubDate>
    <dc:creator>julio_r</dc:creator>
    <dc:date>2017-06-23T15:02:03Z</dc:date>
    <item>
      <title>Referencing an object from central port conection on Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528610#M37838</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to reference an operator linked to a decision port with a central connection instead of the regular direct object reference  (the one the eye drop gives) inside process flow.&lt;/P&gt;&lt;P&gt;I tried token.current.centerObjects[2] but is not a valid reference. I send the model with the regular reference. Thank you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/7183-prueba2.fsm"&gt;prueba2.fsm&lt;/A&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7185-pregunta.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495587i1003041C2A5DA014/image-size/large?v=v2&amp;amp;px=999" role="button" title="7185-pregunta.png" alt="7185-pregunta.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 00:40:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528610#M37838</guid>
      <dc:creator>julio_r</dc:creator>
      <dc:date>2017-06-23T00:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing an object from central port conection on Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528611#M37839</link>
      <description>&lt;P&gt;Hi Julio,&lt;/P&gt;&lt;P&gt;Hopefully I understood your question correctly: you have an event-triggered source that listens to an event on the Decision Point, and you would like to access the Decision Point's center objects later in the flow.&lt;/P&gt;&lt;P&gt;Since you have a General Process Flow with a hardcoded reference, you can of course always use &lt;/P&gt;&lt;PRE&gt;model.find("/DP2").as(Object).centerObjects[1]&lt;/PRE&gt;&lt;P&gt;Another option is to have the event triggered source assign a label with the Decision Point. The source has an option "Assign Event Object To" which will assign the object that triggered the event (in this case DP2) to a token label.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7186-assign-event-object-to.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1495585iE4C3A0817DC8FCC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="7186-assign-event-object-to.png" alt="7186-assign-event-object-to.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you do that, you can use the label to access the center objects&lt;/P&gt;&lt;PRE&gt;token.event.as(Object).centerObjects[1]&lt;/PRE&gt;&lt;P&gt;If you need the same logic for multiple decision points, you can consider turning the whole thing into a Fixed Resource Process Flow, in that case you can change the event source to wait for OnArrival of &lt;EM&gt;current&lt;/EM&gt;, and access the center objects simply through&lt;/P&gt;&lt;PRE&gt;current.centerObjects[1]&lt;/PRE&gt;&lt;P&gt;Note that in the first two examples, model.find("/DP2") or token.event, you get a reference to a treenode. If you want to access the centerObjects, you need to tell FlexSim that you are actually dealing with the specific type of treenode called Object, by inserting &lt;EM&gt;.as(Object)&lt;/EM&gt; into the expression. In the Fixed Resource Process Flow code headers, &lt;I&gt;current&lt;/I&gt; is already declared as Object so you can just write current.centerObjects directly.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:47:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528611#M37839</guid>
      <dc:creator>mischa_spelt</dc:creator>
      <dc:date>2017-06-23T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing an object from central port conection on Process Flow</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528612#M37840</link>
      <description>&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;I think Fixed Resource is the way to go in this case.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:02:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/referencing-an-object-from-central-port-conection-on-process/m-p/13528612#M37840</guid>
      <dc:creator>julio_r</dc:creator>
      <dc:date>2017-06-23T15:02:03Z</dc:date>
    </item>
  </channel>
</rss>

