Handling Errors During Rule Processing (Creating a DEM)

A server SHOULD generate a DEM when it encounters an error processing a rule (2) on an incoming message. The server SHOULD also generate a DEM if it fails to create a DAM for a specific rule (2).

The server MUST generate the DEM in the following manner:

  • Create a new message (DEM) in the DAF.

  • Set the property values on the DEM as specified in section 2.2.7.

  • Save the DEM.

The first time the server finds a server-side rule to be in error and has generated a DEM for it, the server SHOULD set the ST_ERROR flag in the PidTagRuleState property (section of that rule (2). Examination of the ST_ERROR flag on subsequent operations is used to prevent creating multiple DEMs with the same error information.