Skip to main content
Best Answer

Trigger email notification after TXT line writer completes?

  • October 25, 2019
  • 1 reply
  • 30 views

agelfert
Contributor
Forum|alt.badge.img+8

I have a process that writes a number of text files. Just figured out how to populate an email with a number of pieces of information about each runtime, time, feature count, etc. But it's basically sending the email in parallel with the writer finishing up. I would like to have the writer trigger the email, similar to how it's described here.

https://knowledge.safe.com/questions/4963/sending-mail-in-fme-desktop.html

I can replace my TXT writer with a feature writer and write to TXT but there appears to be no fanout feature with the FeatureWriter? if that's so, is there another way to have the email kick off only after text writer completes?

Best answer by jdh

The Dataset parameter of the FeatureWriter can act as a fanout because you can use the Editor to set it and reference any attributes.

ex. D:\\rootdir\\@Value(_attr1)\\@Value(_attr2).txt

 

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.

1 reply

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • October 25, 2019

The Dataset parameter of the FeatureWriter can act as a fanout because you can use the Editor to set it and reference any attributes.

ex. D:\\rootdir\\@Value(_attr1)\\@Value(_attr2).txt