How to mark bot as red if it fails?

How to mark bot as red if it fails in the orchestrator?

It should show green, if its successful.

is there any process to make it ? let me know.

  1. If you are using RE framework and try/catch then catch the exception and log them as error. In the end process state use terminate workflow after logging the exception.
  2. Categorize the types of exception before logging Business vs Application
  3. Set the transaction to failed in the properties of set transaction status activity. (preferred when using queues but should be ok for normal usage too.)

More about that here.

Let me know if that helps.