Index Changes

Creating a BPEL Process

In this section, you add a BPEL process file, for example, BPELProcess.bpel. Add a partner link and three activities to the BPEL process file.

CreateBPEL TCBPELPDB

To Create a BPEL Process

1    Expand the BPEL Module project node in the Projects window.
       For example, BpelModuleSample
2    Right-click the BPEL Module project name or Process Files node. Choose New —> BPEL Process...
       For example, BpelModuleSample

Image shows ...


       This opens the New BPEL Process wizard.
3    Type the File Name in the File Name field.
       For example, BPELProcess
4    Click Finish.

Image shows ...


Note -
  • In the Projects window, the IDE adds a BPELProcess.bpel node under the Process Files node.
  • The BPELProcess.bpel file is open in the BPEL Designer.
  • The Properties window is open.
  • If you do not see the Properties window, choose Window —> Properties.
  • The Navigator window is open showing the BPEL Logical View of the BPEL Process document.

TAPL

1    Select the Partner Link from the Projects tab.
       For example, SOAPWSDL.wsdl
       This is the Input WSDL.
2    Drag and drop the SOAP WSDL Document to the left panel of the design area.
       For example, SOAPWSDL.wsdl

Image shows ...


3    Select the Partner Link from the Projects tab.
       For example, dbWSDL.wsdl
       This is the Output WSDL.
4    Drag and drop DATABASE WSDL Document to the right panel of the design area.
       For example, dbWSDL.wsdl

Image shows ...

TADDWSBADB

To Add a Web Service and Basic Activities

Drag and Drop the following Web Services:

  • Receive
  • Invoke
  • Reply

Drag and Drop the Basic Activities : Assign1 and Assign2.

1    Select the Web Service : Receive in the Web Service section of the Palette.
2    Drag the selection to the BPELProcess box in the design area between the Process Start and the Process End activities.
       The IDE provides the visual clues to show an appropriate location to drop the selection.

Image shows ...


       This action places a Web Service Receive called Receive1 in the Design view.
3    Select the Basic Activities — Assign in the Basic Activities section of the Palette.
       This action places a Assign activity called Assign1 in the Design view.
4    Drag the selection to the BPELProcess box in the design area, between the Process Start and the Process End activities.

Note - Repeat steps 1 through 4 to select Invoke1, Assign2, and Reply1.

             Choose the following:
              *    Select the Web Service : Invoke and Basic Activities : Assign.
              *    Select the Web Service ; Reply.


Image shows ...


Note - In the diagram, a red cross next to an element means that the element has not passed validation and the output contains errors. Edit each Sequence to pass validation.

       The icon symbolizes that the Web Services can be edited.

Image shows ...

TEWSRECDB

To Edit Web Service : Receive1

1    Click Web Service — Receive1 and click Edit.
       This opens the Receive1 (Receive) - Property Editor.
2    Select the properties from the Main tab. Select PartnerLink1 from the drop-down list.
       The IDE fills in the Operation field with SOAPWSDLOperation.

Image shows ...


3    Create a new input variable.
       Perform the following:
       *    Click the Create button next to the Input Variable field.
             This opens the New Input Variable dialog box.
       *    The Name, Type, and Scope are displayed, by default.
             You can also change the value in the Name field.
       *    Click OK.


Image shows ...


Note - All the fields are populated with the assigned values.
             Input Variable — SOAPWSDLOperationIn

Image shows ...


4    Click OK to close the Receive1 (Receive) - Property Editor.
5    Click Save All.

Image shows ...

TEWSINDB

To Edit the Web Service : Invoke1

1    Click Web Service — Invoke1 and click Edit.
       This opens the Invoke1 (Invoke) - Property Editor.
2    Select the properties from the Main tab. Select PartnerLink2 from the drop-down list.
       Select any one of the Operations from the drop-down list.
       *    Insert
       *    Update
       *    Delete
       *    Find
       *    Pollrecords
        Select Operation — find from the drop-down list. The IDE fills in the Operation field.

Image shows ...


3    Follow the steps to create a new input and an output variable.
       a    Click the Create button next to the Input Variable field.
              This opens the New Input Variable dialog box.

Image shows ...


             The Name, Type, and Scope are displayed, by default.
             You can also change the value in the Name field.
       b    Click OK to close the New Input Variable dialog box.
       c    Click the Create button next to the Output Variable field.
              This opens the New Output Variable dialog box.

Image shows ...


              The Name, Type, and Scope are displayed, by default.
              You can also change the value in the Name field.
       d    Click OK to close the New Output Variable dialog box.

Note - All the fields are populated with the assigned values.

             Select the following Variables:
              *    Input Variable : FindIn
              *    Output Variable : FindOut


Image shows ...


4    Click OK to close the Invoke1 (Invoke) - Property Editor.
5    Save the project.

Image shows ...

TEWSREPDB

To Edit the Web Service : Reply1

1    Click Web Service : Reply1. Click Edit.
       This opens the Reply1 (Reply) - Property Editor.
2    Select the properties from the Main tab. Select PartnerLink1 from the drop-down list.
       The IDE fills in the Operation field with SOAPWSDLOperation.

Image shows ...


3    Follow the steps to create a New Output Variable.
       a    Make sure to select the Normal Response radio button.
       b    Click the Create button next to the Output Variable field.
              This opens the New Output Variable dialog box.

Image shows ...


       c    Change the value in the Name field. This is optional.
              Reply1 is displayed, by default.
       d    Click OK.

Image shows ...


4    Click OK to close the Reply1 (Reply) - Property Editor.

Image shows ...

TEBAASS1DB

To Edit the Basic Activities : Assign1

1    Double-click the Basic Activity : Assign1.
       This displays the BPEL Mapper window.
2    Expand the node in the Source tree pane (the left pane) of the BPEL Mapper under Output —> Variables.
       For example, SOAPWSDLOperationIn
       A part1 node appears under the SOAPWSDLOperationIn node.
3    Expand the node in the Destination tree pane (the right pane) of the BPEL Mapper under Input —> Variables.
       For example, FindIn
       A part node appears under the FindIn node.
4    Select the node in the Source tree pane.
       For example, SOAPWSDLOperationIn — part1 — CUSTOMER_Record
5    Drag the selection and map it to the node in the Destination tree pane.
       For example, FindIn — part — CUSTOMER_Record
       For example, Map the following Variables:
       a    NAME — NAME
       b    CUSTOMER_ID — CUSTOMER_ID

Image shows ...


6    Click the Design tab.

Note - A red icon marked against Basic Activities — Assign1 is not shown.

Image shows ...

TEBAASS2DB

To Edit the Basic Activities : Assign2

1    Double-click the Basic Activity : Assign2.
       This displays the BPEL Mapper window.
2    Expand the node in the Source tree pane (the left pane) of the BPEL Mapper under Output — Variables.
       For example, FindOut
3    Expand the node in the Destination tree pane (the right pane) of the BPEL Mapper under Input — Variables.
       For example, SOAPWSDLOpertionOut
4    Select the node in the Source tree pane.
       For example, FindOut : part : CUSTOMER_Record
5    Drag the selection to the node in the Destination tree pane.
       For example, SOAPWSDLOpertionOut : part1 : CUSTOMER_Record
       For example, Map the following variables:
        *    PHONE : PHONE
        *    STATE : STATE
        *    NAME : NAME
        *    ZIP : ZIP
        *    ADDRESSLINE1 — ADDRESSLINE1
        *    ADDRESSLINE2 — ADDRESSLINE2
        *    CREDIT_LIMIT — CREDIT_LIMIT
        *    EMAIL — EMAIL
        *    CUSTOMER_ID — CUSTOMER_ID
        *    CITY — CITY
        *    FAX — FAX
        *    DISCOUNT_CODE — DISCOUNT_CODE
              Finally, map part : part1.
Image shows ...


6    Click the Design tab.
       The final output is as shown in the illustration.

Image shows ...


7    Right-click the project node and select Clean and Build.
       For example, BpelModuleSample
       The following message is displayed.

BUILD SUCCESSFUL (total time: 2 seconds).

8    Click Save All.

Previous

Next
Validating BPEL

See Also



Return to Using the Database Binding Component

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-56) was last changed on 11-Jan-09 07:39 AM, -0800 by PRABHAMS