Closed
Description
When using the @WithStateMachine and the corresponding annotated methods this bean HAS to be created before the state machine is created. So if a bean with @Autowired StateMachine is in package a and @WithStateMachine bean is in package b then @WithStateMachine will have no effect. This is the complete opposite of how it works when using StateMachineListenerAdapter which depends on the state machine being created.
I also asked about this at StackOverflow