I'm trying to use a python caller within a custom transformer that is nested inside another custom transformer.
With just a single custom transformer I'd use:
paramVal = str(FME_MacroValuesVMyCustomTransformerName_MyParameterName])
to get the parameter value inside the custom transformer. However when this custom transformer is nested inside another custom transformer, this naming convention doesn't work - I get a python exception
Python Exception <KeyError>: 'MyCustomTransformerName_MyParameterName'
The combination of both custom transformer names throws an error
paramVal = str(FME_MacroValuesnMyContainingCustomTransformer_MyCustomTransformer_MyParameterName])
Using just the parameter name as follows gives me the value from the parent workspace
paramVal = str(FME_MacroValuestMyParameterName])
while using concatenating the name of the containing custom transformer gets parameters from within that transformer
paramVal = str(FME_MacroValuesfMyContainingCustomTransformer_MyParameterName])
Is there a specific naming convention that will help me here? If not i'll probably just have to settle for getting values from the containing custom transformer.