<?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 Boundary timer event on script task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74847#M49095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the boundary timer event work when attached to a script task ? I would like to ensure that a script task doesn't run more than 1 second, so i put the following boundary event :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;boundaryEvent attachedToRef="telnetScript" cancelActivity="true" id="timer"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition id="_theTimer"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration id="_theTimerDuration" xsi:type="tFormalExpression"&amp;gt;PT1S&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The telnetScript sends a telnet request to a fake server. This server answers after 5 seconds, so the timer should normally fires before the server answer, but it fires after ! oO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover, when it fires, the process instance is over (because the telnet answer has been received), so I got a NullPointerException…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the timer can't fire when the script is executing a blocking instruction. Is it a bug ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I put a "while(true);" in the script task, the timer never fires.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2011 08:28:02 GMT</pubDate>
    <dc:creator>mathiasd</dc:creator>
    <dc:date>2011-09-22T08:28:02Z</dc:date>
    <item>
      <title>Boundary timer event on script task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74847#M49095</link>
      <description>Hi,Does the boundary timer event work when attached to a script task ? I would like to ensure that a script task doesn't run more than 1 second, so i put the following boundary event :&amp;lt;boundaryEvent attachedToRef="telnetScript" cancelActivity="true" id="timer"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition</description>
      <pubDate>Thu, 22 Sep 2011 08:28:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74847#M49095</guid>
      <dc:creator>mathiasd</dc:creator>
      <dc:date>2011-09-22T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary timer event on script task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74848#M49096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does not work on a script-task in activiti (it only works on userTass, signal-tasks, … -&amp;gt; all wait-states) because the timers need to be persisted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 07:04:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74848#M49096</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-10-05T07:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary timer event on script task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74849#M49097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok thanks, I made my own script task timer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:25:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-event-on-script-task/m-p/74849#M49097</guid>
      <dc:creator>mathiasd</dc:creator>
      <dc:date>2011-10-05T10:25:51Z</dc:date>
    </item>
  </channel>
</rss>

