SOA Admin—Fault recovery for BPMN processes
You learnt how to define fault policies for a BPMN process in Chapter 8, Exception Management, in the Handling a system exception Fault Management Framework section.
In Chapter 8, Exception Management, BPMN Service Engine runs the task ValidateStock
, which calls StockValidator_EBS. StockValidator_EBS
will raise an error if stock is not available. The task fails with a SOAP error, which will be converted by BPMN Service Engine into an exception. Here, you will use the framework to define a fault policy that enables human intervention on a BPMN process and you will also perform recovery on BPMN process components.
You will implement a service task in your BPM process to invoke this StockValidator_EBS
service.
If Stock = Available Then Process Token follows the Normal path
else if Stock != Available then service task throws a Error
How to do it...
1. Open the
fault-policy.xml
file and add the following code:<faultName xmlns:client="http://xmlns...