Chapter 5
[ 87 ]
In the example shown above, we have selected the BPEL Partner Link that
corresponds to a WSDL file. Operations created in the WSDL file are automatically
populated. You can select any Operation from which the message will be received to
the process.
Reply
The Reply activity is used to return a message from the process to the same partner
that initiated the operation. This activity is used in a synchronous operation, and
specifies the same partner, port type, and operation as the Receive activity that
invoked the process. For example, a web service invoking the Reservation BPEL
process gets a reply back from the NorthAir Reservation web service regarding the
itinerary status.
The above figure shows a HelloBP BPEL process sending a reply back to the invoked
web service. There could be multiple replies from your process depending on the
conditions. Each reply activity should be in a sequence. However, you can add
reply activities on multiple partner links defined for the process. Thus the process
can reply to multiple invoke activities from different partner links.
In a receive-reply pair, only one outstanding reply activity can correspond to
an executed receive. This means that, at most, one reply is executed for a given
receive. At runtime, only one reply activity is executed, because the reply
activities will most likely be in exclusive branches of execution.
Pages:
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98