fmeobjects.FMEFeature.performFunction
- FMEFeature.performFunction(functionSpecification)
Call an FME function on the feature. See the FME Factory and Function Documentation for formatting and the list of supported functions. It may not support newer FME functions. Functions that are not supported will produce an error message indicating that the function is not recognized. The function string passed in to this function follows the syntax of the documentation exactly.
i.e. feature.performFunction(‘@Count()’)
Note that no spaces should be present between any parameters of the function, or between the function name and the ‘(‘. Additionally, do not call this method during a writer’s close() method.
- Parameters:
functionSpecification (str) – The function specification.
- Return type:
- Returns:
The function’s result.
- Raises:
FMEException – An exception is raised if an error occurred.