How to customize re framework to create dispatcher bot to catch system and business exception.
Hello @Aleem_Khan
- The easiest way is to have two projects (1 dispatcher, 1 performer) then you can take advantage of the built-in exception handling logic.
- Alternatively, you can create your own dispatcher framework with a state machine using a similar logic:
- Create a State Machine
- Add “States” to get data, process, handle exceptions and an End State
- Create global SystemException and BusinessRuleException variables
- Add try-catch sequences inside each state
- configure the catches to capture both System.Exception and BusinessRule Exception and send the exceptions to your global variables
- Assign your transition conditions accordingly, for example if you want to route to an exception handler you can use something like If SystemException isnot Nothing or BusinessException isnot Nothing
This is an example of a custom built framework using a state machine
try-catch example
Transition example
Example of error handler by type
Can you please share me xaml file appreciate you
Can you please share the Xaml file?
Thanks in advance