RE frame work related expecetion

Hi Team,

I am facing issue i am using reframework for my project, i built a workflow, in that i through the businessrule exception in catch block i given businessexception and add the log message along with rethrough activity, but here when it came out of that workflow when it comes to it parent workflow there it is running next activities instead of throwing the error it executing the other activities.

Please help to resolve this issue

Hi @Racer_rough,

Welcome to the community.

Can you share a snapshot of your workflow. It seems the exception may not be handled.

Thanks

@Racer_rough

It’s because you used Try Catch and in catch it’s expected to handle the exception. If you want to throw that exception to the parent flow, use Rethrow activity in the catch block and you should have the exception in parent workflow as well.

@Racer_rough

Did you use a Rethrow activity inside the Catch block where you want the throw the exception?

After that, make sure the parent workflow is also Sorrounded by Try-Catch. In the parent workflow’s Catch block, use another Rethrow activity.

This ensures that the exception raised in the child workflow is properly propagated to the parent workflow, allowing you to identify where the exception originally occurred.

Let me know if this works.
Happy Automation.

Hello @Racer_rough

The default behaviour of the RE Framework, when encountering a Business Rule Exception, is to move on to the next transaction item.

A Business Rule Exception is defined logic for an expected exception and should not end the flow.

Regards
Soren

Hi @Racer_rough,

Check whether the parent workflow (or the workflow that invoked this one) has a Try Catch around the Activities. If the Catch block doesn’t use Rethrow or Throw, the exception is considered handled, and execution continues with the next activity.

Also, Check if the activity properties inside the Try block has ContinueOnError = True. If so, then any exception from the child workflow is ignored, and the parent continues executing.

Cheers!

Thank you all for this solution