Real Time Information Director User Documentation

RTID Extensibility
Hewlett-Packard Company 28
529618 - 001
Example
1.
Open a DOS window
2.
Change directory to c:\rtid
3.
Run setenv.bat to set the environment.
4.
Run the following command to Disassemble an ORDERS05 IDoc:
cd rtsc
java -Dzli.propertyFile=rtsc.properties Disassemble
-i c:\rtid\rtsc\inputs\ -o c:\rtid\rtsc\outputs\
ORDERS05_FusionAM_1.xml
This command will create the file orders05_fusionAM_1Records.xml in the
c:\rtid\rtsc\outputs directory.
You can view this file to verify that your metadata is defined correctly.
5.
If you did not deploy the new metadata class to the NonStop SQL database, you
can run the following command to Disassemble a new ORDERS05EXT IDoc:
java -Dzli.propertyFile=rtsc.properties Disassemble
–c com.hp.rtsc.documents.ORDERS05EXT orders05_ext.xml
This command will create the file order05_extRecords.xml, in the local directory.
You can view this file to verify that your metadata is defined correctly.
Another syntax example:
java - Dzli.propertyFile=my.properties Disassemble -l 100 -i test/testIn testFile.xml
Disassembles the file testFile.xml from the test/testing directory 100 times.
Delsert Driver
The Delsert program is similar to the Disassemble but performs the delete-and-insert of
the XML document into the database and does not produce output files. Running Delsert
does not require starting up the RTID WebLogic services. The Delsert program can be
used to load the RTID data store in batch mode from a directory containing XML files,
where each file is a separate document.
The usual command syntax of the Delsert program is as shown below:
java -Dzli.propertyFile=<propertyFile> Delsert [-l count] [-i
inputFileDirectory] [-c class name] [file name(s)]
where
[-l count] Specifies how many times to run the Delsert in a loop.