As we discussed earlier, the partner service interacts with the business process for
the purpose of receiving a message in response to a request.
Customer
Enumerate the list of airlines
Reservation Request
Reservation Confirmation
Pause
Airlines
The above figure depicts a typical asynchronous and synchronous business process.
An asynchronous process is used when the BPEL process is long-running. The
results are returned to the client by performing an invocation on the client. Thus the
customer asks for reservation and disconnects. The business process processes the
requests and gets back to the customer. It is more like a "Leave a message and we
will get back to you" kind of setup. This pause does not happen with a synchronous
business process, wherein the customer waits indefinitely to get the response. A
classic example is the reservation process.
Chapter 1
[ 13 ]
However, there is a caveat here. The BPEL process is shared and is not a singleton.
Many customers work with the same business process. There should be a way for the
business process to identify its customers.
Customer
NA. Itinerary Number Provide
Process Reservation
Reservation Confirmation
Send Itinerary Number
Pause
Airlines
The above figure depicts an example wherein the customer sends a reservation
request for a particular airlines' destination on a particular date.
Pages:
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31