<?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: Why doesn't a wait for event work in preemption? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/why-doesn-t-a-wait-for-event-work-in-preemption/m-p/13498825#M14450</link>
    <description>&lt;P&gt;Since you haven't shared your model, it's impossible to know exactly what is causing the issue, however, if I had to guess, you probably don't have a Breathe immediately after your Wait For Event. A breathe meaning a Delay activity with a delay time of 0. This is often needed when using Wait for Event or Event Triggered Source (or at times after task sequence activities) in order to break up code that is being executed both by the firing event, and the Wait for Event. If your Wait for Event starts messing with objects or tokens that were involved in the triggering event, it can change the state of an object or the model that it isn't expecting and cause exceptions to be thrown.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2017 15:44:22 GMT</pubDate>
    <dc:creator>matt_long</dc:creator>
    <dc:date>2017-03-20T15:44:22Z</dc:date>
    <item>
      <title>Why doesn't a wait for event work in preemption?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-doesn-t-a-wait-for-event-work-in-preemption/m-p/13498824#M14449</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.0.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I set up a preemption with no issues if I use a standard delay. However if I change that delay to a "wait for event" I get the following error:&lt;/P&gt;&lt;P&gt;time: 34.588096 exception: Exception caught in start() of activity "Save Context" in "ProcessFlow". Continuing throw...
time: 34.588096 exception: Exception caught in evaluation of /Tools/ProcessFlow/ProcessFlow/Fly Blade&amp;gt;stats/instances/ProcessFlow/onEntry&lt;/P&gt;&lt;P&gt;Can anybody explain why this is? I am using this because I don't know when the triggering event will occur, but when it does I need the tokens in the zone to pause until that specific event is finished. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 14:09:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-doesn-t-a-wait-for-event-work-in-preemption/m-p/13498824#M14449</guid>
      <dc:creator>kari_payton</dc:creator>
      <dc:date>2017-03-20T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't a wait for event work in preemption?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/why-doesn-t-a-wait-for-event-work-in-preemption/m-p/13498825#M14450</link>
      <description>&lt;P&gt;Since you haven't shared your model, it's impossible to know exactly what is causing the issue, however, if I had to guess, you probably don't have a Breathe immediately after your Wait For Event. A breathe meaning a Delay activity with a delay time of 0. This is often needed when using Wait for Event or Event Triggered Source (or at times after task sequence activities) in order to break up code that is being executed both by the firing event, and the Wait for Event. If your Wait for Event starts messing with objects or tokens that were involved in the triggering event, it can change the state of an object or the model that it isn't expecting and cause exceptions to be thrown.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 15:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/why-doesn-t-a-wait-for-event-work-in-preemption/m-p/13498825#M14450</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2017-03-20T15:44:22Z</dc:date>
    </item>
  </channel>
</rss>

