Skip Headers
Oracle® Application Server Adapter for J.D. Edwards OneWorld User's Guide
10g Release 3 (10.1.3.4.0)

Part Number E14197-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

4 Integration with Oracle BPEL Process Manager

OracleAS Adapter for J.D. Edwards OneWorld integrates seamlessly with Business Process Execution Language (BPEL) Process Manager to facilitate Web service integration. Oracle BPEL Process Manager is based on the Service-Oriented Architecture (SOA). It consumes adapter services exposed as Web Service Definition Language (WSDL) documents.

This chapter includes the following topics:

Overview of Adapter Integration with Oracle BPEL Process Manager

To integrate with Oracle BPEL Process Manager, OracleAS Adapter for J.D. Edwards OneWorld must be deployed in the same OC4J container as Oracle BPEL Process Manager. The underlying adapter services must be exposed as WSDL files, which are generated during design time in Oracle Application Server Adapter Application Explorer (Application Explorer) for both request-response (outbound) and event notification (inbound) services of the adapter. See "Generating WSDL (J2CA Configurations Only)" for more information.

The generated WSDL files are used to design the appropriate BPEL processes for inbound or outbound adapter services. A completed BPEL process must be successfully compiled in JDeveloper and deployed to a BPEL server. Upon deployment to the BPEL server, every newly built process is automatically deployed to the Oracle BPEL Console, where you run, monitor, administer BPEL processes, and listen to adapter events.

When using the adapter with Oracle BPEL Process Manager installed on OracleAS BPEL PM home directory is OC4J_SOA, located as follows:

OracleAS_home\j2ee\OC4J_SOA

See Also:

  • Oracle Application Server Adapter Concepts

  • Oracle BPEL Process Manager Developer's Guide

Deployment of Adapter

During installation, OracleAS Adapter for J.D. Edwards OneWorld is deployed as a J2CA 1.0 resource adapter within the OC4J J2CA container. The adapter must be deployed in the same OC4J container as Oracle BPEL Process Manager.

See Also:

Oracle Application Server Adapter Concepts

Design Time

The following tools are required to complete your adapter design-time configuration:

Note:

The examples in this chapter demonstrate the use of JDeveloper.

Before you design a BPEL process, you must generate WSDL using Application Explorer. See "Generating WSDL (J2CA Configurations Only)" for more information. The WSDL generated in Application Explorer is used in the BPEL process as Partner Links.

Namespace Requirements

The purpose of an XML namespace is to allow the deployment of XML vocabularies (where element and attribute names are defined) in a global environment and to reduce the risk of name collisions in a given document when vocabularies are combined. Qualified namespaces are used for stricter schema validation. In documents conforming to this specification, element and attribute names appear as qualified names. Syntactically, they are either prefixed names or unprefixed names. An attribute-based declaration syntax is provided to bind prefixes to namespace names and to bind a default namespace that applies to unprefixed element names. These declarations are scoped by the elements on which they appear so that different bindings may apply in different parts of a document. Processors conforming to this specification must recognize and act on these declarations and prefixes.

In the 10.1.3.1.0 SOA release, the recommendations for BPEL integrations is to perform stricter name space validations. As a result, Application Explorer generates Web services for the back-end with the namespace marked as “Qualified”. During testing or usage phases of this service by BPEL, the request XML document that is used should adhere to the schema and WSDL document. Once again, it is important to remember that the namespaces are qualified. To further understand this point, the difference is illustrated with the following example:

  1. Input XML for BPEL based on unqualified namespaces:

    <?xml version='1.0' encoding='utf-8' ?><jdeRequest type="callmethod" user="PSFT" pwd="PSFT" environment="DV810" session=""><callMethod name="GetEffectiveAddress">  <params>    <param name="mnAddressNumber">1001</param>  </params></callMethod></jdeRequest>
    
  2. Input XML for BPEL based on qualified namespaces:

    <jdeRequest xmlns="urn:iwaysoftware:jde/services/CALLBSFN/AddressBook/GetEffectiveAddress" type="callmethod" session="" sessionidle=""><callMethod runOnError="" trans="String" name="GetEffectiveAddress" app="string" returnNullData="yes">  <params>    <mnAddressNumber>1001</mnAddressNumber>    </params>  <onError abort="Yes"/> </callMethod></jdeRequest>
    

Note: If you are passing an unqualified input against a WSDL document that is expecting qualified namespaces, BPEL will throw the exception as “Unable to process input xml...."

Design a BPEL Process for Request-Response Service (Outbound)

An outbound BPEL process consists of PartnerLink, Invoke, and Assign process activities. You must first create a new Application Server connection, Integration Server connection, and a synchronous BPEL process template.

Create a New Application Server Connection

To create a new Application Server connection:

  1. Display the connections by clicking the Connections Navigator tab at the top of the upper left pane in JDeveloper.

    Connections window
    Description of the illustration bpel_30.gif

  2. Right-click Application Server and select New Application Server Connection.

    The Create Application Server Connection - Welcome dialog box is displayed.

  3. Click Next.

    The Create Application Server Connection - Step 1 of 4: Type dialog box is displayed.

    Application Server Connection Wizard
    Description of the illustration bpel_32.gif

  4. Specify a unique name and select a connection type for your Application Server connection and click Next.

    The Create Application Server Connection - Step 2 of 4: Authentication dialog box is displayed.

    Specify authentication information
    Description of the illustration bpel_33.gif

  5. Specify a valid user name and password for the Application Server you want to connect to.

  6. Select Deploy Password.

  7. Click Next.

    The Create Application Server Connection - Step 3 of 4: Connection dialog box is displayed.

    Specify connection information
    Description of the illustration bpel_33a.gif

  8. Select the Single Instance connection option.

  9. Enter localhost as the host name and 6003 for the OPMN port.

  10. Enter home as the OC4J instance name

  11. Click Next.

    The Create Application Server Connection - Step 4 of 4: Test dialog box is displayed

    Testing the connection
    Description of the illustration bpel_33b.gif

  12. Click Test Connection.

    When the test is complete and the connection is successful, a Success! message appears in the status area.

  13. Click Finish.

    Your newly created Application Server connection is displayed in the Connections Navigator tab under the Application Server node.

    Application Server connection added
    Description of the illustration bpel_34.gif

Create a New Integration Server Connection

To create a new Integration Server connection:

  1. Display the connections by clicking the Connections Navigator tab at the top of the upper left pane in JDeveloper.

    Connections window
    Description of the illustration bpel_int1.gif

  2. Right-click Integration Server and select New Integration Server Connection.

    The Create Integration Server Connection - Welcome dialog box is displayed.

  3. Click Next.

    The Create Integration Server Connection - Step 1 of 3: Name dialog box is displayed.

    Integration Server Connection Wizard
    Description of the illustration bpel_int2.gif

  4. Specify a unique name and click Next.

    The Create Integration Server Connection - Step 2 of 3: Connection dialog box is displayed.

    Specify connection information
    Description of the illustration bpel_int3.gif

  5. Select an Application Server connection, which is already created.

  6. Enter localhost as the host name and 8888 for the port number.

  7. Select Add host name to the list of proxy exceptions and click Next.

    The Create Integration Server Connection - Step 3 of 3: Test Connection dialog box is displayed.

    Test the connection
    Description of the illustration bpel_int4.gif

  8. Click Test Connection.

    When the test is complete and the connection is successful, a Success! message appears in the status area.

  9. Click Finish.

    Your newly created Integration Server connection is displayed in the Connections Navigator tab under the Integration Server node.

    Integration Server connection added
    Description of the illustration bpel_int5.gif

Testing Outbound BPEL and ESB Processes

The BPEL console enables the testing of deployed BPEL processes. Once a process is deployed, you can manage, monitor, and run an end-to-end scenario using the Initiate tab in the console. The OracleAS Adapter for J.D. Edwards OneWorld is certified for testing using the XML Payload option and the option of running using Through Java Delivery API. It is recommended that developers use this method for testing the OracleAS Adapter for J.D. Edwards OneWorld.

When testing an outbound BPEL process from the BPEL console or an outbound ESB process from the Enterprise Manager console, do not use the XML envelopes that are generated by these consoles. Instead, remove them and use the XML payloads that are generated from the schemas, which conform to the WSDLs for namespace qualifications.

The ESB data flows can be tested using the Enterprise Manager console. When creating an ESB data flow and interactions, the Web services are created and registered with the Oracle Application Server. For more information on creating an ESB outbound process, see Chapter 5, "ESB Integration Examples".

J.D. Edwards OneWorld Service Integration

This topic illustrates J.D. Edwards service integration. The design-time and run-time procedures are described below.

Design-Time Configuration

Generating WSDL for Request/Response Service

To generate WSDL for outbound interaction:

  1. Start Application Explorer and connect to a defined J.D. Edwards target.

  2. Expand Services, JDEJAVA_CFIN, B0100033, and then select GetEffectiveAddress.

  3. Right-click GetEffectiveAddress.

    The following menu is displayed.

    Export WSDL dialog box
    Description of the illustration wlae_exportwsdl.gif

  4. Select Create Outbound JCA Service (Request/Response).

    The Export WSDL dialog box is displayed.

    Export WSDL dialog box
    Description of the illustration wlae_exportwsdl2.gif

  5. Accept the default name for the file.

    The .wsdl file extension is added automatically.

  6. Ensure that qualified is selected as the element form, which is the default.

  7. Click OK.

    The WSDL file is created.

Creating a BPEL PM Server Connection

Before you design an outbound BPEL process, you must configure a new Application Server and Integration Server connection in Oracle JDeveloper. For more information, see Chapter 4, "Integration with Oracle BPEL Process Manager".

Creating a BPEL Project for a Synchronous BPEL Process

To create a BPEL Project for a synchronous BPEL process:

  1. At the top of the upper left pane, click the Applications Navigator tab and select an application. If an application does not exist, then you must create an application.

    JDeveloper Applications tab
    Description of the illustration bpel_34a.gif

  2. Right-click the application and select New Project.

    The New Gallery window is displayed.

    New Gallery
    Description of the illustration bpel_1.gif

  3. From the Items list, select BPEL Process Project and click OK.

    The BPEL Project Creation Wizard - Project Settings dialog box is displayed.

    BPEL Project Creation Wizard - Project Settings dialog box
    Description of the illustration bpel_2a.gif

  4. Perform the following steps:

    1. Specify a name for the BPEL project, for example, JDE_Service.

      The Namespace field is updated automatically.

    2. From the Template list, select Synchronous BPEL Process.

  5. Click OK.

Designing the BPEL Process for GetEffectiveAddress (Outbound Service)

To design the BPEL Process:

  1. From the Services pane on the right, drag and drop a PartnerLink to the visual editor.

    The Create Partner Link dialog box is displayed.

    Create Partner Link window
    Description of the illustration bpel_4.gif

  2. Click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    Service Explorer dialog box
    Description of the illustration bpel_5.gif

  3. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

    Service Explorer dialog box
    Description of the illustration bpel_6.gif

  4. Select GetEffectiveAddress_invoke.wsdl and click OK.

    The WSDL File field in the Create Partner Link dialog box displays the name and location of the selected WSDL file. The Partner Link Type field specifies the PartnerLink defined in the WSDL file.

    Create Partner Link
    Description of the illustration bpel_7.gif

    Perform the following steps:

    1. Leave the My Role field unspecified. The role of the PartnerLink is null, as it will be synchronously invoked from the BPEL process.

    2. From the Partner Role list, select the default value GetEffectiveAddressRole. This is the role of the BPEL process.

  5. Click OK.

    The new PartnerLink appears in the visual editor.

  6. Select Save from the File menu.

  7. From the Process Activities pane on the right, drag an Invoke activity to the visual editor and place it between the Receive activity (receiveInput) and the Reply activity (replyOutput).

    The Invoke process activity is shown in the following diagram view.

    Diagram View of JDeveloper showing the new activities
    Description of the illustration bpel_42.gif

  8. Drag the right arrow from Invoke_1 and connect it to the JDE_Service_PL PartnerLink.

    The Edit Invoke dialog box is displayed.

    Edit Invoke dialog box
    Description of the illustration bpel_43.gif

    Perform the following steps:

    1. Provide a name for the Invoke activity, for example, JDE_GetEffectiveAddress.

    2. Click the first icon to the right of the Input Variable field, then click OK in the Create Variable window that is displayed.

    3. Repeat the previous step to create a default variable for Output Variable.

  9. Click OK.

  10. Drag an Assign process activity and drop it between receiveInput and JDE_GetEffectiveAddress.

    The following image shows the new Assign activity in JDeveloper visual editor.

    JDeveloper diagram view showing new process activities
    Description of the illustration bpel_44.gif

  11. Double-click the Assign activity icon.

    The Assign dialog box is displayed.

    Assign dialog box
    Description of the illustration bpel_14.gif

  12. In the Copy Operation tab, click Create and select Copy Operation.

    The Create Copy Operation dialog box is displayed.

    1. In the From pane, expand Variables, then inputVariable, and then highlight payload.

    2. In the To pane, expand Variables, then JDE_GetEffectiveAddress_GetEffectiveAddress_InputVariable, and then highlight input_GetEffectiveAddress.

    Your Create Copy Operation dialog box should look as follows:

    Create Copy Operation dialog box
    Description of the illustration bpel_10a.gif

  13. To close the Create Copy Operation dialog box and the Assign dialog box, click OK.

  14. From the Process Activities pane on the right, drag another Assign activity to the visual editor and place it between the Invoke activity (JDE_GetEffectiveAddress) and the Reply activity (replyOutput).

  15. Double-click the Assign activity icon and click Create.

  16. Map JDE_GetEffectiveAddress_GetEffectiveAddress_OutputVariable, output_GetEffectiveAddress to outputVariable, payload.

    Verify that you have mapped all variables as follows:

    Create Copy Operation dialog box
    Description of the illustration bpel_10b.gif

  17. Click OK, and then click OK again.

  18. Select Save from the File menu.

You have completed the design of your BPEL process.

Deploying the BPEL Process for GetEffectiveAddress (Outbound Service)

JDeveloper deploys BPEL processes directly to Oracle BPEL Console.

To deploy your BPEL process in JDeveloper:

  1. Right-click your project in the Applications Navigator tab.

  2. Select Deploy, then Your BPEL PM Server connection, and then Deploy to default domain.

    The deployment process starts automatically.

  3. Observe the Messages log at the bottom of the window.

    The Messages log displays the deployment status. In this example, it shows a successful deployment message for the process.

    Messages log
    Description of the illustration bpel_45.gif

    If deployment was not successful, click the Compiler tab to view all error and warning messages generated during the deployment process.

Invoking Adapter Request-Response Service from Oracle BPEL Process Manager

The OracleAS Adapter for J.D. Edwards OneWorld request-response service is used to create, delete, update, query back-end data, and to call back-end workflows and transactions. The following section describes how to invoke the adapter synchronous request-response service, also referred to as Outbound Interaction, and how to manage the process in Oracle BPEL Console.

Manage the Deployed Outbound Process in Oracle BPEL Console

JDeveloper deploys the developed process directly to the Oracle BPEL Console, which enables you to run, monitor, and administer BPEL processes.

To invoke adapter request-response service:

  1. Start the Oracle BPEL Console by entering the following URL in a browser:

    http://host:port/BPELConsole
    
  2. Provide a valid user name and password.

    The Oracle BPEL Console main page is displayed. All deployed BPEL processes are listed in the Dashboard tab.

    BPEL Console showing the newly-deployed BPEL process
    Description of the illustration bpel_17.gif

  3. Click the BPEL Processes tab.

    This tab provides a more detailed view of each deployed process.

    BPEL Console BPEL Processes tab
    Description of the illustration bpel_18.gif

  4. Click the J.D. Edwards outbound process link.

    The Manage window provides options for managing this BPEL process. Do not change any of the following default settings.

    Oracle BPEL Console Manage tab
    Description of the illustration bpel_19.gif

  5. Click the Initiate tab.

    The Initiate tab enables you to test your BPEL process.

    Oracle BPEL Console Initiate window
    Description of the illustration bpel_20.gif

    Perform the following steps:

    1. From the Initiating a test instance list, select XML Source.

    2. Select the Java through delivery API link in the right side of the test area.

    3. Enter the following code in the text area provided for XML input:

      <?xml version="1.0" encoding="UTF-8"?>
      <jdeRequest type="callmethod"><callMethod name="GetEffectiveAddress" runOnError="no"><params><param name="mnAddressNumber">99999</param><param name="jdDateBeginningEffective"/><param name="cEffectiveDateExistence10"/><param name="szAddressLine1"/><param name="szAddressLine2"/><param name="szAddressLine3"/><param name="szAddressLine4"/><param name="szZipCodePostal"/><param name="szCity"/><param name="szCountyAddress"/><param name="szState"/><param name="szCountry"/><param name="szUserid"/><param name="szProgramid"/><param name="jdDateupdated"/><param name="szWorkstationid"/><param name="mnTimelastupdated"/><param name="szNamealpha"/></params><onError abort="yes"/></callMethod></jdeRequest>
      
  6. Click Post XML Message.

  7. Click the Instances tab, and then click the Audit tab to view the response received from the J.D. Edwards OneWorld system.

See Also:

Oracle Application Server Adapter Concepts

J.D. Edwards OneWorld Event Integration

This example illustrates how OracleAS Adapter for J.D. Edwards OneWorld integrates with J.D. Edwards OneWorld to receive event data. The design-time and run-time configuration procedures are outlined in the following sections.

Design-Time Configuration

Before you design a BPEL process using JDeveloper, you must create a separate channel for every J2CA event and select that channel when you generate WSDL for inbound interaction using Application Explorer.

Note:

If two or more events share the same channel, event messages may not be delivered to the right BPEL process.

Creating a Channel in Application Explorer

To create a channel:

  1. In Application Explorer, expand the JDEdwards node.

  2. Right-click the Channels node, and select Add Channels.

    The Add Channel dialog box is displayed.

    Add Channel dialog box
    Description of the illustration add_channel_dialog.gif

  3. In the Name field, enter a descriptive name for the channel.

  4. In the Description field, enter a description (optional).

  5. From the Protocol list, choose a protocol for your channel.

  6. Click Next.

    The dialog box is displayed for the selected listener.

    System tab
    Description of the illustration tcp_listener_dialog.gif

  7. Enter the port number of the channel in the Port Number field.

  8. Enter the location of the server in the Host/IP Binding field.

  9. Select the Synchronization type from the Synchronization Type list.

  10. Select Is Length Prefix for events that send data which is not in XML format. The TCP/IP event application must prefix the data with a 4-byte binary length field when writing the data to the TCP/IP port.

  11. Select Is XML for events that send data back in XML format. No preparser is required.

  12. Select Is Keep Alive to maintain a continuous communication between the event transaction and the channel.

  13. Click the preparser tab.

    User tab
    Description of the illustration preparser_tab.gif

    Enter values based on the table.

    Parameter Description
    User id* A valid user ID for J.D. Edwards OneWorld.
    User password* The password associated with the user ID.
    JDE environment* Your J.D. Edwards OneWorld environment. For more information about this parameter, see your J.D. Edwards OneWorld documentation or ask your OneWorld system administrator.
    Application XMLInterop or the application name in J.D. Edwards OneWorld. Optional.
    Server IP address* The name of the server on which J.D. Edwards OneWorld is running. This can be the name of the server, for example, JDEOW, or its IP address, for example, 123.45.67.89.
    Server Port* The port number on which the server is listening, for example, 6009.
    User Role Define a user role according to your requirements.
    Schema style Choose a style from the list.

    Click OK.

    The channel is created and displayed under the Channels node. An X over the icon indicates that the channel is currently disconnected.

    Note:

    The channel you created in Application Explorer is managed by BPEL PM Server. If you start the channel for testing and debugging purposes, stop it before run-time.

Generating WSDL for Event Notification (Command Prompt Only)

You cannot generate WSDL for J.D. Edwards OneWorld event notification using Application Explorer. To generate WSDL from the command prompt, you must perform the following steps.

Important: You can create inbound J2CA service only if the node you have selected supports events.

To generate a WSDL file for J.D. Edwards OneWorld event notification:

  1. Create a channel in Application Explorer under the J.D. Edwards events node. See "Creating a Channel in Application Explorer".

  2. Start the channel.

    Important: Do not restart the BPEL PM Server or Oracle Application Server after the channel is started.

  3. Send an inbound message from J.D. Edwards OneWorld.

  4. Capture the inbound message payload in the log file located under OracleAS_home\adapters\application\config\jca_sample\log\iwaf_jca15.log

    Alternatively, you can create a port with the File protocol under Event in Application Explorer to dispose the event message to the file system.

  5. Use a third party tool such as XMLSpy to create the XSD schema using the XML payload captured in the previous step.

  6. Verify that orabpel-adapters.jar is in your classpath.

  7. Open a command prompt and change directory to: OracleAS_home\adapters\application\tools

  8. Run obadapter.bat to set the environment. On UNIX platforms, run Jbadapter.bat.

  9. Enter the following command to generate WSDL:

    java com.iwaysoftware.af.container.tools.wsdl.IWayWSILBrowser jcaHome adapter target channel schemaPrefix wsdlFileName
    

    Where:

    • jcaHome is the path to your J2CA configuration. For example, OracleAS_home\adapters\application\

    • adapter is the name of the adapter. For example, JDEdwards.

    • target is the name of the adapter target you created under Adapter in Application Explorer

    • channel is the name of the channel you have created under Event in Application Explorer

    • schemaPrefix is the prefix of the XSD schema. The schema file must be in the same directory where the Java command is executed, for example, OracleAS_home\adapters\application\config\jca_sample\schemas\JDEdwards\bvision02

    • wsdlFileName is the name of the WSDL file being created in this procedure

    For example:

    C:\soaga\adapters\application\config\jca_sample\schemas\JDEdwards\bvision02>java  com.iwaysoftware.af.container.tools.wsdl.IWayWSILBrowser c:\soaga\adapters\application\  JDEdwards bvision02 JDE PO purchaseorder.wsdl
    

    Once the command is successfully executed, the following output will be shown in the command window:

    Running Inbound WSDL generation tool...  -> user.dir = C:\soaga\adapters\application\config\jca_sample\schemas\JDEdwards\bvision02  -> Generating WSDL...  -> Done.  -> Writing WSDL 'c:\soaga\adapters\application\\wsdls\purchaseorder.wsdl' to disk...  -> Done.
    

    Note:

    It is good practice to append _receive to the names of WSDL files generated for event notification services. This will allow you to easily differentiate between them and those generated for request-response services.
  10. Stop the channel in Application Explorer.

Note:

You can organize your WSDL files in subfolders, creating your own WSDL hierarchy structure. Create the folders under OracleAS_home\adapters\application\wsdls\. The WSIL browser in JDeveloper will display the full tree structure of your WSDL hierarchy.

The WSDL file is created. You can now create a BPEL process that uses the WSDL as Partner Link. As the BPEL process is deployed, the channel is activated from BPEL PM. Then, after you send an inbound message from J.D. Edwards OneWorld, the message will be received by the channel started by BPEL PM. These procedures are described in detail in the following sections.

Creating a BPEL PM Server Connection

Before you design a BPEL process, you must configure a new Application Server and Integration Server connection in Oracle JDeveloper. For more information, see Chapter 4, "Integration with Oracle BPEL Process Manager".

Designing the BPEL Project for the SalesOrder Inbound Service

To design a BPEL project for inbound interaction:

  1. At the top of the upper left pane, click the Applications Navigator tab and select an application.

    JDeveloper Applications tab
    Description of the illustration bpel_34a.gif

  2. Right-click the application and select New Project.

    The New Gallery window is displayed.

    New Gallery
    Description of the illustration bpel_1.gif

  3. From the Items list, select BPEL Process Project and click OK.

    The BPEL Project Creation Wizard - Project Settings dialog box is displayed.

    BPEL Project Creation Wizard - Project Settings dialog box
    Description of the illustration bpel_22a.gif

  4. Perform the following steps:

    1. Specify a name for the BPEL project.

      The Namespace field is updated automatically.

    2. From the Template list, select Empty BPEL Process.

    3. Click OK.

  5. From the Services pane on the right, drag and drop a PartnerLink to the visual editor.

    The Create Partner Link dialog box is displayed.

    Create Partner Link window
    Description of the illustration bpel_4.gif

  6. Click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    Service Explorer dialog box
    Description of the illustration bpel_5.gif

  7. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

    WSDL tree
    Description of the illustration bpel_6b.gif

  8. Select SalesOrder.wsdl and click OK.

    The Create Partner Link dialog box is displayed.

    Create Partner Link dialog box
    Description of the illustration bpel_24a.gif

    The WSDL File field displays the name and location of the selected WSDL file. The Partner Link Type field specifies the PartnerLink defined in the WSDL file.

    Perform the following steps:

    1. From the My Role list, select the default value SalesOrderRole.

    2. Leave the Partner Role field unspecified.

  9. Click Apply, and then click OK.

    The new PartnerLink appears in the visual editor.

    JDeveloper visual editor showing the new PartnerLink
    Description of the illustration bpel_25a.gif

  10. From the Process Activities pane on the right, drag a Receive activity to the visual editor and place it in the designated placeholder labeled Drop Activity Here.

  11. Connect the Receive activity to the JDE_event PartnerLink.

    The Edit Receive dialog box is displayed.

    Edit Receive dialog box
    Description of the illustration bpel_26a.gif

    Perform the following steps:

    1. Specify a name for the Receive Activity, for example, Receive_SalesOrder.

    2. Click the first icon to the right of the Variable field, then click OK in the Create Variable dialog box that is displayed.

    3. Verify that the Create Instance check box is selected.

  12. Click Apply.

    The Receive dialog box should no longer display any warnings or errors.

  13. Click OK.

  14. Select Save from the File menu.

Deploying the BPEL Project for the Inbound Service

  1. Right-click your project in the Applications Navigator tab.

  2. Select Deploy, then Your BPEL PM Server connection, and then Deploy to default domain.

    The deployment process starts automatically.

    Successful compilation in JDeveloper
    Description of the illustration bpel_46.gif

Runtime Configuration

Events are generated by activity in a database or in an application system. You can use events to trigger an action in your application. See "Configuring an Event Adapter" for more information on event configuration.

Triggering an Event in J.D. Edwards OneWorld

To trigger an event in J.D. Edwards OneWorld:

  1. Log in to your J.D. Edwards OneWorld system.

  2. In the Fast Path field of the J.D. Edwards OneWorld Explorer window, type G4211 and press Enter.

    Fast Path field
    Description of the illustration jde_eventtrigger.gif

  3. Right-click Sales Order Detail (P4210).

    Sales Order Detail selected and menu showing
    Description of the illustration jde_eventtrigger2.gif

  4. Select Prompt for, and then Values.

    The Processing Options dialog box is displayed.

    Processing Options dialog box
    Description of the illustration jde_eventtrigger3.gif

    Perform the following steps:

    1. Click the Interop tab.

    2. In the Transaction Type field, type JDESOOUT.

    3. Verify that the value in the Before/After Image Processing Blank field is 1.

  5. Click OK.

    The Sales Order Detail - (Customer Service Inquiry) window is displayed.

    Sales Order Detail window
    Description of the illustration jde_eventtrigger4.gif

  6. Click the Add icon (third icon from left).

  7. Enter the values as shown in the following screen.

    To move to a different field, use the Tab key on your keyboard.

    The correct order values
    Description of the illustration jde_eventtrigger5.gif

  8. Enter a value for Quantity Ordered and Item Number.

    For example:

    Sample values for Quantity Ordered and Item Number
    Description of the illustration jde_eventtrigger6.gif

  9. Click the first field in the second row and allow a few seconds for processing.

    The second row selected
    Description of the illustration jde_eventtrigger7.gif

  10. Click OK.

An event is triggered in the J.D. Edwards OneWorld system.

Verifying the Results

To verify your results:

  1. Log in to Oracle BPEL Console at

    http://host:port/BPELConsole 
    
  2. Provide a valid user name and password.

  3. Click the Instances tab.

    Recently received run-time events are displayed in the Instances tab.

    Instances tab
    Description of the illustration bpel_36.gif

  4. Click your J.D. Edwards event instance, and then click Audit to see the received event message.

    Audit tab
    Description of the illustration bpel_37.gif