Skip to main content
Best Answer

Get list of feature types of reader and writer

  • May 27, 2020
  • 4 replies
  • 139 views

zzupljanin
Contributor
Forum|alt.badge.img+5

Hi,

 

Is there a way to get a list of feature type names of all Readers and writers inside workspace?

 

I don't want to read data. Just need to create some sort of report of what feature types do I read and write. And in my workbench there are lots of them, so doing it by hand is gonna be time consuming

 

Regards,

Želimir

 

Best answer by jlbaker2779

Take a look at the workspace statistics created by @markatsafe. It might be what you're looking for.

 

https://knowledge.safe.com/articles/82943/fme-workspace-statistics-you-can-help.html

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.

4 replies

david_r
Celebrity
  • May 27, 2020

If you only have a single reader, you could link the "Feature types to read" attribute to a private or published parameter, then use the ParameterFetcher to retrieve the list.

Another option could be to use Sampler with a Group By on "fme_feature_type" (or "fme_dataset", depending on the format). That would give you a list of all the feature types or datasets read in the workspace.


Forum|alt.badge.img+2
  • Best Answer
  • May 27, 2020

Take a look at the workspace statistics created by @markatsafe. It might be what you're looking for.

 

https://knowledge.safe.com/articles/82943/fme-workspace-statistics-you-can-help.html


zzupljanin
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 27, 2020

Take a look at the workspace statistics created by @markatsafe. It might be what you're looking for.

 

https://knowledge.safe.com/articles/82943/fme-workspace-statistics-you-can-help.html

Yes, FMW reader is something I've been looking for.


Forum|alt.badge.img+2

Yes, FMW reader is something I've been looking for.

@zzupljanin The workspace statistics that @jlbaker2779 referenced does include the Feature Types, but not for the purposes of tracking them. So it's probably best to create your own workspace using the FMW reader.

Things are a little more complicated if you use FeatureReader and FeatureWriter transformers. The FMW reader Reader/WriterFeatureTypes feature types doesn't directly return the the feature types used in these transformers. You'll have to include the FMW Transformers & TransformerParameters feature types and dig out the transformer_parameter_name WRITER_FEATURE_TYPE_PARAMS or READER_FEATURE_TYPE_PARAMS.