How to resend an email after the email connector has failed?


Hi, I have a couple of questions.

  • Is there any way to retry sending an email after the email connector has failed?
  • How can I know if the sending of an email was successful?

I am using Bonita Studio Community 7.12.1 and the email connector.


Submitted by Dibyajit.Roy on Tue, 04/06/2021 - 18:24

If you want to check if connector was successful, then you can go the case details, open the task and there will be a section for connectors. It will show as done or failed.

If you want to retry a connector, i am not sure about the script that we can use. There is a way to retry all tasks. But you need a Id to retry . So what id should be for connectors are not known to me.

This is what I do to resend emails. I create a seperate process. I pass the persistenceid from the row in the database to the process. Then I load business objects based on persistenceid.
Once Business Object is loaded, then I trigger the task where email is configured.So basically I keep the same email as the main process. Just that I use the second process to send the email if the first process has connector at failed stage.


1 answer



you can catch connector errors using BPMN error events at design time (using If connector fails... -> Throw error) and handle errors in the process or there is a replay failed task feature in Enterprise admin portal app.