Importing policies from XML
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Importing policies from XML
OpenEdge provides the persistent procedure, src/auditing/_imp-policies.p that provides an API to import an XML file containing audit policies into either a database or a ProDataSet. This procedure must be executed persistently and then the caller should execute the internal procedures depending on the target for the policies—a ProDataSet or a database. This procedure is used by both the Audit Policy Maintenance tool and the Data Administration tool when importing audit policies from an XML file.
For a database, call import-xml-db procedure and save-changes-to-db procedure. For a ProDataSet, call import-xml-fill-dset procedure and copy-changes-to-dset procedure. The cleanup internal procedure
should be called before deleting the persistent procedure.
AUDIT-POLICY:REFRESH-AUDIT-POLICY() method.The following example is a combination of pseudo-code and ABL that shows how to use some of the procedures that are provided in _imp-policies.p and described in the sections that follow:
Example calls to the API for importing audit policies from XML
|