Configuring your own delayed deletion schedule by using the XML configuration interface | HCL Digital Experience

You can use the HCL Digital Experience 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.

Procedure

  1. Edit the following sample XML configuration file:
  2. 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.
  3. Save your changes.
  4. Import the modified Task.xml file by using the XML configuration interface (XMLAccess).

What to do next

Notes:
  1. 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 WP Data Store Service. You do so in the resource environment providers in the WebSphere® Integrated Solutions Console. For more information, read Configuring immediate or delayed deletion of portal pages. For more information about portal configuration properties and how to set them, read Setting service configuration properties and Portal service configuration.
  2. If you delete a page with an object ID and then re-create it with XML configuration interface, you might receive an error message. The message indicates that the operation was canceled because it would cause a duplicate key value.
  3. When you run the cleanup task, the XML configuration interface schedules only the task to be run in WebSphere® Application Server and returns. It does not mean that WebSphere® Application Server runs the task immediately. To determine when a task started and ended, check the SystemOut.log log file for the messages EJPDE0005I and EJPDE0006I. These messages confirm that the cleanup task successfully completed. After you confirm, you can run the XML script for re-creating a page with the same object ID as it had before the deletion.