Throwing Faults in Mediation Flows

The Throw Fault mediation task enables you to explicitly throw a fault during processing on the input path of a mediation flow.

This is useful in two situations:
  • You want to deprecate a mediation operation, and therefore a fault is sent to all clients that request that operation.
  • You want to specify routing cases where a fault is sent.

For example, if a loan processing application cannot process loans over $5,000,000, then you would configure a routing case for the loan request operation to examine the loan amount and place a Throw Fault task on the sub-path for the case where the loan amount was over $5,000,000.

The Throw Fault task enables you to browse through available service descriptors and select messages from the service to send as the fault message. You also can select which MediationTaskFault message to send. If you have more than one Throw Fault task and you want to perform specific processing for each task, configure each task to send a specific message.

Procedure

  1. On the General tab, click Browse to select a service descriptor containing the fault message to send.
  2. On the Select WSDL Message dialog, select the WSDL file in the Matching Resources field.
  3. The Throw Fault activity is configured to throw the message, and you can navigate to the WSDL by clicking the WSDL Location field label.