spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.53k stars 599 forks source link

Is there a way to avoid a finished state machine to start again using StateMachineService? #1033

Closed gustavodaquino closed 1 year ago

gustavodaquino commented 2 years ago

Hello, guys. I have a question about the StateMachineService class.

I'm using the acquireStateMachine method just like the Data Persist example demonstrates, but, when the SM comes to the final state, once a new acquireStateMachine(id, true) is called, the start machine resets to the initial state.

How I could avoid this behavior, to validate that a finished state machine to not restart anymore?