<?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 Timer example in activitirc1 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39449#M21015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying the Timer example. I am really very confused now and i am really sorry to ask such basic questions in the forum. but please help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code in bpmn file (bundled with examples)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;boundaryEvent id="escalationTimer" cancelActivity="true" attachedToRef="firstLineSupport"&amp;gt;&lt;BR /&gt;&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;nbsp;&amp;lt;timeDuration&amp;gt;PT8S&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I just changed the time duration to 8 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As per the above code I would expect the second line support to be available in 8 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this works only if i manually execute the job using managementService.executeJob(timer.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If instead i dont execute the job and keep the process alive using Thread.sleep(10000) then can i expect secondline support after 10 seconds?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the changed code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public void testInterruptingTimerDuration() {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Start process instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ProcessInstance pi = runtimeService.startProcessInstanceByKey("escalationExample");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// There should be one task, with a timer : first line support&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;assertEquals("First line support", task.getName());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//taskService.complete(task.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Manually execute the job&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Job timer = managementService.createJobQuery().singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thread.sleep(10000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} catch (InterruptedException e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("time elapsed");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// managementService.executeJob(timer.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// The timer has fired, and the second task (secondlinesupport) now exists&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("task "+ task.getName());&lt;BR /&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;/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;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;/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;SPAN&gt;The above code prints "First line support".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sorry if my concepts are wrong here. but please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Nov 2010 11:42:40 GMT</pubDate>
    <dc:creator>parul_vipparthi</dc:creator>
    <dc:date>2010-11-28T11:42:40Z</dc:date>
    <item>
      <title>Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39449#M21015</link>
      <description>Hello I have been trying the Timer example. I am really very confused now and i am really sorry to ask such basic questions in the forum. but please help me.This is the code in bpmn file (bundled with examples)&amp;lt;boundaryEvent id="escalationTimer" cancelActivity="true" attachedToRef="firstLineSuppo</description>
      <pubDate>Sun, 28 Nov 2010 11:42:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39449#M21015</guid>
      <dc:creator>parul_vipparthi</dc:creator>
      <dc:date>2010-11-28T11:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39450#M21016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you check your configuration and make sure the JobExecutor is enabled?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 07:59:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39450#M21016</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-11-29T07:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39451#M21017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I changed job executor to "on" in activiti.cfg.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you … it works now!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 12:44:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39451#M21017</guid>
      <dc:creator>parul_vipparthi</dc:creator>
      <dc:date>2010-11-29T12:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39452#M21018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to be of service &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 12:48:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39452#M21018</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-11-29T12:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39453#M21019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by this "but this works only if i manually execute the job using managementService.executeJob(timer.getId());"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case what I want is second job should start after the time out and I don't want to add any wait/sleep. Basically can I have the synchronous timer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 08:44:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39453#M21019</guid>
      <dc:creator>santoshpatel</dc:creator>
      <dc:date>2016-02-26T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timer example in activitirc1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39454#M21020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're resurrecting a five year old thread ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if I'm following you, but what you describe seems to be the default of having a service task after a timer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:40:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-example-in-activitirc1/m-p/39454#M21020</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-01T20:40:15Z</dc:date>
    </item>
  </channel>
</rss>

