Fine
You were almost done
—inside the TRY BLOCK of if any exception occurs it will go to CATCH block where we need to use a Boolean variable
Like use a assign activity like this
Bool_failure = True
Where Bool_failure is a Boolean variable with default value as false defined in the variable panel
—Now in the FINAL BLOCK of TRY CATCH ACTIVITY we can use a
IF condition like this
Bool_failure = True
If true it will go to THEN apart where we can use THROW Activity with a business exception mentioned like this
New BusinessException(“Process Failed”)
So this will raise a exception the orchestrator will fail
Or if not in FINAL block we can use a IF and the same THROW activity next to this TRY CATCH BLOCK…
Kindly try this and let know for any queries or clarification
Cheers @sandipauti