Right, rumination is bad serves no useful purpose. It is good to analyze our previous mistakes but we should not lament our previous behavior because we cannot change it anyhow. We can only try to be better next time.
The English folk-rock band Incredible String Band has a great song where they sing "Happy man, the happy man, doing the best he can the best he can".