Solved

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

  • 5 April 2022
  • 2 replies
  • 26 views

Badge +7

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

icon

Best answer by ctredinnick 5 April 2022, 02:49

View original

2 replies

Userlevel 3
Badge +16

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.

Badge +7

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!

Reply