<?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 Problems with preemption in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516054#M27961</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;BR /&gt;I want that the operator travel to queue2 and have 40 second delay, but he will be interrupted every 10 seconds so he has to go to queue1 and come back. On return, I want the delay to be at the same point, and that is the proble, that every time he returns, the counter is reset. It is as if the save context is not running.&lt;BR /&gt;Attach the model.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53135-interruptionv2.fsm" target="_blank"&gt;InterruptionV2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Jun 2022 10:27:36 GMT</pubDate>
    <dc:creator>cetim_c</dc:creator>
    <dc:date>2022-06-07T10:27:36Z</dc:date>
    <item>
      <title>Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516054#M27961</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;BR /&gt;I want that the operator travel to queue2 and have 40 second delay, but he will be interrupted every 10 seconds so he has to go to queue1 and come back. On return, I want the delay to be at the same point, and that is the proble, that every time he returns, the counter is reset. It is as if the save context is not running.&lt;BR /&gt;Attach the model.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53135-interruptionv2.fsm" target="_blank"&gt;InterruptionV2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 10:27:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516054#M27961</guid>
      <dc:creator>cetim_c</dc:creator>
      <dc:date>2022-06-07T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516055#M27962</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You should not preempt tokens that are waiting for a task to complete - instead you should preempt the task executer by using a higher priority task sequence with prempt set to PREEMPT_ONLY. When that sequence is complete the task executer will resume the preempted task and fire the callback at the correct time. If you need to, insert milestone tasks in order that you repeat things like travel if needed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 10:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516055#M27962</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-07T10:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516056#M27963</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you for your reply but, sorry, I didn´t understand what you explained. I don´t understand what should I change
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516056#M27963</guid>
      <dc:creator>cetim_c</dc:creator>
      <dc:date>2022-06-07T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516057#M27964</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Here's the modified model.&lt;/P&gt;&lt;P&gt;Note that by using a milestone the preempting set of tasks doesn't need to know anything about which task is was interrupting - so does not include the travel task back to queue2. I added a small delay to indicate something is done at queue1.&lt;/P&gt;&lt;P&gt;Also note that the range of the milestone task is not 2, but 4 - this is to include the callback task for each task activity.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53144-interruptionv2-jl.fsm" target="_blank"&gt;interruptionv2_jl.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516057#M27964</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-07T11:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516058#M27965</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for the clarification, but the problem still exists. It is like an infinite loop. Main delay progress has not been saved&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:33:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516058#M27965</guid>
      <dc:creator>cetim_c</dc:creator>
      <dc:date>2022-06-07T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516059#M27966</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can forego the milestone task and have the operator go back to the delay task directly. Note that visually the delay will still happen for the token while the operator is preempted, but the activity will only finish once the delay time has elapsed for the operator.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53156-interruptionv2-jl-fm.fsm" target="_blank"&gt;interruptionv2-jl-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use your previous approach, but you would have to use a 'normal' delay activity to store the context correctly. The operator's state would then have to be set manually.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53157-interruptionv2-fm.fsm" target="_blank"&gt;interruptionv2_fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 11:55:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516059#M27966</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-06-07T11:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516060#M27967</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The delay progress is saved but the problem is that the milestone task is creating new tasks for Travel to queue2 and Delay2  every time it's interrupted.  This seems like a bug - we'll investigate further.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For now the attached model should work for you.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53158-interruptionv2-jl2.fsm" target="_blank"&gt;interruptionv2_jl2.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Don't worry about the icon filled progress indicator - look at the event times - you'll see that 40 seconds is spent in Delay2 at queue2&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 12:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516060#M27967</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-07T12:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516061#M27968</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In this model I create the task sequence without waiting for the tasks to complete and then dispatch it afterwards, which seems to fix the issue - since the token no longer revisits the task activities - but the sequence is being done in the background.  The exit time from the Dispatch TS task is now correct.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/53147-interruptionv2-jl3.fsm" target="_blank"&gt;interruptionv2_jl3.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Jun 2022 12:42:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516061#M27968</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-07T12:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with preemption</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516062#M27969</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/35707/cetimc.html" nodeid="35707"&gt;@Cetim C&lt;/A&gt;, was our answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/problems-with-preemption/m-p/13516062#M27969</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-06-10T14:48:06Z</dc:date>
    </item>
  </channel>
</rss>

