Configuring your own delayed deletion schedule by using the XML configuration interface

You can use the IBM® WebSphere® Portal XML configuration interface to configure the delayed deletion schedule according to your requirements. You can define a daily, weekly, or monthly schedule. You can also use the XML configuration interface to run individual cleanup tasks at arbitrary intervals.

About this task

To run cleanup tasks at arbitrary intervals, perform the following steps:

Procedure

  1. For IBM z/OS®: Open a UNIX System Services (z/OS UNIX System Services) command prompt.
  2. Edit the following sample XML configuration file:
  3. Uncomment and edit the entry that corresponds to the scheduled time that you want to set.
    Note: By default, the Task.xml file is set to run the scheduler immediately one time.
  4. Save your changes.
  5. Import the modified Task.xml file by using the XML configuration interface (XMLAccess).

What to do next

Notes:
  1. In order for your customized schedule to be observed by the portal, you must enable the scheduler.cleanup.enabled property by setting it to true in the portal WP Data Store Service in the WebSphere Integrated Solutions Console. For more details about this property see the topic about Configuring immediate or delayed deletion of portal pages.
  2. If you delete a page with an object ID and then use the XML configuration interface to re-create the same page with the same object ID, you might receive an error message indicating the operation was canceled because it would have caused a duplicate key value.
  3. When you run the cleanup task, the XML configuration interface only schedules the task to be run in WebSphere Application Server and returns. This does not necessarily mean that WebSphere Application Server runs the task immediately. To determine when a task started and ended, check the portal log SystemOut.log for the messages EJPDE0005I and EJPDE0006I. These messages confirm that the cleanup task has successfully completed. After you have confirmed this, you can run the XML script for re-creating a page with the same object ID as it had before the deletion.