spring-projects / spring-statemachine

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

State id reseting to null after resetStateMachineReactively method called. #1106

Closed slice-sagarg closed 1 year ago

slice-sagarg commented 1 year ago
machine.stopReactively().block();
        machine.getStateMachineAccessor()
                .doWithAllRegions(accessor -> {
                    accessor.resetStateMachineReactively(
                            new DefaultStateMachineContext<>(
                                    status,null,null,null))
                            .block();

                });
        machine.startReactively().block();

Using this to start the state machine with particular state but after resetStateMachineReactively called machine id set to null.

slice-sagarg commented 1 year ago

Checked there is another constructor for DefaultStateMachineContext which have id parameter.