Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Workflow Step fails and retries entire workflow 11 times

Avatar

Former Community Member

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

3 Replies

Avatar

Level 10

have you created your custom workflow steps or using OOB steps

Avatar

Former Community Member

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

Avatar

Correct answer by
Level 10

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.