Skip to main content

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?

@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”?


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 ?

 


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


It’s IFS failure event


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.


I’ll do it. Thanks for your help.


Reply