[opencms-dev] scheduler job
Tobias Karrer
kartobi at gmail.com
Sat Jan 24 20:39:36 CET 2015
Hi Georg,
you site root ist set to "/" :
<siteroot>/</siteroot>
Choosing the desired folder when editing the ScheduleJob should work.
Greets,
Tobias
Am 24.01.2015 um 15:41 schrieb "Georg Aigner":
> scheduler job
> Hi all
>
> I am new to openCMS (9.5.0) an i have to clear the CRM History via a job or
> via jsp trigger.
> So i created the CmsHistoryClearJob.
>
> The job is doing as expected the cleanup, but he is starting from root and
> clears all.
>
> <job>
> <name>MyJob</name>
> <class>org.opencms.scheduler.jobs.CmsHistoryClearJob</class>
> <reuseinstance>false</reuseinstance>
> <active>true</active>
> <cronexpression><![CDATA[0 0 3 * * ?]]></cronexpression>
> <context>
> <user>Admin</user>
> <project>projectA</project>
> <siteroot>/</siteroot>
> <requesteduri>/project-a/</requesteduri>
> <locale>en</locale>
> <encoding>UTF-8</encoding>
> <remoteaddr>127.0.0.1</remoteaddr>
> </context>
> <parameters>
> <param name="clearDeleted">true</param>
> <param name="keepTimeRange">0</param>
> <param name="keepVersions">0</param>
> </parameters>
> </job>
>
> But i only like to clean the history below the project "projectA" which is
> mapped to a folder at /sites/default/project-a
>
> but the settings in the job are ignored or i do not understand the correct
> usage of them.
>
> So is it possible to clean the history starting from a provided folder or
> project?
>
> thx
> georg
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150124/2841ebf8/attachment.htm>
More information about the opencms-dev
mailing list