<?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: Multiple Teams - Set State of First Operator Until Other Operators Available in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499899#M15347</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;To do this we need to take control of all the operator requests by creating task sequences in code.&lt;P&gt;How long do we have?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 25 Mar 2021 20:31:15 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2021-03-25T20:31:15Z</dc:date>
    <item>
      <title>Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499896#M15344</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I have a model in which the processor uses multiple teams as a dispatcher. When the first operator arrives, the state of that operator is automatically set to Utilize (even if the other operators needed are not available yet). Is there any way to change the state of this operator during this "waiting for other operators duration"? &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Mar 2021 22:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499896#M15344</guid>
      <dc:creator>nicholas_d</dc:creator>
      <dc:date>2021-03-24T22:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499897#M15345</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/86/logan.g.html" nodeid="86"&gt;@Logan Gold&lt;/A&gt; I apologize for the urgent request, but this is a time-sensitive matter. Is there any chance you can get back to me sometime today on this? &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Mar 2021 14:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499897#M15345</guid>
      <dc:creator>nicholas_d</dc:creator>
      <dc:date>2021-03-25T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499898#M15346</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you explore the tree of the taskexecuter (eg, operator), you will find a ongoing coordinated tasksequence in activetasksequence node. Herein you have a utilizetask. A utilizetask can set a taskexecuter in any state. Currently the state is STATE_UTILIZE or 22 (&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#Method-setState" target="_blank"&gt;list of states&lt;/A&gt;). If you want to set a different state then you have to exchange the state parameter, when the taskexecuter receives the tasksequence in the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/TaskSequences/TaskSequenceTypes/TaskSequenceTypes.html#utilize" target="_blank"&gt;utilize task&lt;/A&gt;. (OnReceive event or trigger). You will identify the tasksequence and cast a pointer to the class &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/CodingInFlexSim/FlexScriptAPIReference/TaskExecuter/TaskSequence.html" target="_blank"&gt;TaskSequence&lt;/A&gt;, if the receiving tasksequence is still a treenode. Then you set a pointer in the tasksequence by their &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/CodingInFlexSim/FlexScriptAPIReference/TaskExecuter/TaskSequence.html#Property-tasks" target="_blank"&gt;task rank&lt;/A&gt; in the tasks array to get access to the task. &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.0/Reference/CodingInFlexSim/FlexScriptAPIReference/TaskExecuter/TaskSequence.Task.html#Property-var1" target="_blank"&gt;Var1&lt;/A&gt; is responsible of the state the taskexecuter gets into, when the utilize gets executed.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499898#M15346</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-03-25T20:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499899#M15347</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;To do this we need to take control of all the operator requests by creating task sequences in code.&lt;P&gt;How long do we have?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499899#M15347</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-03-25T20:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499900#M15348</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@jason.lightfoot&lt;/A&gt; I was able to figure out an effective way to get this done. When the operator receives the task sequence a message is sent to the corresponding processor that sets the operator as a label on the processor. The processor then has an OnSetupFinish trigger (both operators must be available) that sets the state of the operator to &lt;EM&gt;Busy&lt;/EM&gt; rather than &lt;EM&gt;Utilize&lt;/EM&gt;. I can then track the operator utilization by only considering the duration in which the operator is in the &lt;EM&gt;Busy &lt;/EM&gt;state. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:41:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499900#M15348</guid>
      <dc:creator>nicholas_d</dc:creator>
      <dc:date>2021-03-25T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Teams - Set State of First Operator Until Other Operators Available</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499901#M15349</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Okay thanks for the update.  I'll still try and post a task sequence method here for future reference. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Mar 2021 20:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/multiple-teams-set-state-of-first-operator-until-other-operators/m-p/13499901#M15349</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2021-03-25T20:43:25Z</dc:date>
    </item>
  </channel>
</rss>

