<?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: How to terminate Timer job ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44786#M24756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can anyone explain how to trigger next task before timer expired. Basically i need to cancel the timer and trigger the next task. When i complete the timer it is not triggering the next task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 14:16:09 GMT</pubDate>
    <dc:creator>sudha</dc:creator>
    <dc:date>2016-06-22T14:16:09Z</dc:date>
    <item>
      <title>How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44778#M24748</link>
      <description>Hi, I'm trying to use the Timer start event with an unlimited number of repeats at 1 week intervals (R/P1W). The behaviour I observe in my test case is that the process instance terminates as soon of the first run through the process is complete but the timer continues to exist. Fair enough, each ti</description>
      <pubDate>Mon, 20 Jun 2011 03:46:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44778#M24748</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-06-20T03:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44779#M24749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Single out the Job using the ManagementService's createJobQuery and then cast it to JobEntity and call its delete method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 07:03:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44779#M24749</guid>
      <dc:creator>gwaptiva</dc:creator>
      <dc:date>2011-06-20T07:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44780#M24750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Calling the delete on the JobEntity will only work when internally when activiti-context is active, so not when calling it through the API…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, nothing is exposed to delete jobs. But doesn't it make more sense, to undeploy the deployment where the timer is defined? This way, you do it the right way I guess…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 11:54:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44780#M24750</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-20T11:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44781#M24751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am starting multiple process instances with data, basically I run some periodic tasks for each user. If I undeploy the process def won't all the timers be stopped? In fact I almost certainly only want to stop the timer for a single user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have a problem in my test case since I am deploying using the @Deployment annotation but before this is cleaned up I get a failure because the DB is not 'clean' (having an outstanding Job).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44781#M24751</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-06-20T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44782#M24752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm… can you create a simple unit-test showing this and attach it here? The @Deployment annotation handling will cascade-delete the deployment and check for clean DB after this. So you might be on to a bug, that jobs of a timer start-event aren't deleted when deployment is deleted&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:19:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44782#M24752</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-20T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44783#M24753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the course of putting the test case together I found that the Job does not get cleaned up if I extend PluggableActivitiTestCase. However it &lt;/SPAN&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;SPAN&gt; work fine if I extend ActivitiTestCase. I'm afraid at this point I don't recall where I got the idea to extend PluggableActivitiTestCase though I suspect it would have been copied from an example somewhere. Both examples are attached here as Eclipse / Maven project if you like to look. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So back to the other part of my question: The usefulness of the timer start would seem to be limited if I can only use it for one data set (in my case one user) because of the need to undeploy the process definition to stop the timer. In the simple example attached I use a service task to periodically 'say hello' to each user where user is process data injected at process start. If one user leaves I appear to have to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - undeploy the template, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - deploy it again (unchanged) and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - start instances for every user &lt;/SPAN&gt;&lt;EM&gt;except&lt;/EM&gt;&lt;SPAN&gt; the one who left&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this really 'the right way'? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose an alternative is to write the process differently and have a task to retrieve the list of users then use a multi-instance service task to 'say hello' to each of them. The reason I originally did not do this is that I would like to vary the interval on the timer for each user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think, is there a different way to look at this that I am missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 01:42:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44783#M24753</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-06-21T01:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44784#M24754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, if I understand you correctly you need the managementService.deleteJob(id) method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that's a valid and easy request. Could you create a Jira for this and assign it to me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 10:08:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44784#M24754</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-06-24T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44785#M24755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds good Joram. I created &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-855" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-855&lt;/A&gt;&lt;SPAN&gt; but don't seem to be able to assign it to you. Thanks, tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 10:48:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44785#M24755</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-06-24T10:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44786#M24756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can anyone explain how to trigger next task before timer expired. Basically i need to cancel the timer and trigger the next task. When i complete the timer it is not triggering the next task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:16:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44786#M24756</guid>
      <dc:creator>sudha</dc:creator>
      <dc:date>2016-06-22T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to terminate Timer job ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44787#M24757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sudha.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some of possibilities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; change timer's due date,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; change process engine time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:19:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-terminate-timer-job/m-p/44787#M24757</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-06-23T06:19:58Z</dc:date>
    </item>
  </channel>
</rss>

