Skip Headers

Oracle Application Server Adapter for Oracle Applications User's Guide
10g (10.1.3.5.0)
Part Number E14293-01
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next

Using Interface Tables and Views for BPEL Process Integration

This chapter covers the following topics:

Overview of Interface Tables and Views

OracleAS Adapter for Oracle Applications uses interface tables to insert and update data in Oracle Applications, and uses views to retrieve data from Oracle Applications. This chapter describes the following interfaces:

Interface Tables

OracleAS Adapter for Oracle Applications use interface tables to insert data in Oracle Applications. For example, by using interface tables, you can insert a purchase order into Oracle Applications to generate the sales order automatically. Data is never loaded directly into Oracle Applications base tables. Instead, data is first loaded into interface tables, and then Oracle-supplied concurrent programs move data from interface tables to base tables. This ensures that all business logic and processing is handled using Oracle components.

OracleAS Adapter for Oracle Applications use open interface tables to integrate with Oracle Applications through direct database access. The OracleAS Adapter for Oracle Applications inserts data into the open interface tables. These interface tables can be used only for insert operations and support only an inbound connection into Oracle Applications.

Interface tables are intermediate tables into which the data is inserted first. Once the data gets inserted into the interface tables, the data is validated, and then transferred to the base tables. Base tables are real application tables that reside in the application database. The data that resides in the interface tables is transferred to the base tables using concurrent programs. A concurrent program is an instance of an execution file. Concurrent programs are scheduled in Oracle Applications to move data from interface tables to base tables. These programs perform the application-level checks and run validation before inserting data into base tables.

Interface Views

OraclesAS Adapter for Oracle Applications uses interface views to retrieve data from Oracle Applications. For example, by using the views, you can retrieve information about your customers from the required tables in Oracle Applications.

OracleAS Adapter for Oracle Applications uses interface views to retrieve data from Oracle Applications. Views allow only simple definition. By using the views, you can get synchronous data access to Oracle Applications. In OracleAS Adapter for Oracle Applications, interface views are created on base tables as well as interface tables. These views can be used only for select operations.

In the Oracle Applications 11.5.10 release, you cannot work on multiple interface views. A work around to address this would be to create a view that spans multiple views.

Design-Time Tasks for Interface Tables

This section describes how to configure the OracleAS Adapter for Oracle Applications to use interface tables. It describes the steps to configure OracleAS Adapter for Oracle Applications using the Adapter Configuration Wizard in Oracle JDeveloper.

Prerequisites to Configure Interface Tables

Following is a list of the procedures required to accomplish the design-time tasks.

  1. Create a new BPEL project

  2. Add a partner link

  3. Configure the Invoke activity

  4. Configure the Assign activity

Creating a New BPEL Project

To create a new BPEL project

  1. Open JDeveloper BPEL Designer.

  2. From the File menu, select New. The New Gallery dialog box appears.

  3. Select All Items from the Filter By list. This displays a list of available categories.

  4. Expand the General node, and then select Projects.

  5. Select BPEL Process Project from the Items list.

    Creating a New BPEL Process Project

    the picture is described in the document text

  6. Click OK. The BPEL Project Creation Wizard - Project Settings dialog box appears.

  7. In the Name field, enter a descriptive name. For example, enter InsertSalesOrder.

    Keep the default selection Use Default Project Settings unchanged.

  8. Keep the default selection Template as the Type field. Select Asynchronous BPEL Process as the BPEL process type.

    Specifying New BPEL Project Settings

    the picture is described in the document text

  9. Click OK.

    A new asynchronous BPEL process is created with the receiveInput and callbackClient activities.

    The required source files including bpel.xml, InsertSalesOrder.bpel, and InsertSalesOrder.wsdl are also generated.

    New BPEL Process Project

    the picture is described in the document text

Adding a Partner Link

This section describes how to add a partner link to your BPEL process. A partner link defines the link name, type, and the role of the BPEL process that interacts with the partner service.

To add a partner link

  1. In JDeveloper BPEL Designer, click Services in the Component palette.

    Drag and drop Oracle Applications icon into the border area of the process diagram.

    The Adapter Configuration Wizard appears.

  2. Click Next. The Service Name dialog box appears.

  3. Enter the following information:

    1. In the Service Name field, enter a service name.

    2. In the Description field, enter a description for the service. This is an optional field.

      Specifying the Service Name

      the picture is described in the document text

  4. Click Next. The Service Connection dialog box appears.

  5. You can perform either one of the following options for your database connection:

    Note: You need to connect to the database where Oracle E-Business Suite is running.

  6. Once you have created a new connection or selected an existing connection, you can add an interface table available in Oracle E-Business Suite.

  7. Click Next.

    For Oracle E-Business Suite Release 12:

    If you are connecting to Oracle E-Business Suite Release 12, then the IREP File not present dialog box appears indicating that OracleAS Adapter for Oracle Applications could not find the Oracle Integration Repository data file corresponding to the database you are connecting in your workspace. Absence of the data file would make browsing or searching of Integration Repository tree considerably slow. You can choose to extract the data file and create a local copy of the Integration Repository data file. Once it is created successfully, OracleAS Adapter for Oracle Applications will pick it up automatically next time and retrieve data from your local Integration Repository.

    You can select one of the following options:

    For Oracle E-Business Suite pre-Release 11.5.10:

    If you are connecting to a pre-11.5.10 Oracle E-Business Suite instance, you must select the interface type in the Adapter Configuration Wizard. Select Tables/Views/APIs/Concurrent Programs to proceed.

    Click Add to open the Oracle Applications Module Browser.

  8. The Oracle Applications Module Browser combines interface data from Integration Repository with information about the additional interfaces supported by Adapter for Oracle Applications, organized in a tree hierarchy.

    Adding a Table from the Oracle Applications Module Browser

    the picture is described in the document text

    Note: Oracle Applications Module Browser includes the various product families that are available in Oracle Applications. For example, Applications Technology or Order Management Suite are product families in Oracle Applications. The product families contain the individual products. For example, Order Management Suite contains the Order Management product. The product contains the business entities associated with the product. For example, the Order Management product contains the Sales Order business entity. Business entities contain the various application modules that are exposed for integration. These modules are grouped according to the interface they provide. Tables can be found under the OpenInterfaces category.

    Navigate to Order Management Suite (OM_PF) > Order Management (ONT) > Sales Order (ONT_SALES_ORDER) > OpenInterfaces >Order Management Sales Orders Open Interface (OEOIMP) > Tables to select OE_HEADERS_IFACE_ALL.

    Click OK. The Application Interface dialog appears with the selected open table.

    Application Interface Dialog

    the picture is described in the document text

  9. Click Get Object to open the Oracle Applications Module Browser again to select another open interface table OE_LINES_IFACE_ALL using the same navigation path Order Management Suite (OM_PF) > Order Management (ONT) > Sales Order (ONT_SALES_ORDER) > OpenInterfaces >Order Management Sales Orders Open Interface (OEOIMP) > Tables.

    Click OK. The Application Interface dialog appears with the two selected tables.

    Application Interface Dialog

    the picture is described in the document text

  10. Click Next.

  11. In the Operation Type dialog, select Perform an Operation on a Table, and then select the Insert check box.

    Selecting the Type of Operation

    the picture is described in the document text

    Note: You can only insert data into the interface tables even though the select option is enabled.

  12. Click Next. The Select Table dialog box appears.

  13. Select OE_HEADERS_IFACE_ALL as the root database table in the Select Table dialog box, which displays the tables that have been previously imported in this JDeveloper project (including tables that were imported for other partner links). This enables you to reuse configured table definitions in multiple partner links.

    Selecting a Root Table

    the picture is described in the document text

  14. Click Next. The Define Primary Keys dialog box appears.

  15. Select the following primary keys for the OE_HEADERS_IFACE_ALL table:

    Defining Primary Keys Page for OE_HEADERS_IFACE_ALL

    the picture is described in the document text

    Click Next.

    Select the same primary keys for the OE_LINES_IFACE_ALL table.

  16. Click Next. The Relationships dialog box appears.

  17. Click Create to define a new relationship. The Create Relationship dialog box appears.

    Defining Relationships

    the picture is described in the document text

  18. Enter the following information to define the relationship between the header and the detail table:

  19. Click OK. The newly created relationship information appears in the Relationships dialog.

    Relationships Dialog

    the picture is described in the document text

  20. Click Next and then click Finish to complete the process.

    The wizard generates the WSDL file corresponding to the selected interface. This WSDL file is now available for the partner link.

    the picture is described in the document text

  21. Click Apply and then OK. The partner link is created with the required WSDL settings.

Configuring the Invoke Activity

To configure the Invoke activity

  1. In JDeveloper BPEL Designer, drag and drop the Invoke activity from the Component palette into the process diagram between the Receive and Callback activities.

    Adding an Invoke Activity

    the picture is described in the document text

  2. Link the Invoke activity to the SelectOrder service. The Edit Invoke dialog appears.

    Configuring the Invoke Activity

    the picture is described in the document text

  3. Click the Create icon next to the Input Variable field. Enter a descriptive name for the variable. You can also accept the default name. Select Global Variable and click OK.

  4. In the Invoke dialog box, click Apply and then OK to complete the configuration of the Invoke activity.

Configuring the Assign Activity

The next task is to add an Assign activity to provide values to the input variables.

To configure the Assign activity

  1. Drag and drop the Assign activity to the process map. The Assign activity must be dropped between the Receive and Invoke activities.

    Adding an Assign Activity

    the picture is described in the document text

  2. Double-click the Assign activity in the process map. The Assign dialog box appears.

  3. Click Create and select Copy Operation... to open the Create Copy Operation dialog box.

  4. In the From navigation tree, select type Variable. Navigate to Variable > Process > Variables > inputVariable and select Payload.

    In the To navigation tree, select type Variable. Navigate to Variable > Process > Variables > Invoke_insert_InputVariable and select OeHeadersIfaceAllCollection.

    Assigning Values to Input Variables

    the picture is described in the document text

  5. After assigning values to the input variables, click OK.

  6. Click Apply and OK to complete the Assign activity.

Run-Time Tasks for Interface Tables

After designing the BPEL process, the next step is to deploy, run, and monitor it.

  1. Deploy the BPEL process

  2. Test the BPEL process

Deploying the BPEL Process

You need to deploy the BPEL process to a BPEL server before you can run it. The BPEL process is first compiled, and then deployed to the BPEL server.

To deploy the BPEL process

  1. Select the BPEL project in the Applications window.

  2. Right-click the project name. Select Deploy > [Server Connection] > Deploy to Default Domain from the menu that appears.

    Deploying the BPEL Process

    the picture is described in the document text

  3. The BPEL process is compiled and deployed. You can check the progress in the Messages window.

Testing the BPEL Process

Once the BPEL process is deployed, it can be seen in the BPEL console. You can manage and monitor the process from the BPEL console. You can also test the process and the integration interface by manually initiating the process.

To manually initiate and monitor the BPEL process

  1. Navigate to Oracle Application Server 10g BPEL Console (http://<soaSuiteServerHostName>:<port>/BPELConsole).

    The BPEL Console login page appears.

    the picture is described in the document text

  2. Enter the username and password and click Login.

  3. The Oracle Enterprise Manager 10g BPEL Control appears. The list of deployed processes is shown under Deployed BPEL Processes.

  4. Click the BPEL process that you want to initiate. The Initiate page appears. Enter the input values required by the process.

  5. Click Post XML Message to initiate the process.

  6. The BPEL process is now initiated. You can check the process flow by clicking the Visual Flow icon.

    BPEL Console Initiate Page

    the picture is described in the document text

  7. The audit trail provides information about the steps that have been executed. You can check the audit trail by clicking the Audit Instance icon.

    Note: To confirm that the records have been written into the open interface tables, you can write the SQL SELECT statements and fetch the results showing the latest records inserted into the open interface tables. Alternatively, open the forms of the module for which the record has been inserted and then check for changes in the form.

Design-Time Tasks for Interface Views

This section describes the steps to configure OracleAS Adapter for Oracle Applications using the Adapter Configuration Wizard in Oracle JDeveloper.

Prerequisites to Configure Interface Views

You need to define a uniqueness criteria, which could be a single key or composite keys.

Following is a list of the procedures required to accomplish the design-time tasks.

  1. Create a new BPEL project

  2. Add a partner link

  3. Configure the Invoke activity

  4. Configure the Assign activity

Creating a New BPEL Project

To create a new BPEL project

  1. Open JDeveloper BPEL Designer.

  2. From the File menu, select New. The New Gallery dialog box appears.

  3. Select All Items from the Filter By list. This displays a list of available categories.

  4. Expand the General node, and then select Projects.

  5. Select BPEL Process Project from the Items list.

    Creating a New BPEL Process Project

    the picture is described in the document text

  6. Click OK. The BPEL Project Creation Wizard - Project Settings dialog box appears.

  7. In the Name field, enter a descriptive name. For example, enter SelectCustomer.

    Keep the default selection Use Default Project Settings unchanged.

  8. Keep the default selection Template as the Type field. Select Asynchronous BPEL Process as the BPEL process type.

    Specifying a Name for the New BPEL Process Project

    the picture is described in the document text

  9. Click OK.

    A new asynchronous BPEL process is created with the receiveInput and callbackClient activities.

    The required source files including bpel.xml, InsertPurchaseOrder.xml, and InsertPurchaseOrder.wsdl are created.

    New BPEL Process

    the picture is described in the document text

Adding a Partner Link

This section describes how to add a partner link to the BPEL process. A BPEL partner link defines the link name, type, and the role of the BPEL process that interacts with the partner service.

To add a partner link

  1. In JDeveloper BPEL Designer, click Services in the Component palette.

    Drag and drop Oracle Applications icon into the border area of the process diagram.

    The Adapter Configuration Wizard appears.

  2. Click Next. The Service Name dialog box appears.

  3. Enter the following information:

    1. In the Service Name field, enter a service name, such as OrderAck.

    2. In the Description field, enter a description for the service. This is an optional field.

  4. Click Next. The Service Connection dialog box appears.

  5. You can perform either one of the following options for your database connection:

    Note: You need to connect to the database where Oracle E-Business Suite is running.

  6. Once you have created a new connection or selected an existing connection, you can add an interface view available in Oracle E-Business Suite.

  7. Click Next in the Service Connection dialog box.

    For Oracle E-Business Suite Release 12:

    If you are connecting to Oracle E-Business Suite Release 12, then the IREP File not present dialog box appears indicating that OracleAS Adapter for Oracle Applications could not find Oracle the Integration Repository data file corresponding to the database you are connecting in your workspace. Absence of the data file would make browsing or searching of Integration Repository tree considerably slow. You can choose to extract the data file and create a local copy of the Integration Repository data file. Once it is created successfully, OracleAS Adapter for Oracle Applications will pick it up automatically next time and retrieve data from your local Integration Repository.

    You can select one of the following options:

    For Oracle E-Business Suite pre-Release 11.5.10:

    If you are connecting to a pre-11.5.10 Oracle E-Business Suite instance, you must select the interface type in the Adapter Configuration Wizard. Select Tables/Views/APIs/Concurrent Programs to proceed.

    Click Add to open the Oracle Applications Module Browser.

  8. The Oracle Applications Module Browser combines interface data from Integration Repository with information about the additional interfaces supported by Adapter for Oracle Applications, organized in a tree hierarchy.

    Selecting a View from the Oracle Applications Module Browser

    the picture is described in the document text

    Navigate to Order Management Suite (OM_PF) > Order Management (ONT) > Sales Order (ONT_SALES_ORDER) > Interface_Views to select OE_HEADER_ACKS_V.

    Click OK.

    Note: You can also search for a view by entering the name of the program in the Object Name field. Select the Views check box, and then click Search.

  9. The Application Interface dialog appears with the selected interface view.

    the picture is described in the document text

    Click Get Object to open the Oracle Applications Module Browser again to select another open interface table OE_LINES_ACKS_V using the same navigation path.

    Click OK. The Application Interface dialog appears with the two selected views.

    Application Interface Dialog

    the picture is described in the document text

  10. Click Next in the Operation dialog box. The Operation Type dialog box appears.

  11. Select Perform an Operation on a Table, then select Select.

    Selecting the Type of Operation

    the picture is described in the document text

    Note: You can perform only the Select operation on views.

  12. Click Next. The Select Table dialog box appears.

  13. Select APPS.OE_HEADERS_ACKS_V as the root database table in the Select Table dialog box, which displays the tables that have been previously imported in this JDeveloper project (including tables that were imported for other partner links). This enables you to reuse configured table definitions in multiple partner links.

    Selecting a Root Table

    the picture is described in the document text

    Select the required database table, and then click Next. The Define Primary Keys dialog box appears.

  14. Select the following primary keys for the APPS.OE_HEADERS_ACKS_V view:

    Defining Primary Keys Page for APPS.OE_HEADERS_ACKS_V

    the picture is described in the document text

    Click Next.

    Select the same primary keys for the APPS.OE_LINES_ACKS_V view.

  15. Click Next. The Relationships dialog box appears.

  16. Click Create to define a new relationship. The Create Relationship dialog box appears.

    Defining Relationships

    the picture is described in the document text

  17. Enter the following information to define the relationship between the header and the detail table:

  18. Click Next. The Object Filtering dialog box appears.

    Object Filtering

    the picture is described in the document text

  19. Click Next to open the Define Selection Criteria dialog box.

    Define Selection Criteria Dialog

    the picture is described in the document text

    The Define WHERE Clause dialog box appears. If your service contains a SELECT query, then you can customize the WHERE clause of the SELECT statement.

    You can click Add to add a new parameter.

  20. Click Next. The Finish dialog box appears.

  21. Click Finish. The Create Partner Link dialog box appears.

    the picture is described in the document text

  22. Click Apply and OK. The partner link is created with the required WSDL settings.

Configuring the Invoke Activity

To configure the Invoke activity

  1. In JDeveloper BPEL Designer, drag and drop the Invoke activity from the Component Palette into the process diagram between the receiveInput and callbackClient activities.

  2. Link the Invoke activity to the OrderAck service. The Edit Invoke dialog box appears.

  3. Click the Create icon next to the Input Variable field. The Create Variable dialog box appears.

    Select Global Variable and enter a name for the variable. You can also accept the default name. Click OK.

    Click the Create icon next to the Output Variable field. The Create Variable dialog box appears.

    Select Global Variable and enter a name for the variable. You can also accept the default name. Click OK.

    Creating a Variable

    the picture is described in the document text

  4. In the Invoke dialog box, click Apply and then OK. The BPEL process is configured with the Invoke activity.

Configuring the Assign Activity

The next task is to add an Assign activity to the process map. This is used to provide values to the input variables.

To configure the Assign activity

  1. Drag and drop the Assign activity to the process map. The Assign activity must be added between the Receive and Invoke activities.

  2. Double-click the Assign activity in the process map. The Assign dialog box appears.

  3. Click Create and select Copy Operation... to open the Create Copy Operation dialog box.

  4. In the From navigation tree, select type Variable. Navigate to Variable > Process > Variables > inputVariable and select Payload.

    In the To navigation tree, select type Variable. Navigate to Variable > Process > Variables > Invoke_OrderAckSelect_InputVariable and select OrderAckSelect_inputparameters.

    Assigning Values to the Input Variables

    the picture is described in the document text

    Click OK.

  5. After assigning values to the input variables, click Apply and OK to complete the Assign activity.

Run-Time Tasks for Views

After designing the BPEL process, the next steps are to deploy, run and monitor it.

  1. Deploy the BPEL process

  2. Test the BPEL process

Deploying the BPEL Process

You need to deploy the BPEL process before you can run it. The BPEL process is first compiled, and then deployed to the BPEL server. The following steps discuss deploying the BPEL process to a BPEL server:

To deploy the BPEL process

  1. Select the BPEL project in the Applications window.

  2. Right-click the project name. Select Deploy > [Server Connection] > Deploy to Default Domain from the menu that appears.

    Deploying the BPEL Process

    the picture is described in the document text

  3. The BPEL process is compiled and deployed. You can check the progress of the compilation in the Messages window.

Testing the BPEL Process

Once the BPEL process is deployed, you can manage and monitor the process from the BPEL Console. You can also test the process and the integration interface by manually initiating the process. The following steps discuss manually initiating and monitoring the BPEL process:

To manually initiate and monitor the BPEL process

  1. Navigate to Oracle Application Server 10g BPEL Console (http://<soaSuiteServerHostName>:<port>/BPELConsole).

    The BPEL Console login page appears.

    the picture is described in the document text

  2. Enter the username and password and click Login.

  3. The Oracle Enterprise Manager 10g BPEL Control appears. The list of deployed processes is shown under Deployed BPEL Processes.

  4. Deployed BPEL Processes

    the picture is described in the document text

  5. Click the BPEL process that you want to initiate. The Initiate page appears. Enter the input values required by the process.

  6. Click Post XML Message to initiate the process.

  7. The BPEL process is now initiated. You can check the process flow by clicking the Visual Flow icon on the BPEL Console Initiate page.

    BPEL Console Initiate Page

    the picture is described in the document text

  8. The audit trail provides information about the steps that have been executed. You can check the audit trail by clicking the Audit Instance icon.