Skip to main content
Question

How to tell if an attribute is exposed

  • March 17, 2016
  • 2 replies
  • 3 views

jdh
Contributor
Forum|alt.badge.img+40

I have several custom transformers where I need to temporarily expose the fme_feature_type. To keep workspaces that use them clean I would like to unexpose it, but only if it is not already exposed in the main canvas.

Ie. if the main canvas has the fme_feature_type exposed, then it stays exposed after the custom transformer, if it's hidden, then it is still hidden after the custom transformer.

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

takashi
Celebrity
  • March 17, 2016

Hi @jdh, I don't think it's possible if you have once exposed "fme_feature_type". A workaround I can think of is: extract the feature type name as a temporary attribute by the FeatureTypeExtractor, use the temporary attribute to refer the feature type name, and remove it before outputting. However, the original feature type name cannot be modified via the temporary attribute. If you need to modify the original feature type name in the custom transformer, would have to do that with a Python or Tcl script implicitly, without exposing "fme_feature_type" anyway.


fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • March 18, 2016

Hi @jdh, I don't think it's possible if you have once exposed "fme_feature_type". A workaround I can think of is: extract the feature type name as a temporary attribute by the FeatureTypeExtractor, use the temporary attribute to refer the feature type name, and remove it before outputting. However, the original feature type name cannot be modified via the temporary attribute. If you need to modify the original feature type name in the custom transformer, would have to do that with a Python or Tcl script implicitly, without exposing "fme_feature_type" anyway.

I agree with Takashi -- I can't think of a way either to conditionally unexpose based on the use situation.