Skip to main content
Solved

How to trigger 'emailer' AFTER the Writer has finished?

  • April 5, 2022
  • 2 replies
  • 120 views

benvk
Contributor
Forum|alt.badge.img+8
  • Contributor
  • 60 replies

I have a scenario where I have a HTML report generator, it saved the report on a local disk.

 

Once this HTML report is saved I then wish to send an email with the HTML report as an attachment, but as the Writer doesn't have an output port, I cannot trigger the emailer this way. How do I tell the emailer to run once the Writer has finished?

 

image

Best answer by ctredinnick

Use a FeatureWriter transformer instead of a regular writer. It has a Summary port which allows the workflow to continue after writing. It also outputs on it a _dataset attribute which will be the filepath of the html file, so you can reference that directly in the Emailer.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 225 replies
  • Best Answer
  • April 5, 2022

Use a FeatureWriter transformer instead of a regular writer. It has a Summary port which allows the workflow to continue after writing. It also outputs on it a _dataset attribute which will be the filepath of the html file, so you can reference that directly in the Emailer.


benvk
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 60 replies
  • April 5, 2022

Use a FeatureWriter transformer instead of a regular writer. It has a Summary port which allows the workflow to continue after writing. It also outputs on it a _dataset attribute which will be the filepath of the html file, so you can reference that directly in the Emailer.

Thank you!