The solution of the steady state distribution in non-equilibrium processes