Repeat negative emotions

What is the best way to stop repeated thoughts when I think of recent past circumstances whose outcomes I am still working through? The outcomes are my current reality, and I feel lots of resentment for the circumstances that brought me here because this outcome is not what I was working for. I see the value and progress that can come with changing my thoughts, but Iā€™m having a really hard time doing that because the negative thoughts are so strong.