Processing an Order in a Purchase Order System

ProcedureTo Create the POService business process using the BPEL Designer

  1. From the Project window, right-click the HTTP-SOAP-PO-BPEL project and select New -> BPEL Process from the pop-up menu.

  2. From the New BPEL Process wizard, enter POService for the File Name.

  3. Click Finish.

    The POService.bpel file is added to the Projects window, and the BPEL Designer opens containing the new BPEL process.

  4. Create a new Partner Link by dragging the POService.wsdl file from the Projects window to the left side of BPEL Designer canvas.

    The IDE provides clues to show where to place the POService.wsdl file.

    By placing the file on the left side, you create the partnerlink with the roll assigned as “My Role.” This can be verified from the Partnerlink1 Properties Editor.

  5. Create another Partner Link, in “Partner Role”, by dragging the InventoryService.wsdl file from the Projects window to the right side of the BPEL Designer canvas.

    By placing this file on the right side of the BPEL Designer canvas, you create a partnerlink with the roll assigned as “Partner Roll.” This can be verified from the Partnerlink2 Properties Editor.

    Click OK to close the PartnerLink2 Property Editor. The PartnerLink2 partner link is added to the right side of the BPEL Designer canvas.

    Graphic displays the Inventory Service process flow as
it is being assembled in the BPEL Designer. Described in context.
  6. Add a Receive element to the process flow. To do this, drag-and-drop the Receive element from the BPEL Designer Palette to the link between the Process Start and Process End in the designer's process flow. The Receive element is added to the process flow.

  7. Add a Reply element to the process flow between the Receive1 element and the Process End. The Reply1 web service is added to the process flow.

  8. Add an Invoke element to the process flow between the Receive1 element and the Reply1 element. The Invoke1 web service is added to the process flow.

  9. Add an Assign element to the process flow between the Receive1 element and the Invoke1 element. The Assign1 web service is added to the process flow.

  10. Add an If element to the process flow between the Invoke1 element and the Reply1 element. The If1 web service is added to the process flow.

    Graphic displays the Inventory Service process flow as
it is being assembled in the BPEL Designer. Described in context.
  11. Set the Receive1 element Partner Link to PartnerLink1 as follows:

    1. From the BPEL Designer's Design view, select the Receive1 element and click the Receive1 Edit button. The Receive1 [Receive] - Property Editor appears.

    2. From the property editor, select PartnerLink1 as the Partner Link value.

    3. Click the Input Variable field's Create button. The New Input Variable dialog box appears. Click OK to create the new input variable.

    4. Click OK to close the property editor. A partner link is now displayed from the PartnerLink1 and the Receive1 element in the Design view.

  12. Set the Reply1 element Partner Link to PartnerLink1 as follows:

    1. From the BPEL Designer's Design view, select the Reply1 element and click the Reply1 Edit button. The Reply1 [Reply] - Property Editor appears.

    2. From the property editor, select PartnerLink1 as the Partner Link value.

    3. Click the Output Variable field's Create button. The New Output Variable dialog box appears. Click OK to create the new output variable.

    4. Click OK. A partner link is now displayed between the PartnerLink1 and the Reply1 element in the Design view.

  13. Set the Invoke1 element Partner Link to PartnerLink2 as follows:

    1. From the BPEL Designer's Design view, select the Invoke1 element and click the Invoke1 Edit button. The Invoke1 [Invoke] - Property Editor appears.

    2. From the property editor, select PartnerLink2 as the Partner Link value.

    3. Click the Input Variable field's Create button. The New Input Variable dialog box appears. Click OK to create the new input variable.

    4. From the property editor, click the Output Variable field's Create button. The New Output Variable dialog box appears. Click OK to create the new output variable.

    5. Click OK. A partner link is now displayed between the PartnerLink2 and the Invoke1 element in the Design view.

      Graphic displays the Inventory Service process flow as
it is being assembled in the BPEL Designer. Described in context.