The
purpose of a termination handler is to provide code to be executed when a BPEL
process is unexpectedly exited. Termination Handlers can be applied to any different
scope within a process and are defined by the
element.
The BPEL designer provides no support for designing termination handlers, instead
that must be defined within the XML for the process within the Source view of the
BPEL designer.
The code fragment below shows how a BPEL process may have a compensation
handler and a termination handler defined within a particular scope.
If no termination handler is defined for a scope then the default termination handler
will be invoked. The default termination handler invokes the default compensation
handler for a given scope, that is,
Summary
In this chapter, we've looked at the different types of event handlers that can be used
within a BPEL process designed within the NetBeans BPEL designer. We've seen that
there are four different types of event handlers that can be used.
Pages:
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181