Using CLS Document Service

The CLS Document Service is an executable that can be used to automate the process of uploading documents and associating them with the appropriate samples, workorders, etc., in The CLS Document. The CLS Document Service can parse content from PDF documents, or use file naming conventions to link to the correct entity. You can use this utility to upload any type of document.

Note: This section includes steps for running the CLS_document_service executable through the command line. You can, however, automate that process by scheduling CLS_document_service.exe to run on a frequent basis through MonitorClosed CLS's background task manager. It manages jobs submitted to the job queue. or through Windows Task Scheduler. This allows you to leave the process unattended.

See: Parsing PDF Files for information about parsing content from PDF documents using CLS Document Service.

To use the CLS Document Service, complete the following steps:

  1. Identify a folder that will contain the files that you want to push into the CLS Document repository. This example uses the folder "MyHznDocs". CLS Document Services may run on any workstation or on CLS application server, and multiple copies of the executable can run simultaneously as long as each one processes a unique folder.
  2. Copy the CLS_document_service.exe and NLog.config files from [CLS_HOME]\Install\DocumentService\ on your application server to the folder you have identified. You can execute the program from a CMD prompt as follows:

  3. A properties file is required. The properties file is named “CLS_document_service.properties” and must be in the same folder as the executable.

    The properties file can be edited in Notepad.

See Also: