<?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: Problem managing operators with process flow &amp; 3D Model &amp; parameter in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570720#M71077</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you very much for your dummy and the custom code &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt; I have tested your approach in my real model and it works. It will be very useful. &lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Mar 2023 13:02:39 GMT</pubDate>
    <dc:creator>carmen_fernandez7YE4Y</dc:creator>
    <dc:date>2023-03-16T13:02:39Z</dc:date>
    <item>
      <title>Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570712#M71069</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;I am using the process flow to control the operators as a resource referenced to 3D object. The quantity of this resource can be variable so it is defined by the "OP" parameter (see example: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65359-operators-pf-parameter-ok.jpg" target="_blank"&gt;Operators_PF_Parameter_OK.jpg&lt;/A&gt;) My problem comes when I set the value of the parameter to 0, because the process flow logic still acquires the operator created in the 3D model and I don't know how to avoid it. Any suggestion to control this particular case?&lt;/P&gt;
 &lt;P&gt;I have attached a model with an example: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65361-dummy-operators-pf-parameters-v01.fsm" target="_blank"&gt;Dummy_Operators_PF_Parameters_v01.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Mar 2023 12:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570712#M71069</guid>
      <dc:creator>carmen_fernandez7YE4Y</dc:creator>
      <dc:date>2023-03-09T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570713#M71070</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/22861/carmenf.html" nodeid="22861"&gt;@Carmen F&lt;/A&gt; ,&lt;BR /&gt;I suggest you to use Jason Lightfoot's answer &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/135240/delete-and-copy-out-objects-with-lower-bound-zero.html" target="_blank"&gt;here&lt;/A&gt;. With Process Flow you can reference a Dispatcher with the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/23.0/Reference/ProcessFlowObjects/TaskSequences/CreateTaskSequence/CreateTaskSequence.html" target="_blank"&gt;&lt;STRONG&gt;Create Task Sequence&lt;/STRONG&gt;&lt;/A&gt; activity. With these activities you can also replace Acquire/Release activities.&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65374-dummy-operators-pf-parameters-v01-sc.fsm" target="_blank"&gt;dummy-operators-pf-parameters-v01_SC.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Mar 2023 14:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570713#M71070</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2023-03-09T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570714#M71071</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt;, &lt;/P&gt;
 &lt;P&gt;Thanks for your answer but I wouldn't want to use a dispatcher because the acquisition of the resource in the real model has a certain complexity and is given by the application of some priority rules that I control through process flow. I have attached a new dummy including this aspect. &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65622-dummy-operators-pf-parameters-withpriorityrules-v0.fsm" target="_blank"&gt;Dummy_Operators_PF_Parameters_withPriorityRules_v01.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;In the example, depending on label "Type" of the item and the values in the global table "Operator_Priority", it is selected the operator profile to be acquired (Example: {
  &lt;EM&gt;2,1&lt;/EM&gt;} --&amp;gt; Firstly, it will be looking for OP&lt;EM&gt;2&lt;/EM&gt; and secondly for OP&lt;EM&gt;1&lt;/EM&gt;). In addition, depending on the schedule, it will choose an operator from one shift or another but it is not relevant at this point. &lt;/P&gt;
 &lt;P&gt;If the first operator profile requested is not available, it will look for an operator from the second profile and so on. It will go through a loop until it finds a free one. Once the operator is acquired, the task sequence is created.&lt;/P&gt;
 &lt;P&gt;In the new attached example this logic is working, but I still don't know how to handle the case where the value of the parameter that controls the number of operators in a profile is =0. &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65613-example-malfunction-withparameter0.jpg" target="_blank"&gt;Example_malfunction_withParameter0.jpg&lt;/A&gt;In this case, no operator of that profile should be acquired.&lt;/P&gt;
 &lt;P&gt;Any suggestions how to solve it using this approach or using another? &lt;/P&gt;
 &lt;P&gt;Thanks in advance.&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570714#M71071</guid>
      <dc:creator>carmen_fernandez7YE4Y</dc:creator>
      <dc:date>2023-03-14T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570715#M71072</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Push your available operators to a list and pull them off using an ORDER BY clause that references the expression:&lt;/P&gt;&lt;PRE&gt; puller.orderProfile.indexOf(value.operatorID)&lt;/PRE&gt;&lt;P&gt;which assumes the puller has an array label containing  the operator profile , where the values match those stored on the  operators as the label  'operatorID'.  &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:45:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570715#M71072</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-14T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570716#M71073</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/22861/carmenf.html" nodeid="22861"&gt;@Carmen F&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Besides Jason's suggestion, I made a demo model that seems to work! I'll explain the steps I did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add your operators to an objects group.&lt;/LI&gt;&lt;LI&gt;Reference the Group you'd created as PF Resource.&lt;/LI&gt;&lt;LI&gt;Create the Parameter with the Lower Bound as 0, reference the Group you'd created and select the operation &lt;STRONG&gt;Delete and Copy Group Members&lt;/STRONG&gt; in the trigger &lt;STRONG&gt;On Set&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Create a Model Triggers &lt;STRONG&gt;OnModelReset&lt;/STRONG&gt;. I reuse the code of &lt;STRONG&gt;Set Number in People Group&lt;/STRONG&gt; that you find also in the operations of the trigger &lt;STRONG&gt;On Set &lt;/STRONG&gt;of the parameters. I made a few changes, set the variable &lt;EM&gt;newValue&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;as the parameter you set before and the variable &lt;EM&gt;group &lt;/EM&gt;as the group you'd created. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="parameterzero-pf.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515892iB28FC1CECC92E7F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameterzero-pf.gif" alt="parameterzero-pf.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65616-parameteropzero-pf.fsm" target="_blank"&gt;ParameterOPZero_PF.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Mar 2023 14:22:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570716#M71073</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2023-03-14T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570717#M71074</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; ,&lt;/P&gt;
 &lt;P&gt;I have been working from your idea and I already have the list of operators available for each shift based on the value of each parameter. Attached new dummy: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65711-test-gestion-personal-v0-3-withts-5-pendingpullope.fsm" target="_blank"&gt;Test_Gestion_Personal_V0_3_withTS_5_PendingPullOperator_3.fsm&lt;/A&gt;But I have problems with the ORDER BY clause that you suggest. I don't know who to use it applying also the comprobation of the shift (T1, T2, T3). &lt;/P&gt;
 &lt;P&gt;I think It would be solved if pull from Operator List based on the value of "perfil" (profile). For this purpose, I have assign label "QueryLab" before the pull, I have checked that it is working well, but I can't get the pull activity to read it. Could you tell me how to do it? Thank you so much.&lt;span class="lia-inline-image-display-wrapper" image-alt="query-pull-pending.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515893iD21DD768EAF6AB86/image-size/large?v=v2&amp;amp;px=999" role="button" title="query-pull-pending.jpg" alt="query-pull-pending.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 10:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570717#M71074</guid>
      <dc:creator>carmen_fernandez7YE4Y</dc:creator>
      <dc:date>2023-03-15T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570718#M71075</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I added labels to your operators for opID (to give the position in the profiles array) and turno - to match the shift. Instead of pushing tokens to the list I added all operators as the initial entries.&lt;/P&gt;&lt;P&gt;The the pull query is just:&lt;/P&gt;&lt;PRE&gt;WHERE turno=puller.turno ORDER BY prio ASC&lt;/PRE&gt;&lt;P&gt;the the thing pulled is the operator.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65724-test-gestion-personal-v0-3-withts-5-pendingpullope.fsm" target="_blank"&gt;test-gestion-personal-v0-3-withts-5-pendingpullope_jl.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570718#M71075</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-15T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570719#M71076</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 I made some changes to not push operators with quantity =0 and know it works! Thank you very much for your support 
 &lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; , I have learned very useful thing from your tips. 
&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:51:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570719#M71076</guid>
      <dc:creator>carmen_fernandez7YE4Y</dc:creator>
      <dc:date>2023-03-16T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem managing operators with process flow &amp; 3D Model &amp; parameter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570720#M71077</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you very much for your dummy and the custom code &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt; I have tested your approach in my real model and it works. It will be very useful. &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2023 13:02:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problem-managing-operators-with-process-flow-3d-model-parameter/m-p/13570720#M71077</guid>
      <dc:creator>carmen_fernandez7YE4Y</dc:creator>
      <dc:date>2023-03-16T13:02:39Z</dc:date>
    </item>
  </channel>
</rss>

