Skip Navigation Links | |
Exit Print View | |
Oracle Java CAPS Adapter for Batch Tutorial Java CAPS Documentation |
Oracle Java CAPS Adapter for Batch Tutorial
Importing Non-JBI Based Sample Projects
To Import a Non-JBI Based Sample Project
About the Oracle Java CAPS Business Process Manager Sample Project
Considerations for BPM Projects
Creating the bpBatch_Inbound_LocalFileIn_FTPOut Project
Creating the bpBatch_Inbound_LocalFileIn_FTPOut Business Process
To Create the Business Process
Adding Business Rules to the Design Elements
To Generate the Connectivity Map
Configuring the Adapters' Properties
To Configure the BatchInbound Adapter Properties
To Configure the BatchLocalFile Adapter Properties
Configuring the BatchFTP Adapter Properties
Creating the Deployment Profile
To Create the Deployment Profile
Building and Deploying the Project
prjBatch_Inbound_FTPIn_LocalFileOut
Considerations for JCD Projects
The Adapter for Batch JCD Sample Projects
The prjBatch_Inbound_FTPIn_LocalFileOut Sample Project
Creating the Java Collaboration Definitions
Creating the jcdBatch_Inbound_FTPIn_LocalFileOut Collaboration
To Create the jcdBatch_Inbound_FTPIn_LocalFileOut Collaboration
Using the Java Collaboration Editor
To Create the jcdBatch_Inbound_FTPIn_LocalFileOut Collaboration Business Rules
To Generate the Connectivity Map
Configuring the Adapters Properties
To Configure the BatchInbound Adapter Properties
Configuring the BatchFTP Adapter Properties
Building and Deploying the Project
The prjBatch_Streaming Sample Project
Creating a Java Collaboration Definition
To Create the jcdBatch_Streaming Collaboration
Using the Java Collaboration Editor
To Create the jcdBatch_Streaming Collaboration Business Rules
To Generate the Connectivity Map
Configuring the Adapter Properties
To Configure the BatchInbound Adapter Properties
Configuring the BatchFTP Adapter Properties
Configuring the File Adapter Properties
The prjBatch_Record Sample Project
Creating a Java Collaboration Definition
To Create the jcdBatch_Record Collaboration
Using the Java Collaboration Editor
To Create the jcdBatch_Record Collaboration Business Rules
To Generate the Connectivity Map
Configuring the Adapter Properties
To Configure File Adapter Connectivity Map Properties
To Modify the File Adapter Environment properties
To Configure the BatchRecord Adapter Properties
To Modify the BatchRecordParse Adapter Connectivity Map properties
To Modify the BatchRecord Adapter Environment properties
To Create the Deployment Profile
Building and Deploying the Project
The prjBatch_Secure Project Components
The prjBatch_Secure Project Collaboration Definitions
To Create the jcdBatchFTPOverSSL Java Collaboration
To Create the jcdBatchSCP Java Collaboration
To Create the jcdBatchSFTP Java Collaboration
jcdBatchFTPOverSSL Business Rules
jcdBatchFTPOverSSL Java Source File
Completing the prjBatch_Secure Project
Configuring the Adapter Properties
To Configure the File Adapter Connectivity Map properties
To Modify the File Adapter Environment properties
To Modify the Batch/FTP Adapter Connectivity Map Properties
To Modify the BatchFTPoverSSL Adapter Environment Properties
To Create the Sample Directories
To Create the Deployment Profile
This topic describes how the components of the prjBatch_Streaming sample Project are created. To create the Project manually, do the following:
In this task, you create a Java Collaboration using the Collaboration Definition Wizard (Java). Once a Collaboration Definition has been created, the Business Rules of the Collaboration are written using the Collaboration Editor.
The Collaboration Definition Wizard (Java) appears.
The File Name field now displays receive.
BatchFTP
BatchLocalFile
BatchRecord
The Selected OTDs field now displays the four OTDs.
The Java Collaboration Editor opens to the new Collaboration in the right pane of the NetBeans IDE.
The prjBatch_Streaming Project uses the jcdBatch_Streaming Collaboration created in the Creating a Java Collaboration Definition. To complete the Collaboration, use the Collaboration Editor to create the Business Rules.
The Java Collaboration Editor opens to the jcdBatch_Streaming Collaboration.
The Enter a Comment dialog box appears.
The comment is placed on the Business Rules tree under the last selected item. Click the comment to drag it up or down the Business Rules tree to a new location.
The CopyBatchLocalFile_1.Client.OutputStreamAdapter to BatchFTP_1.Client.OutputStreamAdapter rule configures the BatchFTP and BatchLocalFile stream adapters so that the BatchFTP Adapter does a stream get, and the BatchLocalFile Adapter receives the stream.
The BatchFTP_1.Client.get rule gets the file.
The method selection window appears.
The get method box appears in the Business Rules Designer canvas.
The Copy BatchLocalFile_1.Configuration.PostDirectoryName to BatchLocalFile_1.Configuration.TargetDirectoryName rule dynamically configures the name of the target directory to the post directory name.
The Copy BatchLocalFile_1.Configuration.PostFileName to BatchLocalFile_1.Configuration.TargetFileName rule dynamically configures the name of the target file to the post file name.
The Copy "None" to BatchLocalFile_1.Configuration.PostTransferCommand rule dynamically configures the post transfer command to None so that no post transfer will take place.
The String literal box appears.
The Copy BatchLocalFile_1.Client.InputStreamAdapter to BatchRecord_1.InputStreamAdapter rule configures the BatchLocalFile and BatchRecord stream adapters so that the BatchLocalFile Adapter does a stream get, and the BatchRecord Adapter receives the stream.
The While statement’s rules get the record, publish it to the outbound File Adapter, and the File Adapter writes the file to a local directory.
The method selection window appears.
The get method box appears in the Business Rules Designer canvas.
The method selection window appears.
The write method box appears in the Business Rules Designer canvas.
A new rule is added to the Business Rules tree.
The method selection window appears.
The finish method box appears.
The Connectivity Map provides a canvas for configuring a Project’s components.
The new Connectivity Map appears and a node for the new Connectivity Map is added under the Project on the Project tree labeled CMAP1.
Once your Java Collaboration Definition is completed you can use it to generate your Connectivity Map. Generating the Connectivity Map will automatically populate the canvas with the correct components and bind the components according to the information provided by the Java Collaboration Definition.
The cmBatch_Streaming_jcdBatch_Streaming1 service is added to the canvas.
The External applications are added to the Connectivity Map and the Bindings are created. The red squares in the bindings represent the Batch Adapters. The red color indicates that the adapter properties have not been configured.
Environments include the External Systems, Logical Hosts, Application Servers, and Message Servers used by a Project and contain the configuration information for these components.
The esBatchInbound window is added to the Environment Editor.
The LogicalHost1 box is added to the Environment and LogicalHost1 is added to the Environment Editor tree.
A new Application Server is added to the Services tree under LogicalHost1.
The prjBatch_Streaming Project uses five Adapters, each represented in the Connectivity Map as a node between an External Application and a Service.
The Adapter Properties Editor appears.
|
Note - The BatchInbound Adapter Environment properties can keep the default settings for this sample.
The Adapter Properties Editor appears.
|
The Properties Editor opens to the BatchFTP Adapter Environment properties.
|
The BatchLocalFile Adapter’s specific properties are set from the Connectivity Map. Environment properties can use the default settings.
The Adapter Properties Editor appears.
|
The BatchRecord Adapter’s specific properties are set from the Connectivity Map. Environment properties can use the default settings.
The Properties Sheet opens to the Adapter Connectivity Map properties.
|
The Properties Editor opens to the outbound File Adapter properties.
|
The Properties Editor opens to the File Adapter Environment properties.
|
A Deployment Profile is used to assign Collaborations and message destinations to the Application Server and message server. Deployment Profiles are created using the Deployment Editor.
Make sure that the selected Environment is envBatch_Inbound_FTPIn_LocalFileOut.
The Project’s components are automatically mapped to their respective system windows.
Note - If any of your Project components did not successfully map to an external system, open each of your Adapter’s configuration properties (Connectivity Map and Environment) and click OK to close and save the current configuration, then click Automap again.
The Build process compiles and validates the Project’s Java files and creates the Project EAR file.
If there are any validation errors, a Validation Errors pane will appear at the bottom of the Deployment Editor and displays information regarding the errors.
Before You Begin
Make sure the GlassFish server is started.
The Deploy prompt appears.
A message appears when the project is successfully deployed.