I am trying to migrate my app that uses the spring statemachine to use webflux. I was using
private final StateMachineFactory<State, Event> stateMachineFactory;
[...]
StateMachine<State,Event> machine = stateMachineFactory.getStateMachine(stringId);
To get the statemachine at hand (identified by the stringId). But this cannot be done anymore in a reactor thread as getStateMachine is blocking. So how does one go about getting the correct statemachine in a reactive environment?