title: Retry and max attemps with state machine
body: <p>I'm trying to make a state machine in which I want to build a retry and max attemps feature. Let me explain, so far I have this:<a href="https://i.stack.imgur.com/NNq5E.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NNq5E.jpg" alt="enter image description here"></a></p>
  
  <p>From SAVED, I want to go to VALIDATED, although if there is an error, it has to go to AWAITING_VALIDATION state. After 3 minutes, try again to VALIDATED state.</p>
  
  <ol>
  <li>Did I have correctly set up retry mechanism?</li>
  <li>After 3 attemps, I want to go back to SAVED state (and pause state machine). Is it possible to do that in a fancy waty (e.g using spring state machine) or do I have to do this manually using some kind of a cache?</li>
  </ol>
  
  <p>Thanks for your help</p>