Skip to main content
Solved

Workflow send mail before failure event


Forum|alt.badge.img+1

Hi. When I send an e-mail before the successful completion, the e-mail is sent, but when I try to send an e-mail before the unsuccessful completion, the e-mail is not sent. How do I solve the problem?

Best answer by Buddhi Gunasekara

IFS failure event’s purpose is to rollback all the previous transactions if it is raised. So if you want to send the mail even when the failure event occurs, use a rest task to call the mail sending API before failure event instead of the API task.(You only need this to change in the failure path, not the success path) Work done by rest tasks are not rolled back even if the workflow fails.

View original

6 replies

Forum|alt.badge.img+7

@akifguldemir 
What is the behavior of workflow initiating projection action when unsuccessful completion. Does it throw an error. If so, everything done by workflow will be rolled  back. Then email will not be sent.
Also, what type of task is “Send mail”?


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 3, 2025

I used a custom projection to send mail and i’ve added send mail detail as image. As i said before i need to send mail before failure event. How can i do this ?

 


Forum|alt.badge.img+7

How do you identify “unsuccessful completion”? What indications are there with regards to your projection action?


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 3, 2025

It’s IFS failure event


Forum|alt.badge.img+7

IFS failure event’s purpose is to rollback all the previous transactions if it is raised. So if you want to send the mail even when the failure event occurs, use a rest task to call the mail sending API before failure event instead of the API task.(You only need this to change in the failure path, not the success path) Work done by rest tasks are not rolled back even if the workflow fails.


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • March 6, 2025

I’ll do it. Thanks for your help.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings