Flux for wave soldering processes and selective soldering processes