How to use current layer name in FME PythonCaller?
- Add an AttributeExposer, expose the
fme_feature_type
attribute - Connect the AttributeExposer to a AttributeCreator to push
fme_feature_type
out an attribute (namedfme_feature_type
below) - In the PythonCaller, get your attribute by:
layer_name = feature.getAttribute("fme_feature_type")