Set the input and output error reset policy for the parameter array
- Last Updated: September 28, 2022
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Sometimes errors may occur while processing requests and responses to/from the application server. You can control what happens to the parameter array object in such cases.
The behavior is controlled by two properties:
InputErrorResetPolicy—Applies to errors that occur when establishing connections and sending data to the application server.OutputErrorResetPolicy—Applies to errors that occur when processing a response from an application server request.
The possible values for the properties are:
RESET_ALWAYS—Reset parameters to NULL if an error occurs during processing. (Default)RESET_MODIFIED—Only reset parameters to NULL if the parameter array was modified during processing. (Default)
By default, both properties are configured to RESET_ALWAYS, which causes
all INPUT, INPUT-OUTPUT, and OUTPUT
parameters in the parameter array to be reset to NULL when an error occurs during a
request or response to/from the application server. This means all parameters in the
parameter array have no values and must be fully assigned before making another
application server request.
You can change the default behavior by setting one or both of the policies to
RESET_MODIFIED. RESET_MODIFIED only resets the
parameters to NULL if the parameter array was modified during processing. For
example:
|