The batch driver sample program uses these files:
execapi.bat—Sets the environment, passes arguments to the program, and runs the program including using the control file, batch_driver.cf. This file is in <MIDDLEWARE_HOME/user_projects/epmsystem1/bin/ReportingAnalysis/ SDK.
batch_driver.cf—Control file that contains control statements that describe artifacts that are created in the database by the batch driver program. It is in <EPM_ORACLE_HOME>/products/biplus/SDK/samples/java. See Batch Driver Sample Program Control File.
In this tutorial, the batch_driver.cf file contains this single line control statement that adds a data artifact. It assumes that the artifacts accessor1 and accessor2 exist in the system.
data name=aDocument^path=/batchFolder^file=D:\Doc \bart.doc^browse=true^autodelete=true^desc=A test document by batchdriver^expire=2010-06-22 12:00:00^keyword=MS doc^keyword=Design doc^perm=accessor1^perm=accessor2.
To run the batch driver sample:
At a command line, change to the directory that contains execapi.bat.
For example, /bin/ReportingAnalysis/SDK.
Run the batch driver sample program.
If you are using the installed BatchDriver.class, use this syntax:
execapi com.sqribe.rm.BatchDriver username password host port control_filename
execapi com.sqribe.rm.BatchDriver administrator administrator venice 6800 batch_driver.cf
If you compiled the batch driver program, use this syntax:
execapi BatchDriver username password host port control_filename
execapi BatchDriver administrator administrator venice 6800 batch_driver.cf
Open Oracle Enterprise Performance Management Workspace, Fusion Edition and check that the artifact in the batch_driver.cf is listed.
Create a batch file to run this class again by copying and saving one of the following lines from the command line to a batch file, batch_driver.bat, in <EPM_ORACLE_HOME>/products/biplus/SDK/samples/java:
execapi com.sqribe.rm.BatchDriver administrator administrator venice 6800 batch_driver.cf
execapi BatchDriver administrator administrator venice 6800 batch_driver.cf
Click the batch file to run the batch driver sample program. Change the batch_driver.cf file to add other artifacts. For more information on the batch driver control file, see Batch Driver Sample Program Control File.