Skip to main content
Question

How to tell if an attribute is exposed


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

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.

2 replies

takashi
Influencer
  • 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+18
  • Safer
  • March 18, 2016
takashi wrote:

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.


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