fmeobjects.FMEFactoryPipeline.setCallback

FMEFactoryPipeline.setCallback()

setCallback(function),

This method is used to specify the name of a function that will be called by the pipeline when a feature is ready for output. If a callback function is specified, features must not be retrieved using the getOutputFeature() method.

Parameters:

function (Callable) – The function to provide FME for use as a callback function. The passed in function must take in a FMEFeature as the parameter and return True on success, and False upon failure.

Return type:

None

Raises:

FMEException – An FMEException is raised if there was an error.