Using the FTP Binding Component in a Project

Creating a BPEL Process

In this section, you add a BPEL process file named sendInventoryBP.bpel. This example also illustrates adding a partner link and activities to the BPEL process file.

ProcedureTo Create a BPEL Process

  1. Expand the BPEL Module project node in the Projects window.

    For example, SendInventory

  2. Right-click the BPEL Module project name or Process Files node. Choose New —> BPEL Process...

    For example, SendInventory

    BPEL Process

    This opens the New BPEL Process wizard.

  3. Type the File Name in the File Name field.

    For example, sendInventory

  4. Click Finish.


    Note –
    • In the Projects window, the IDE adds a sendInventory.bpel node under the Process Files node.

    • The sendInventory.bpel file is open in the BPEL Designer.

    • The Properties window is open.

    • Choose Window —> Properties, if the Properties window is not visible.

    • The Navigator window is open showing the BPEL Logical View of the BPEL Process document.


ProcedureTo Add a Partner Link

  1. Select the Partner Link from the Projects tab.

    For example, fileTrigger.wsdl

    This is the Input WSDL.

  2. Drag and drop the FILE WSDL Document to the left panel of the design area.

    For example, fileTrigger.wsdl

    File Partner Link
  3. Select the Partner Link from the Projects tab.

    For example, ftpTransferr.wsdl

    This is the Output WSDL.

  4. Drag and drop FTP WSDL Document to the right panel of the design area.

    For example, ftpTransferr.wsdl

    FTP Partner Link

ProcedureTo Add Web Services and Basic Activities

Drag and Drop the following Web Services:

Drag and Drop the Basic Activities : Assign.

  1. Select the Web Service : Receive in the Web Service section of the Palette.

  2. Drag the selection to the sendInventory Process 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.

    Visual Clues

    This action places a Web Service : 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. Select the Web Service : Invoke in the Web Service section of the Palette.

    This action places a Assign activity called Invoke1 in the Design view.

  5. Click Save All.

    Select All Activities
    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 the Web Services that can be edited.

    Edit Enabled

ProcedureTo 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. In this example, select PartnerLink1 from the drop-down list.

    The IDE populates poll against the Operation field.

    Receive Property Editor
  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 default values assigned in the Name, Type, and Scope fields are populated for the variable.

      The value against the Name field can be changed.

    • Click OK.

    Poll In New Input Variable

    Input Variable — PollIn

    Complete Receive
  4. Click OK to close the Receive1 [Receive] - Property Editor.

  5. Click Save All.

    Receive Edit Map

ProcedureTo 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. In the current example, select PartnerLink2 from the drop-down list.

    The IDE populates OutboundOneWayMessagingOperation against the Operation field .

    Invoke Property Editor
  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 default values assigned to the Name, Type and Scope fields are populated for the variable.

      The value against the Name field can be changed.

    • Click OK.

    Invoke New Input Variable

    The Invoke1 [Invoke] — Property Editor is displayed as shown.

    Final Invoke Input Variable
  4. Click OK to close the Receive1 [Receive] - Property Editor.

  5. Click Save All.

    Invoke Edit Map

ProcedureTo Edit the Basic Activities : Assign1

  1. Double-click the Basic Activity : Assign1.

    This displays the BPEL Mapper window.

    Assign Activity
  2. Expand the node in the Source tree pane (the left pane) of the BPEL Mapper under Output —> Variables.

    For example, PollIn

    A part1 node appears under the PollIn node.

  3. Expand the node in the Destination tree pane (the right pane) of the BPEL Mapper under Input —> Variables.

    For example, OutboundOneWayMessagingOperationIn

    A part1 node appears under the OutboundOneWayMessagingOperationIn node.

  4. Select the node in the Source tree pane.

    For example, PollIn — part1

  5. Drag the selection and map it to the node in the Destination tree pane.

    For example, OutboundOneWayMessagingOperationIn — part1

  6. Map the following Input and Output Variables

    part1 — part1

  7. Click Save All.

    Final Mapper
  8. Click the Design tab.

    The final output is as shown in the illustration.

    Final Output Mapper
  9. Right-click the project node. Select Clean and Build.

    For example, sendInventory

    The following message is displayed after the build.


    BUILD SUCCESSFUL (total time: 1 seconds).
    Build Successful
  10. Click Save All.