What You May Need to Know About Scopes How to Use a Fault Handler Within a Scope

Using Fault Handling in a BPEL Process 11-35 Figure 11–10 Catch Dialog 6. Design additional fault handling functionality.

7. Click OK.

Figure 11–11 provides an example of two catch activities for the Scope_ AuthorizeCreditCard scope activity. The second catch activity catches credit types that are not valid. Figure 11–11 Catch Activities in the Designer

11.10.7 What Happens When You Create a Catch Activity in a Scope

Example 11–26 shows the catch activity in the .bpel file after design completion. The selectionFailure catch activity catches orders in which the credit card number is not provided and the InvalidCredit catch activity catches credit types that are not valid. Example 11–26 Catch Branch faultHandlers catch faultName=bpws:selectionFailure sequence assign name=Assign_noCCNumber copy from expression=stringCreditCardCheck - NO CreditCard to variable=gOrderProcessorFaultVariable part=code copy assign throw name =Throw_NoCreditCard 11-36 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite faultVariable=gOrderProcessorFaultVariable faultName=ns9:OrderProcessingFault sequence catch catch faultName=ns2:InvalidCredit sequence assign name=Assign_InvalidCreditFault copy from expression=concatbpws:getVariableData gOrderInfoVariable,ns4:orderInfoVOSDOns4:CardTypeCode, is not a valid creditcard type to variable=gOrderProcessorFaultVariable part=summary copy copy from expression=stringCreditCardCheck - NOT VALID to variable=gOrderProcessorFaultVariable part=code copy assign throw name=Throw_OrderProcessingFault faultName=ns9:OrderProcessingFault faultVariable=gOrderProcessorFaultVariable sequence catch faultHandlers

11.10.8 How to Create an Empty Activity to Insert No-Op Instructions into a Business Process

There is often a need to use an activity that does nothing. An example is when a fault must be caught and suppressed. In this case, you can use the empty activity to insert a no-op instruction into a business process. To create an empty activity: 1. In the Component Palette, expand BPEL Constructs. 2. Drag an Empty activity into the designer. 3. Double-click the Empty activity. The Empty dialog appears, as shown in Figure 11–12 .