Forum Discussion
@omair, This may not be your exact use case, but here is a high-level view of how I do something similar to this:
- On an error view, add the custom message mapper and notification snap just prior to the exit snap.
- Then join the non-error output view to the exit output view with a union+sort to ensure processing doesn’t continue before the exit has time to process (you can eliminate this piece if you don’t care if valid records are processed before an error exit is triggered).
- If the exit isn’t triggered, then the pipeline will continue.
(Edit) - The above works with email notifications - which is what I first read into your question - possibly incorrectly. However, if you’re looking for API type output to the user, this example will not work.