Real Time Information Director User Documentation

RTID Extensibility
Hewlett-Packard Company 30
529618 - 001
This command should insert the XML IDoc in the database. You can verify by
querying the database.
Reselect Driver
The Reselect program inserts a document into database and selects the same document
from the database. It is easier to use than Select, because it doesn’t require an input file
to list the primary key fields; Reselect gets the primary key fields when it inserts the
document in the database and uses these fields to select it back from the database. The
Reselect program also generates the Records internal format for the input and output files
to make it easy to directly compare the data.
For each XML input file processed by the driver, the Reselect driver generates the
following output:
The input directory will contain a file named InFileRecords.xml, where InFile
matches the name of the input file. This file contains the internal Records format
corresponding to the input file.
The output directory will contain a file named InFile.xml, which should match the
input file specified in the command. (If they dont match, you might need to add
a custom Formatter to the metadata, as described earlier in this document.) The
output directory will also contain a file named InFileRecords.xml, which contains
the internal Records format corresponding to the output file, that is, the file named
InFile.xml in this directory. If the InFileRecords.xml files in the input and output
directories don’t match, there is almost surely an error in the metadata.
The usual command syntax of the Reselect program is as shown:
java -Dzli.propertyFile=<propertyFile> Reselect [-l count] [-c class
name] [-i input directory] [-o output directory] <inputFile(s)>
Where:
[-l count] Specifies how many times to run the Reselect in a loop.
[-c class name] Loads the specified metadata class, which is not in the
DOCCLASS table.
[-i input directory] Specifies from which directory to read the XML files.
[-o output directory] Specifies to what directory to write the XML files.
[filename(s)] Specifies input XML file name(s), without path information.
If you like, you can also specify the following argument on the command line:
-d directoryName Sets the input directory and processes the files in it
-z zipFilename Processes all files in the specified zip file.
Example: