I want to use the fault management framework in BPEL process
I have one Asynchronous BPEL process which invokes a webservice and I have created one fault-policies.xml and fault-bindings.xml and put both of them in the same directory structure of Composite.xml.
I want to catch the "remoteFault" so, at the runtime i have shutdowned that particular webservice. So, Asynchronous BPEL process is able to throw the system fault but the fault policy is not working. As a message it is showing that "*BPELFault" has not been caught by a catch block*".
Have you modified the properties in composite.xml to point to the fault policy files in the current project directory?
It should look like this:
Fault policies can be used to handle business faults also but if you throw a fault using throw activity, fault policies will not be executed; fault policies will only be executed when the invoke activity fails
When you manually throw a fault using throw activity that fault can be caught by a specific catch or catchAll branch but fault policies won't be executed