- 17.9K All Categories
- 3.3K Industry Applications
- 3.2K Intelligent Advisor
- 59 Insurance
- 534.1K On-Premises Infrastructure
- 137.6K Analytics Software
- 38.5K Application Development Software
- 5.3K Cloud Platform
- 109.1K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 70.8K Infrastructure Software
- 105.1K Integration
- 41.5K Security Software
Manual recovery in case of Custom Fault
My scenario here is I am querying a database table to get a specific column value.If the column value is NULL i have to retry after some time.After all the retrials(in my case 3 at an interval of 2 min) if the column value is still null my BPEL instance should go to recovery from where it can be retried whenever required.
1.Select Query on database
2.Check the column value in IF block in BPEL
3.If column value is returned NULL ,WAIT activity waits for 2 minute then Replays the scope again and the process repeats 3 times
4.After 3 retrial I am throwing a Custom fault(declared in my BPEL WSDL) using THROW activity
5.My fault policy is set to catch this custom fault and should send the instance to recovery.
This is not the actual code.Just created to explain the approach.
My fault policy snippet below.This has been manually modified as custom fault was not directly available to select.Fault policy is attached at composite level and working fine when tried with binding/remote fault.
But Problem is my fault policy is not getting fired when the Custom fault is thrown.Is this the right approach?Is the fault policy should get fired in this kind of approach?
Or any better to handle this?
Thanks in advance!!!!