REF break to BU on condition

Hello all im moving my sequences process to REF which great for exception handling,

but the process part and multi sequence based on the first one, how to break it if item not found in the search and skip the retry part!
and add it the Business exception.

Im trying to have a flag and msg carry the whole exception but dont know how to break the flow

BR/Hazem

Hi @Hazem_Saleh ,

Maybe the mentioned implementation part is not shown to us ?

We could Throw a BusinesRuleException in the below way using the Throw Activity :

new BusinessRuleException("Your Exception Message")
1 Like

you can have that part of code alone in a separate TRY CATCH and if exception comes it goes to CATCH block
there you can have the exception either saved as a variable like this with the exception message
businessexception = exception.message
here businessexception variable is of type BusinessException
make sure the catch is defined with exception type as System.Exception so that be it any exception it gets added as a business exception

or throw as business exception like this with THROW Activity
New BusinessRuleException(“your exception message”)

Cheers @Hazem_Saleh

1 Like

Thanks i will try this :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.