<?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 Reevaluate Resource Activity List Back Orders via Code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507666#M21387</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Understood. Too far committed with the current model to change. Thanks - Stan
&lt;/DIV&gt;</description>
    <pubDate>Tue, 16 Nov 2021 20:03:04 GMT</pubDate>
    <dc:creator>stan_e_davis</dc:creator>
    <dc:date>2021-11-16T20:03:04Z</dc:date>
    <item>
      <title>How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507661#M21382</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Probably a simple answer, but how does one call the reevaluateBackOrders() method on the list behind an object-mode Resource activity via custom code?&lt;/P&gt;
 &lt;P&gt;I tried this but no joy...&lt;/P&gt;
 &lt;P&gt;&lt;EM&gt;List mylist = Model.find("Tools/ProcessFlow/ProcessFlow/Resource");&lt;/EM&gt;&lt;/P&gt;
 &lt;P&gt;&lt;EM&gt;mylist.reevaluateBackOrders();&lt;/EM&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks, Stan&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Nov 2021 18:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507661#M21382</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-11T18:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507662#M21383</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Tried this. No errors, but didn't cause the resource to reevaluate the back orders...&lt;/P&gt;
 &lt;PRE&gt;Object myobj = Model.find("Tools/ProcessFlow/ProcessFlow/Resource");

List mylist = myobj.attrs.variables.subnodes["list"];

mylist.reevaluateBackOrders();&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Nov 2021 21:06:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507662#M21383</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-11T21:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507663#M21384</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The activity creates copies of the list for each process flow instance. If it is an instanced flow, these will be subnodes of "...&amp;gt;stats/instances" ("..." is the path to the activity object). In case of a general process flow, there is only one instance under "...&amp;gt;stats/globalInstance".&lt;/P&gt;&lt;P&gt;The actual list node can be found under those instance nodes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1636712665137.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508069i9F431D9C8DA60DE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1636712665137.png" alt="1636712665137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The following code should then work to reevaluate the back orders:&lt;/P&gt;&lt;PRE&gt;List resourceList = Model.find("/Tools/ProcessFlow/ProcessFlow/Resource&amp;gt;stats/globalInstance/list");
resourceList.reevaluateBackOrders();&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 10:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507663#M21384</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2021-11-12T10:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507664#M21385</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/626/stan.d.html" nodeid="626"&gt;@Stan Davis&lt;/A&gt; The caveat here is that we don't make any guarantee that this will work in future versions if we make changes to the underlying structure. The only fully supported way to do this currently is to use a process flow List activity and point it at a global list and then call reevaluateBackOrders() on the global list.&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 16:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507664#M21385</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2021-11-12T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507665#M21386</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Felix, That worked. I had built a small test model with a single process flow. The list was still copied under the stats/instances. There is nothing under &lt;SPAN style="color: rgb(51, 51, 51); font-family: "&gt;stats/globalInstance. &lt;/SPAN&gt;Thanks again - Stan &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507665#M21386</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-16T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Reevaluate Resource Activity List Back Orders via Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507666#M21387</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Understood. Too far committed with the current model to change. Thanks - Stan
&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-reevaluate-resource-activity-list-back-orders-via-code/m-p/13507666#M21387</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-16T20:03:04Z</dc:date>
    </item>
  </channel>
</rss>

