PreviousNextIndex

BEGIN-EVENT-GROUP( ) method

Indicates (and records) the beginning of a group of related audit events in the current session. Audit event groups are used to group a series of related application and database audit events in one or more connected audit-enabled databases whose current audit policy has this audit event enabled.

This method returns a Base64 character string that specifies the universally unique identifier (UUID) of the primary index for all audit event records generated by this method for this audit event group. This UUID is recorded in all subsequent audit event records until you either end this audit event group or begin a different audit event group. The UUID is 22 characters in length (the two trailing Base64 pad characters are removed).

Return type: CHARACTER

Applies to: AUDIT-CONTROL system handle

Syntax
BEGIN-EVENT-GROUP( event-context [, event-detail [, audit-custom-detail ]]) 

event-context
event-detail
audit-custom-detail

The UUID is saved as the EVENT-GROUP-ID attribute value for each connected audit-enabled database.

There can be only one active event group per session at any one point in time. To set a different event group for the session, you can:

Calling this method generates an audit event, and creates an audit record for the event in all connected audit-enabled databases according to each database’s current audit policy settings.

The following code fragment illustrates how to use the BEGIN-EVENT-GROUP( ) method:

DEFINE VARIABLE name   AS CHARACTER NO-UNDO. 
DEFINE VARIABLE ctx-id AS CHARACTER NO-UNDO. 
DEFINE VARIABLE grp-id AS CHARACTER NO-UNDO. 
. . . 
grp-id = AUDIT-CONTROL:BEGIN-EVENT-GROUP 
  ("Payroll app", "tax calculations", name). 
ctx-id = AUDIT-CONTROL:SET-APPL-CONTEXT 
  ("Payroll app", "federal tax calculation", name). 
. . . 
AUDIT-CONTROL:LOG-AUDIT-EVENT(34122, "payroll.fed.tax.nh"). 
. . . 
ctx-id = AUDIT-CONTROL:SET-APPL-CONTEXT 
  ("Payroll app", "fica calculation", name). 
. . . 
AUDIT-CONTROL:LOG-AUDIT-EVENT(34123, "payroll.fed.tax.ma"). 
. . . 
AUDIT-CONTROL:CLEAR-APPL-CONTEXT. 
AUDIT-CONTROL:END-EVENT-GROUP. 

See also: END-EVENT-GROUP( ) method, EVENT-GROUP-ID attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex