Thursday, November 10, 2011

Oracle SOA Suite - Setting Timeouts for Receive activities.

Oracle SOA Suite - Setting Timeouts for Receive activities:

Oracle SOA Suite 11g introduced a new feature setting the timeout for receive activity.
We can specify timeout duration for partner callbacks using this property. This property can be used in Oracle SOA Suite 12c to set the timeout in receive activity.

Timeout Settings Relative from When the Activity is invoked:


You can specify a timeout setting relative from when the activity is invoked.
This type uses the bpelx:for attribute to specify a static value or an XPath expression that must evaluate to an XML schema type duration.


Timeout Settings as an Absolute Date Time:


You can specify a timeout setting as an absolute deadline for receive activities.
The expected expiration time for the bpelx:until attribute must be at least two seconds ahead of the current time. Otherwise, the timer scheduling is ignored and skipped, just as if the timer was never specified. The bpelx:until attribute specifies a static value or an XPath expression that must evaluate to an XML schema type datetime or date.


The bpelx:timeout fault will be thrown during an activity timeout. Only one of the bpelx:for or bpelx:until attributes is permitted for an activity.
If the XPath expression evaluates to a negative duration, the timeout is ignored and an event is logged to the instance audit trail indicating that the duration value is invalid.
Timeout durations can only be specified on the following:
- Midprocess receive activities
- Receive activities that do not specify createInstance="true"
A receive activity can only time out after it has been instantiated, which is not the case with entry receive activities.

Setting the timeout:


1. Open the BPEL process in JDev
2. Double click the receive activity to which the timeout has to be set.
3. Click the Timeout tab, this tab enables you to set a timeout for receive activity.

No comments:

Post a Comment