Relative Content

Tag Archive for javastate-machinespring-statemachine

Spring State Machine enters initial state again after end state

I’m currently facing an issue with Spring State Machine in my project. The problem arises when I acquire the state machine for the second time after it has reached the end state (FINISHED in this example). Instead of retaining its end state, the state machine reverts back to the initial state (CREATED). This causes validation to fail when the state is checked on subsequent calls.