In a PythonCaller (FME 2014 SP4 in Data Interop in ArcGIS 10.3), I'd like to do some conditional processing based on the layer that I'm currently processing. I'm feeding in a text file of layers dynamically at runtime, so the layer(s) being processed can vary. I'd like to do something like the psuedocode below:
import fmeobjects def processFeature(feature): # Get which layer is currently being processed layer_name = somehow get current layername via fmeobjects?? # do some logical processing of fields based on what layer we are processing pass
Not sure if there is something in
FME_MacroValues that exposes this (looked and couldn't find much) or if I need to expose it somehow from my source and then pipe it into my PythonCaller perhaps.