<?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: Trigger a CronScheduledQueryBasedTemplateActionDefinition? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121530#M85617</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;Is the requirement to run the job at application start up and then as defined by cron?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 12:20:21 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2008-01-29T12:20:21Z</dc:date>
    <item>
      <title>Trigger a CronScheduledQueryBasedTemplateActionDefinition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121528#M85615</link>
      <description>Hi list,I have a scheduled action that is run via cron. I've implemented it in Java and configured it as indicated on the wiki. This works perfectly.Is there a way, besides the automatic scheduling by cron, to programatically execute the job once? I mean: to execute it once in addition to the execut</description>
      <pubDate>Tue, 08 Jan 2008 23:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121528#M85615</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2008-01-08T23:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a CronScheduledQueryBasedTemplateActionDefinition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121529#M85616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking closer at the code (CronScheduledQueryBasedTemplateActionDefinition.java), it seems that one way to go would be to subclass CronScheduledQueryBasedTemplateActionDefinition and override getTrigger() to not create a CronTrigger but a &lt;/SPAN&gt;&lt;A href="http://quartz.sourceforge.net/javadoc/org/quartz/SimpleTrigger.html" rel="nofollow noopener noreferrer"&gt;SimpleTrigger&lt;/A&gt;&lt;SPAN&gt;. I would then have two "scheduled actions" in my configuration XML files: one for the cron job and another one for the SimpleTrigger. However, I am not sure how exactly this works: just setting/replaceing the trigger is probably not enough and I need to re-register the trigger with the scheduler. But how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the above is not an option, how can my service create a new "worker thread" with its own transaction to programatically select the nodes and work through them? Is there an example available? Maybe an already existing Alfresco Service I could take a look at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 02:03:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121529#M85616</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2008-01-11T02:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a CronScheduledQueryBasedTemplateActionDefinition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121530#M85617</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;Is the requirement to run the job at application start up and then as defined by cron?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:20:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121530#M85617</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-01-29T12:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a CronScheduledQueryBasedTemplateActionDefinition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121531#M85618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is the requirement to run the job at application start up and then as defined by cron?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Actually, I need both ;-).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the one hand, my custom service (for &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Content_Type" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;&lt;SPAN&gt;) has a public method to schedule a cron job &lt;/SPAN&gt;&lt;STRONG&gt;now&lt;/STRONG&gt;&lt;SPAN&gt; (in addition to the normal running times).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, I've run into the need to run a transaction (not necessarily a cron job) after module startup, see &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=10532" rel="nofollow noopener noreferrer"&gt;this post&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 13:34:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121531#M85618</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2008-02-05T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a CronScheduledQueryBasedTemplateActionDefinition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121532#M85619</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;I believe you should add extension bootstrap beans for amp initialisation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the RM amp for an example and the bootstrap context for where bootstrap extensions are found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 15:45:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/trigger-a-cronscheduledquerybasedtemplateactiondefinition/m-p/121532#M85619</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2008-02-12T15:45:21Z</dc:date>
    </item>
  </channel>
</rss>

