Try OpenEdge Now
skip to main content
Programming Interfaces
Audit Policy Maintenance APIs : Importing policies from XML : import-xml-db procedure
 

import-xml-db procedure

Imports an XML file containing audit polices into a connected database specified by its logical name. If the XML file contains policies that already exist in the database and the ploverride parameter is set to NO, this procedure does not update the database and returns a comma-separated list of existing policies. The caller can then ask for confirmation and call save-changes-to-dbprocedure. If ploverride is set to YES, this procedure automatically overrides all existing policies and does not return any duplicates in the pcDupList parameter. Any errors set the perrorMsg parameter and cause the import operation to be backed out.
Parameters:
INPUT pcxmlFileName AS CHARACTER
Filename of the XML file with audit policies to import.
INPUT pcDbName AS CHARACTER
Logical name of the target database to import the policies.
INPUT plWait AS LOGICAL
YES specifies to wait if a lock on a record cannot be acquired.
INPUT ploverride AS LOGICAL
YES specifies to override existing policies.
OUTPUT pcDupList AS CHARACTER
Comma-separated list of policies that already exist in the specified database and also exist in the XML file.
OUTPUT perrorMsg AS CHARACTER
Error messages.