Skip to main content

Currently I am using FME 2015 and a project I have completed reads a xml and writes the data it sends to a database and then sends a email saying weather it worked or did not work. I am using two workbenches with a workplace runner because I have to know if it wrote or did not write to the database table. I know using FME 2015 i either had to use the workplace runner or a python shutdown script.

But in FME 2016 the feature writer has a output. I was wondering if I could somehow use that to my advantage and use that output features in someway to pass the data along so i did not have to use a workplace runner and two transformers or a python shutdown script to know if it wrote to the database or not and then send a email based on success or failure. This is being done in FME desktop not FME server so I cannot take advantage of the server emailing ability.

Yes, that is exactly the reason for using the FeatureWriter. The workspace will continue after the writing to the database has finished.

Even more: The WorkspaceRunners you are using now do not guarantee the writing to the database if you continue on the Succeeded output. It just guarantees no FATAL errors in your workspace, but sometimes no data has been written and no errors.

So the FeatureWriter will be an improvement for your process.


Yes, that is exactly the reason for using the FeatureWriter. The workspace will continue after the writing to the database has finished.

Even more: The WorkspaceRunners you are using now do not guarantee the writing to the database if you continue on the Succeeded output. It just guarantees no FATAL errors in your workspace, but sometimes no data has been written and no errors.

So the FeatureWriter will be an improvement for your process.

I have the beta and been playing around with it and the only data that workplace passes is the summary. Is the best way to keep going with the data is to pass the data past the feature writer with the summary? Is there anything that i can merge the data pre writer with and the summary output of the feature writer?


Yes, that is exactly the reason for using the FeatureWriter. The workspace will continue after the writing to the database has finished.

Even more: The WorkspaceRunners you are using now do not guarantee the writing to the database if you continue on the Succeeded output. It just guarantees no FATAL errors in your workspace, but sometimes no data has been written and no errors.

So the FeatureWriter will be an improvement for your process.

I was thinking of adding a counter pre writer and then merging the summary on the attribute feature.count that is a output. What are your thoughts on this?


I was thinking of adding a counter pre writer and then merging the summary on the attribute feature.count that is a output. What are your thoughts on this?

The FME Blog explains how to use the FeatureWriter. Hope this helps:


https://blog.safe.com/2016/01/fmeevangelist143/


The FME Blog explains how to use the FeatureWriter. Hope this helps:


https://blog.safe.com/2016/01/fmeevangelist143/

Thanks, I did not see this.


Reply