We have implemented a custom workflow process step to perform an operation against an integration. The particulars aren't important.
Currently, if an error occurs when we call the integration, we throw a workflow exception. This causes the step to be retried (10 attempts), after which the workflow is halted and a the exception is sent to the AEM inbox (/inbox) as a FailureItem.
We wish to change this behaviour so that the process step is tried only once. We wish to make it a graceful failure, submitting a message to the inbox (not an email, just the AEM inbox), but continuing on with the workflow.
We have tried a couple different approaches without luck:
Is there a simple way to achieve this? Any way to achieve this?