I use a PythonCaller to compare the output from some transformers with a textfile. Depending on the results I would like to set a global variable or modify a published parameter.
In the further workflow I would like to use the parameter to determine if the features should be written out or not.
As a workaround I used a VaraibleSetter and VariableRetriever to set a global variable which I can use in a Tester. It yould be more elegant to set and expose the global variable or modify a published parameter within the python Caller.
- Is it possible to change the value of a published parameter within a PythonCaller? If I try to fo modify the published parameter with FME_MacroValuesa'NameOfPublishedParameter'] = "Yes", it doesn't affect the value. The default vlaue will be used.
- Is it possible to set and expose a glaobal variable (function or factory: @GlobalVariable) analog to the VariableSetter/VariableRetriever combo?
Thanks for any advice
felix