spring-statemachine
spring-statemachine copied to clipboard
concurrent sendEvent error
StateMachine<State, Event> stateMachine = builder.build(); stateMachine.start(); stateMachinePersist.restore(stateMachine, context); stateMachine.sendEvent(context);
hi, the same request concurrently run above code, get same status from StateMachinePersist read method and transit next state successfully. however, actually, only the first request can process successfully, how to resolve it?
@Flying17 Did you manage to solve this? I have the same problem now and looking for a solution.