RIDC – import batch file

A few weeks ago, I was asked by a friend at Oracle to help write some RIDC code to import an Archiver batch file.

A batch file is, “a text file that contains the file records for archived content items. Batch files describe the metadata for each exported revision.”

The code I wrote makes use of two WebCenter Content servicesGET_BATCHFILES and IMPORT_BATCHFILE.

GET_BATCHFILES returns batch files for a specified archive and takes two parameters:

  • IDC_Name: The name of the collection. If you are using the default collection, this is the name of the Content Server instance.
  • aArchiveName: The archive name.

GET_BATCHFILES is used to retrieve the BatchFiles ResultSet. This ResultSet is needed as a parameter for IMPORT_BATCHFILE.

IMPORT_BATCHFILE imports the content items in the specified batch files and takes two parameters and one ResultSet:

  • IDC_Name: The name of the collection. If you are using the default collection, this is the name of the Content Server instance.
  • aArchiveName: The archive name.
  • BatchFile: The ResultSet BatchFiles provided via GET_BATCHFILES.

Note: IMPORT_BATCHFILES needs the ResultSet BatchFiles returned from GET_BATCHFILES but with a slightly different name BatchFile (notice the different spelling).

Below is the code I wrote to import batch files. The variables you would want to change are as follows:

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz