Creating a Batch Process Error Code

Batch process error codes allow users to specific the error codes that will be returned by the application batch launcher in the event of a batch process failure. Information that is recorded for a batch error code includes the batch error code ID and the batch error code.

When a batch process fails, it will output an error message which is passed to the application batch launcher. The application batch launcher searches for a batch error code that matches the ID on the error message. If found, the application batch launcher then initiates the action that must be performed for the particular error. These actions are configured by an application developer.

For example, if the error code ID returned by a failed batch process is CANNOT_CONNECT_TO_DATABASE, then the batch launcher compares that to all batch process error codes that are stored in the system. If CANNOT_CONNECT_TO_DATABASE is found, then the batch launcher will retrieve the batch error code associated with this batch error code ID, e.g., "11". The batch launcher passes this batch error code to a task scheduler. The task scheduler then examines its own configuration files to determine what to do in the event of receiving error code 11. For information on the batch launcher and other aspects of batch process administration, see the Cúram Batch Processing Guide.