Send E-mail Smart Service Exception

Certified Associate Developer

Hi all,

I’m trying to handle failures from the Send E-Mail smart service (e.g. network) in a more user-friendly way.

My goal is to display an interface showing the error and its corresponding resolution whenever the email fails, instead of having the process instance suspended.

Currently:

  • When the Send E-Mail smart service fails, the process model is suspended.

  • I attempted to:

    • Use a Timer Exception on the Send E-Mail node

    • Place the Send E-Mail node inside a subprocess and handle the exception from the parent model

However, both approaches do not work as expected because the subprocess itself becomes suspended when the Send E-Mail smart service fails.

Is there any supported way to:

  • Catch or handle Send E-Mail failures (e.g. network issues) without suspending the process, or

  • Route the flow to a failure interface after retries are exhausted?

Any guidance or recommended patterns would be greatly appreciated.
Thanks in advance!



  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    I have a process model that:

    • Sends an email

    • Writes the email details into an email audit log

    • Shows a confirmation message that the email was sent

    In the UI, email addresses are already validated, so the main failure scenario is a network failure.

    When the Send E-Mail smart service fails, the process instance is suspended, which prevents me from showing a user-friendly “email failed” message.

    I tried moving the Send E-Mail node into an asynchronous subprocess and adding a delay timer in the parent process after the subprocess. However, after adding the timer, the user still sees “Action completed”. It seems the process does not wait to display a UI and ends, even though a delay timer is present.

Children