Skip to main content
Solved

Run FME transformer after processing of a writer

  • Dec 18, 2017 7:05 AM UTC
  • 2 replies
  • 594 views

Forum|alt.badge.img

Hi,

In my workbench, I am writing a file which i want to send as attachment in an email notification from the same workbench. How can i control my FMEServerEmailGenerator to work if only the file is written?

Note: I am using Fanout process in writer.

Best answer by nielsgerrits

I know 2 ways to do this:

- WorkspaceRunner. Creator to start WorkSpaceRunner. First WorkSpaceRunner to process data. Second WorkSpaceRunner to mail attachment.

 

- FeatureWriter. Use Summary feature from FeatureWriter to initiate the next Transformer. I often use a Holder to prevent starting the Transformer after the FeatureWriter before all features are written.

I prefer the FeatureWriter because this way you can keep it in one Workspace.

The downside of using a FeatureWriter in server is that the field numFeaturesOutput in the job summary is not handled correctly. Using a classic writer this number tells the number of written features correctly.

View original
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

nielsgerrits
VIP
Forum|alt.badge.img+67
  • Best Answer
  • Dec 18, 2017 7:15 AM UTC

I know 2 ways to do this:

- WorkspaceRunner. Creator to start WorkSpaceRunner. First WorkSpaceRunner to process data. Second WorkSpaceRunner to mail attachment.

 

- FeatureWriter. Use Summary feature from FeatureWriter to initiate the next Transformer. I often use a Holder to prevent starting the Transformer after the FeatureWriter before all features are written.

I prefer the FeatureWriter because this way you can keep it in one Workspace.

The downside of using a FeatureWriter in server is that the field numFeaturesOutput in the job summary is not handled correctly. Using a classic writer this number tells the number of written features correctly.


Forum|alt.badge.img
  • Author
  • Dec 18, 2017 9:59 AM UTC

I know 2 ways to do this:

- WorkspaceRunner. Creator to start WorkSpaceRunner. First WorkSpaceRunner to process data. Second WorkSpaceRunner to mail attachment.

 

- FeatureWriter. Use Summary feature from FeatureWriter to initiate the next Transformer. I often use a Holder to prevent starting the Transformer after the FeatureWriter before all features are written.

I prefer the FeatureWriter because this way you can keep it in one Workspace.

The downside of using a FeatureWriter in server is that the field numFeaturesOutput in the job summary is not handled correctly. Using a classic writer this number tells the number of written features correctly.

Thanks for the answer.