<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Georg,<br>
      <br>
      you site root ist set to "/" :<br>
      <siteroot>/</siteroot><br>
      <br>
      Choosing the desired folder when editing the ScheduleJob should
      work.<br>
      <br>
      Greets,<br>
      Tobias<br>
      <br>
      Am 24.01.2015 um 15:41 schrieb "Georg Aigner":<br>
    </div>
    <blockquote
cite="mid:http:%2F%2Fpermalink.gmane.org%2Fgmane.comp.cms.opencms.devel%2F39646@localhost.localdomain"
      type="cite"><base
        href="http://permalink.gmane.org/gmane.comp.cms.opencms.devel/39646">
      <title>scheduler job</title>
      <base
        href="http://permalink.gmane.org/gmane.comp.cms.opencms.devel/39646">
      <pre>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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>



</pre>
    </blockquote>
    <br>
  </body>
</html>