-
Notifications
You must be signed in to change notification settings - Fork 627
@WithStateMachine not working when created after the state machine #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for a late answer. I need to create a test to verify this before I can come up with a fix. Was quickly peeking |
I just encounter a problem when using spring state machine @WithStateMachine. @OverRide @OverRide @OverRide //
} |
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
The text was updated successfully, but these errors were encountered: