This is an excerpt of a post requesting to do three things in one shot (grab an xml, apply a template, send it to the printer). This exactly what bursting was designed for. Because of the obscurity of how to use the java api's for BI Publisher, people overlook the fact that you can call a majority of the api's through the command line. Nearly every BI Publisher api that is documented has a main method.
I have xml documents coming in on a linux directory. I would like to take the raw xml data and apply a template and send it to a printer.
1. Since there is no way to tell when the xml documents will appear for processing, is there any way I can make the BIP poll the linux directory to check for incoming files?
2. How can I apply a template and make the raw xml data beautiful?
3. Finally, after template application, I need to take the output and send it to a printer. I believe I will have to use delivery manager api's to do it.
Can someone help with the three questions?
I don't know if the xml gateway will solve your problem as "punit" suggested. don't worry though, this problem can get solved pretty easily, Chin up cowboy.
I would setup an autosys job that calls a shell script that loops through the files in a directory and executes a command line argument for the busting api's.
It's going to expect the following arguments:
java oracle.apps.xdo.batch.DocumentProcessor [-debug] -tempdir -datafile
you may need to resolve the whole path. echo $JAVA_TOP. That it's, there's really not much to the api.