As part of understanding how policies work, it is important to understand the components of policies.
Policies are made up of rules.
Actions can have dynamic arguments that derive from tokens that are expanded at run time.
Noun tokens expand to values that are derived from the current operation, the source or destination data stores, or some external source.
Verb tokens modify the concatenated results of other tokens that are subordinate to them.
A policy operates on an XDS document and its primary purpose is to examine and modify that document.
An operation is any element in the XDS document that is a child of the input element and the output element. The elements are part of Novell’s nds.dtd; for more information, see the NDS DTD.
An operation usually represents an event, a command, or a status.
The policy is applied separately to each operation. As the policy is applied to each operation in turn, that operation becomes the current operation. Each rule is applied sequentially to the current operation. All of the rules are applied to the current operation unless an action is executed by a prior rule that causes subsequent rules to no longer be applied.
A policy can also get additional context from outside of the document and cause side effects that are not reflected in the result document.