Skip to main content
Solved

List all attributes actually used in an workspace?


I have a change-detection workflow that triggers another workflow whenever input feature(s) changes. I need to fine-tune this process even more. Say for example, if the input feature(s) has 1000 attributes, the attributes relevant to me are only 100. I need the change-detection workflow to trigger only if any of those 100 attribute value changes.

Is there a way to only get a list of attributes that are actually used inside the workflow?

Best answer by david_r

You could try the FMW reader in FME 2017 and analyze all the transformer settings for a list of all the attributes used. I'm not sure it will be 100% correct, but it could serve as a starting point.

View original
Did this help you find an answer to your question?

4 replies

todd_davis
Influencer
Forum|alt.badge.img+22
  • Influencer
  • April 10, 2017
So you are looking for all the attributes on a feature, rather than all attributes that have been used throughout an entire workspace? If it the first one, use python: feature.getAllAttributeNames() will return all attribute names (including format attributes) . If you are unsure about python, have a look at: https://knowledge.safe.com/questions/21304/get-the-attributes-names-with-python.html

  • Author
  • April 10, 2017
todd_davis wrote:
So you are looking for all the attributes on a feature, rather than all attributes that have been used throughout an entire workspace? If it the first one, use python: feature.getAllAttributeNames() will return all attribute names (including format attributes) . If you are unsure about python, have a look at: https://knowledge.safe.com/questions/21304/get-the-attributes-names-with-python.html
My workspace has multiple readers/multiple features. I do not need to know the reader attributes. Rather, I need to know only the attributes that are actually used inside the workspace.

david_r
Celebrity
  • Best Answer
  • April 11, 2017

You could try the FMW reader in FME 2017 and analyze all the transformer settings for a list of all the attributes used. I'm not sure it will be 100% correct, but it could serve as a starting point.


  • Author
  • April 11, 2017
david_r wrote:

You could try the FMW reader in FME 2017 and analyze all the transformer settings for a list of all the attributes used. I'm not sure it will be 100% correct, but it could serve as a starting point.

That worked. Exposed the transformer output attributes and did a Histogram.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings