Beruflich Dokumente
Kultur Dokumente
Fault Handling
Fault Handling
Problem/Use Case
Negative
Credit
Fault!
d1 <receive> Negative
Credit!
<scope>
prepare crIn
<assign>
d3
Call service
<invoke> f1
Credit Rating
Service
Read crOut
<assign>
<catch NegativeCredit>
credit to -1000
<assign>
d2
<reply>
BPEL Process
<scope>
<scope> isis aa wrapper
wrapper element.
element. ItIt
allows
allows us
us to
to catch
catch aa number
number of
of
exceptions
exceptions
<catch>
<catch> NegativeCredit
NegativeCredit exception
exception
thrown
thrown by
by CreditRating
CreditRating service
service
(when
(when SSN
SSN starts
starts with
with 0)
0)
Handle
Handle exception
exception by
by setting
setting credit
credit
rating
rating to
to ‘-1000’
‘-1000’
Add
Add new
new <catch>
<catch> to
to
<scope>
<scope>
Click
Click to
to drill
drill into
into
<catch> implementation
<catch> implementation
Model
Model <catch>
<catch>
process
process logic
logic
Extra Credit #1: Add a catchAll to catch unhandled faults. Then undeploy your
CreditRatingService and see how the system fault can be caught and handled.
Extra Credit #2: Use your neighbor’s CreditRatingService as a failover service and run
your flow again to see how the failover capability works.
Related Material