Receive

See Also

A business process provides services to its partners through associated Receive and Reply activities. The Receive activity causes the process to wait for a matching message to arrive from a partner service. The process cannot continue or end until it receives a matching message from the partner service. Thus, the attributes of the Receive activity are the Partner Link, the port type (optional), and the operation that the partner is expected to invoke.

The Receive activity is also used to start a business process instance. For this initial Receive element, the createInstance attribute must be set to yes. If there are other Receive activities in your process, their createInstance attributes should be set to no.

To use the Receive element:

  1. In the Design view, drag the Receive element from the Palette to the diagram.
  2. Right-click the Receive element on the diagram and choose Edit.
  3. In the Property Editor dialog box, configure the following:
  4. The Receive element is now configured to wait for a message from a partner web service.

Adding Correlation Sets

You can add the correlation sets defined for the Scope and Process elements to a Receive element. Before adding a correlation set to Receive, make sure that at least one correlation set has been defined for the parent Scope or the entire Process.

To add a correlation set to Receive:

  1. In the Design view, right-click the Receive element and choose Edit.
  2. In the Property Editor, select the Correlations tab and click Add.
  3. In the Choose a Correlation Set dialog box, expand the Correlation Sets node, select the correlation set and click OK.
  4. Choose the initiate attribute for this correlation set from the Initiate drop-down list. You can select one of the following options:
  5. (Optional) Add more correlation sets as needed and click OK.
See Also
Partner Link
Reply
Understanding Correlation
Creating Variables
BPEL Designer Palette: Web Service
New Variable Dialog Box
About the Design View of the BPEL Designer

Legal Notices