Workflow Step fails and retries entire workflow 11 times | Community
Skip to main content
October 16, 2015
Solved

Workflow Step fails and retries entire workflow 11 times

  • October 16, 2015
  • 3 replies
  • 1866 views

Hi,

we have a registration workflow that has two steps:

  1. Send email to admin
  2. Send email to user

The problem is that sometimes the mail server doesn't like the user's email address and refuses to send the email, throwing an exception in that workflow step. In the logs I can see the exception and I can see that AEM restarts the entire workflow (also sending emails to the admin). My question now is, why does AEM restart the entire workflow and not just the step that failed?

Thanks,

Paul

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Actually 'SendEmailProcess' throws 'WorkflowException' when anything fails which might be causing it to restart the complete workflow !!

This looks like an issue. Can you please create a support ticket for the same.

3 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

have you created your custom workflow steps or using OOB steps

October 16, 2015

Both steps use "com.adobe.cq.social.commons.SendEmailProcess"

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

Actually 'SendEmailProcess' throws 'WorkflowException' when anything fails which might be causing it to restart the complete workflow !!

This looks like an issue. Can you please create a support ticket for the same.