Periodoc Process Properties

While the Documaker Connector application runs, there may be work that can be done on a time available or periodically scheduled basis, rather than as part of transfer and import processing. You can configure these periodic processes independently of both the source and destination, but configuring these processes is typically handled when you configure either the source or the destination and the applicable settings are packaged with them. They are configured with the periodic.process settings.

Each periodic process can be replicated into multiple copies. Together, these copies are called a periodic process collection. If you have multiple, different processes to run, you create multiple collections.

To configure multiple periodic processes, you must assign an ID to each collection except the first. A collection with no ID is considered the default, although you can assign an ID to all of them if you prefer. Assigning IDs gives you a way to refer to each periodic process collection as you specify the properties to configure them.

An example of a periodic process is the one which deletes the source documents after they are imported using the Documaker source. You may want to leave the documents in the source location for a period of time so the import process can be verified as successful. After this time period and long after the import processing was completed, you can have a periodic process delete the document files. This process is included in the Documaker source jar file and can be configured as shown here to run one copy (instance.count=1), forever (repetition.count=0), or every hour (repetition.wait=3600000):

periodic.process.collection.instance.class = oracle.documaker.ecmconnector.documakersource.DocumakerSourceProcess 
periodic.process.collection.instance.count = 1 
periodic.process.repetition.count = 0 
periodic.process.repetition.wait = 3600000

Table 3-3 Periodic Process Properties

Property Description Default
.collection.instance.count The number of instances of the periodic process class to be created for the collection. One (1)
.collection.instance.class The name of the Java class to be run by the process collection. none
.repetition.count The number of times the periodic process should execute. Set to zero (0) for infinite repetitions. One (1)
.repetition.wait The wait time in milliseconds between iterations of the periodic process. 5000 (five seconds)