B2B Integration 10.2 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Archive Folder | Summary of Elements in this Folder | wm.tn.archive:archive
 
wm.tn.archive:archive
Archives documents and deletes documents from the Trading Networks database.
Input Parameters
archiveAfterDays
String (optional) The maximum number of days to store a document in the production tables (since being received) before being archived. This service archives documents that have been in the database longer than the number of days you specify.
Specify a value from 0 through 730365. 0 indicates to not archive documents.
If you do not specify a value for archiveAfterDays, this service uses the setting of the tn.archive.archiveAfterDays property in the Trading Networks properties file located in the directory, Integration Server_directory \instances\instance_name\packages\WmTN\config\properties.cnf.
deleteAfterDays
String (optional) The maximum number of days that a document is to remain in the database (since it was received) before being deleted. This service deletes documents that have been in the database longer than the number of days you specify.
Specify a value from 0 through 730365. If you specify 0, Trading Networks does not delete documents.
If you do not specify a value for deleteAfterDays, this service uses the setting of the tn.archive.deleteAfterDays property in the Trading Networks properties file. The Trading Networks properties file is in the directory, Integration Server_directory \instances\instance_name\packages\WmTN\config\properties.cnf.
Output Parameters
archiveCount
String The number of documents that the service archived.
deleteCount
String The number of documents that the service deleted from the database.
Usage Notes
*You can execute this service from time to time to conserve space in the system database. You can use Integration Server Administrator to schedule a user task to automatically execute this service periodically. You may not need this service for sites with large databases and that have one or more database administrators because such sites usually have their own archiving constraints.
*If you do not specify archiveAfterDays and the tn.archive.archiveAfterDays is not set in the Trading Networks properties file, the service deletes documents, but does not archive any documents.
*If the setting that controls deleting documents (either deleteAfterDays specified with the service or the tn.archive.deleteAfterDays) is less than the setting that controls archiving documents (either archiveAfterDays specified with the service or the tn.archive.archiveAfterDays property), this service does not archive files, only deletes them.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.