CurrentContext

The CurrentContext function returns the current policy context.

The policy context consists of all of the currently defined variables in the policy, including EventContainer, DataItems, DataItem, and Num.

Important: This function must be used only in a Log statement and it cannot be assigned to a variable.

Syntax

The CurrentContext function has the following syntax:

CurrentContext()

Example

This example shows how to return the current policy context.

Log(CurrentContext());

This example prints the member variables of the context and their values to the policy log.