I am new to spring state machine and trying to understand which is a better approach whether to persist the state context in a database or to restore the state
In the Spring Statemachine reference doc is this sample code: @WithStateMachine static class Bean1 { @OnTransition(source = "S1", target = "S2") publi