Hello All, I had a doubt here
when we have should stop activity in catches block will it execute the Finally block?
Should stop is the activity to check for single from Orchestrator to stop processing further queue items. So it’s not relevant here in catch block.
Final block will always run until and unless there is exception in catch block
Thanks,
Ashok ![]()
Hi @Anusuya_Ravi ,
The Finally Section is executed only when no exceptions are thrown or when an error occurs and is caught in the Catches section.
- If you want to catch a System Exception into the catch block:
Insert an Throw Activity and inside of it you can type:
new System.Exception("This is the exception that you catched")
- If you want to catch a Business Rule Exception into the catch block:
Insert an Throw Activity and inside of it you can type:
new BusinessRuleException("This is the business exception that you catched")
Hope it helps you!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.