Skip to main content
Solved

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


benvk
Contributor
Forum|alt.badge.img+7
  • Contributor

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.

View original
Did this help you find an answer to your question?

2 replies

ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 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+7
  • Author
  • Contributor
  • April 5, 2022
ctredinnick wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings