<?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 resume timer job once the exception is resolved in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101372#M70373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ACT-2253 has not been migrated to atlassian jira. Should I resubmit the bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 16:37:59 GMT</pubDate>
    <dc:creator>arc</dc:creator>
    <dc:date>2015-06-02T16:37:59Z</dc:date>
    <item>
      <title>how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101367#M70368</link>
      <description>Hello all,I have a timer task scheduled in activiti. But an exception was thrown stating "Unknown property used in expression" in ACT_RU_JOB and a corresponding exception details msg created in ACT_GE_BYTEARRAY table.I fixed the issue and the due_date in act_ru_job is now become past date. I thought</description>
      <pubDate>Thu, 21 Jun 2012 19:50:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101367#M70368</guid>
      <dc:creator>rohran</dc:creator>
      <dc:date>2012-06-21T19:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101368#M70369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a field in the ACT_RU_JOB table that state show many retries are left. If this number reaches zero, regardless of the date, it will never be ran automatically. Two ways or re-running the job:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Safest way is through the API: Query the job and execute it (may contain compile errors, just off the top of my head). The job is executed in the CALLING thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;Job&amp;gt; jobs = managementService.createJobQuery().withException().list();&lt;BR /&gt;&lt;BR /&gt;for(Job job : jobs)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; managementService.executeJob(job.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(ActivitiException ae) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: Handle :smileywink:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Update the "retry count" using the management service, similar approach as above, but the execution will actually happen by the job-executor in car the due date has passed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;managementService.setJobRetries(jobId, 2);&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 06:47:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101368#M70369</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-22T06:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101369#M70370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I tried to use the setJobRetries it seems like the retries_ column is updated as expected but at the same time the duedate_ column is set to null why the job will not execute even though the retries_ column has been set to e.g. 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created another SetJobRetriesCmd which sets both the retries and the duedate and then the job is restarted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I debugged the SetJobRetriesCmd it seems like the job read from the db contains null in duedate even though the db contains a correct date value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JobEntity job = commandContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getJobEntityManager()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .findJobById(jobId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code snippet from SetJobRetriesCmd returns a job where duedate is set to null regardless of the db value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:16:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101369#M70370</guid>
      <dc:creator>arc</dc:creator>
      <dc:date>2015-05-07T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101370#M70371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And is the duedate already null before it is read from the database?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:27:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101370#M70371</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-05-07T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101371#M70372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I have submitted a bug issue for this with an included test case. Maybe it isn't bug, just a misunderstanding?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Issue ACT-2253 - Job entity does not handle due date correctly in queries has been successfully created."&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 20:58:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101371#M70372</guid>
      <dc:creator>arc</dc:creator>
      <dc:date>2015-05-07T20:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101372#M70373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ACT-2253 has not been migrated to atlassian jira. Should I resubmit the bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 16:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101372#M70373</guid>
      <dc:creator>arc</dc:creator>
      <dc:date>2015-06-02T16:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to resume timer job once the exception is resolved</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101373#M70374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes please. Probably you've just hit the gap when we migrated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:52:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-resume-timer-job-once-the-exception-is-resolved/m-p/101373#M70374</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-02T19:52:45Z</dc:date>
    </item>
  </channel>
</rss>

