How to Send E-mails for System Exceptions happened inside the process Transaction in the RE framework?

Hi,

I need to send an E-mail notification if there’s a system exception (after some retries). There’s an option to send the E-mail in “Invoke RetryCurrentTransaction workflow” in “Set Transaction Status” after Max retry. But that only works if I’m not using Queues, Here I’m using Queues.

I have used send mail in “End Process” which works when the application is down (Init), I need a solution to send mail for System Exception in process Transaction.
Please help me with this.

@Athul_AK

Have a send email activity in the catch block in process transaction specifically in the system exception catch block

Cheers

@Athul_AK There is a Catch Block that captures System Exceptions like so:

You can add an the Send Email activity before/after the Set transaction status to SystemException activty. I recommend maybe an Invoke Workflow and create the Send Email message in a a separate workflow for better logic organization.

Hope this helps!

1 Like


As you mentioned I added a message box just above the set transaction status to system exception.
But if once a transaction fails I get the error notification, but if the next retry same transaction is getting succeeded then the previous mail will be unnecessary. How i can over come this?

@Athul_AK

In that case use a if condition and check if this is the maximum retry i hope you are using queue transactionitem.retryno will give the current retry number

Cheers

Yes, Working…Thanks!

1 Like

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