Monitor 10.11 | pub.monitor.archive Folder | pub.monitor.archive:documentArchive
 
pub.monitor.archive:documentArchive
Archives or deletes logged document data. The logged data is archived or deleted from the WMDOCUMENT table in the IS Core Audit Log database component and document control data (such as resubmit actions) from the PRA_PROCESS_ACTION table in the IS Core Audit Log database component.
Input Parameters
The following table lists the input parameters.
todate
String Optional. Start date for the period to keep the data in the IS Core Audit Log database component. The period ends with and includes the current date. Use the format yyyy-mm-dd hh:mm:ss.
Supply either todate or days. Do not supply both.
days
String Optional. Number of days to keep the data in the IS Core Audit Log database component, ending with and including the current date.
Supply either todate or days. Do not supply both.
archiveAction
String Optional. Whether to archive or delete the data.
*ARCHIVE Default. Copy the data from the IS Core Audit Log database component to the Archive database component and delete the data from the IS Core Audit Log database component.
*DELETE Delete the data from the IS Core Audit Log database component without first archiving it.
batchSize
String Optional. Number of documents to archive or delete at a time.
Output Parameters
The following table lists the output parameters.
message
String Message that indicates the success of the archive or delete action.
errorMessage
String Errors that occurred during the archive or delete action.
Usage Notes
You can use this service with Integration Server Administrator to archive or delete data automatically, at specific times or intervals. To do so, build a service that calls the archive or delete service and sets its input parameters; then run the wrapper service as a scheduled task from Integration Server Administrator. For instructions on scheduling services to run at specific times, see webMethods Integration Server Administrator’s Guide.
Examples
*todate parameter: Suppose the current date is September 30 and you want to archive or delete data that was logged more than 15 days ago (that is, before September 15). You would specify this parameter as 2003-10-15 00:00:00.
*days parameter: Suppose the current date is September 30 and you want to archive or delete data that was logged more than 15 days ago (that is, before September 15). You would specify this parameter as 15.