Developer Guide to the BPEL Designer

Using the Reply Element

Use this activity to return a message from the process to the same partner that initiated the operation. The combination of Receive and Reply activities creates a request-response operation.

This activity is used in a synchronous (request/response) operation, and specifies the same partner, port type and operation as the Receive activity that invoked the process.

Usage

  1. In the Design view, drag the Reply element from the Palette to the diagram.

  2. Double-click the Reply element (or right-click and choose Edit) to open a Property Editor dialog box for the Reply element. In this dialog box, you can specify the following:

    • The name of the element.

    • The Partner Link.

    • The operation.

    • Type of response: Normal Response or Fault Response.

      • Select Normal Response if the Reply element is to be used for the normal response message type. Optionally, specify the output variable: either create a new output variable or browse for an existing variable.

      • Select Fault Response if the Reply element is to be used to send a fault message. Choose a fault name and, optionally, specify the fault variable: either create a new fault variable or browse for an existing variable.

      Reply Property Editor
  3. You can also edit some of the element's properties in the Properties window. To open the window, right-click the Receive element and choose Properties or choose Window > Properties (Ctrl-Shift-7) from the main menu. You can edit the information by clicking on the ellipsis button. You cant edit the shadowed information from this window, to change it open the property editor as described above.

    Reply Properties Window

Correlations

The Correlations tab in the Reply Property Editor dialog box enables you to examine or specify a correlation set.

Correlations Tab

The tab shows:

For more information see Understanding Correlation. Using the Correlation Wizard.