ProcessRequest function

The ProcessRequest function performs these actions in the following order:

  1. Moves the input request record to the Busy status and sets its start time.
  2. Parses the request file that belongs to the request record:

    • If the request file is a correspondence or import request, parsing results in a set of correspondences.

    • If the request file is an application request, parsing results in a set of application events, which are transformed into correspondences by applying the application rules that are configured on the system.

  3. For import requests, verifies that an accompanying Document Pack is also submitted.
  4. Stores the correspondences in the run-time database.
  5. Moves the input request record to the Finished status and sets its finish time.

Parameters

The ProcessRequest function does not have any input parameters. It searches the run-time database for a request record in the Waiting status. If multiple records are available, they are picked up one by one, but the order is not determined.

Result

If a request record is processed successfully, ProcessRequest returns true. If no request record is available, ProcessRequest returns false.

If an error is encountered, ProcessRequest moves the input request record to the Error status and sets the error time and error message.

It is safe to call ProcessRequest from different processes simultaneously, even if they process request records from the same run-time database.