Skip to main content

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

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.


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