How to Set Timeouts in Receive Activities

Set timeouts in the following scenarios:

  • The Create Instance check box is deselected.

  • The receive activity is in the middle of the BPEL process (in most cases)

To set timeouts in receive activities:

  1. In the SOA Composite Editor, double-click the BPEL process service component.
  2. In the Components window, expand BPEL Constructs.
  3. Drag a Receive activity into the designer.
  4. Expand the activity.
  5. Click the Timeout tab.

    This tab enables you to set a timeout for request-response operations, as shown in Figure 15-7.

  6. Specify appropriate values, and click Apply. For example:
    • To specify a timeout setting relative from when the activity is invoked, click the For button and enter a value or click the Expression button and specify an XPath expression.

    • To specify a timeout setting as an absolute deadline for a request-response operation, click the Until button and enter a value or click the Expression button and specify an XPath expression.

  7. Click Apply, then OK.