Stochastic processes in nonequilibrium systems