I have been scouring the user docs for EBS and can not find a reference to them .. Rather sneakily and maybe lazily I have lifted the 'How- to' doc from the ATG pages .. Without further ado .. Overview. Concurrent Processing provides an interface ? The concurrent program developer will implement all of their business logic for a concurrent program in run.
Program(). The main() method, implemented by AOL, will call run. Program() after performing all of the required initialization for the concurrent program, including establishing a database connection, initializing the required contexts, and setting up the log and output files. Cp. Context will have the request specific log and output file input methods. The class name with the main method will be registered as the java executable file name in the register executable form or by using pl/sql API.
Adding a concurrent program parameter In this recipe, we are going to add a parameter to the concurrent program XXHR First Concurrent Program. Parameters allow the users to pass values.
Developer has to register the full package path for the class in register executable form. For example, if wip product creates a class in $WIP. Developer will register ?
Developer has to follow the java notation to register the package path location, ?? These token names will be used in passing the parameter values as parameter string to the concurrent program from the command line for testing the java concurrent program. Developer should set the status and completion text for the java program by using the set. Completion() method provided by AOL. The run. Program() method should call set. Completion() method to report the program completion status to the Concurrent Manager.
The program may set its completion status to Normal, Warning or Error. Completion text is optional. Steps in writing Java Concurrent Program. Template Program: Copy the template Java Concurrent Program from $FND.
Change file name and class name to your required name as Java Concurrent Program name. Program Parameters.
Cp. Context uses the AOL/J utility Parameter List to pass the parameters to the Java Concurrent Program. Please refer AOL/J Parameter list to get the Parameter List name, value pairs. You will be referring parameter list name as the parameter name and corresponding value as the parameter value in the Java Concurrent Program. You have to register the parameter names as token name in the register concurrent program form Parameter screen. Database Operations.
Concurrent Program Parameters Window Enter and update the program parameters that you wish to pass to the program executable. Program parameters defined here should match the variables in your execution file. I need to submit a concurrent program using FND. The program that I need to submit has many parameters. Most of them have default values (default type - SQL) and are dependent on other profile. Defining a Concurrent Program parameter which depends on other parameter. You want LOV for 'Printer name' dependent on 'Printer Style' value. Other concurrent Program then we will check this. Translated Independent and Translated Dependent.
- Concurrent Program Parameters Parameters, also referred to as arguments, are assigned to standard submission concurrent programs. To define a program as standard submission, set the value of the Standard Submission.
- Labels: $FLEX$, concurrent program parameters, list of values.
- Concurrent Program Parameters Default Type and Default Value Concurrent Program Parameters Window Details: Concurrent program can have parameter values which can be entered by the user at run time.
Enabling/disabling concurrent program parameters Step-by-Step: Enabling/disabling concurrent program parameters dyncamically. We would use dependent value sets to enable / disable parameters.
Use get. JDBCConnection method to get the connection object for any JDBC operations within program and release the connection to the Apps. Context connection pool. Use Cp. Context's commit(), rollback() methods to commit or rollback the transactions in the database. These methods will set the program proffered rollback segments after commit or rollback segments for the rest of the database transaction in the Java Concurrent Program. Setting request Completion Status.
Call set. Completion() method of the Req. Completion object which is a member of Cp. Context before returning from your Java Concurrent Program to set the completion status for the program and optional completion text.
Register executable. Register your Java Concurrent Program class name as execution. Register all the parameters that you want to pass to the program in the parameter screen of this form. Register the Parameter List names referred in the program as the token names in the parameter screen. Test Program from OS Prompt.
You can test your Java Concurrent Program from OS prompt by using the following syntax: jre - Ddbcfile=< dbc filename with full path> . Specify the 'request. You can specify the all the application user specific context values with - D to get the specific user context to the program when run from the OS prompt. Pass all the parameters if any by using the AOL/J Parameter list syntax. Sample Programpackage oracle.
Available. Prog implements Java. Concurrent. Program ? You should clean up after the AM properly by calling am. How can I run my Java Concurrent Program from OS prompt?
A. To run a Java Concurrent Program from the OS prompt the syntax is as follows: Please note that there is no newline between different - D options and arguments to jre. Can I use Constructor for my Java Concurrent Program class? A. You can use the constructor without any arguments to it. Example: class My. Prog implements Java. Concurrent. Program .
Can my JCP class Constructor accept arguments? A. NO, do not use any class constructor with arguments. How to pass parameters to my Java Concurrent Program?
A. Java Concurrent Program uses AOL/J Parameter List utility APIs for parameter management. To pass parameters to Java Concurrent Program you have to register those parameters with token name by using the . In the JCP you can access the registered token name in the AOL/J Parameter.
List API and get corresponding value to get the value of the parameter. Refer AOL/J Parameter. List API for more information. Can I use different output file name than the standard name?
A. Yes, you can use different output file name by calling the set. Out. File method of Out. File class. What will happen if I don't call set. Completion method of Req. Completion? A. Your request run by using this program will complete with error. I have a copy of the javadoc posted here.