Skip to content

@WithStateMachine not working when created after the state machine #232

Closed
@antonbasic

Description

@antonbasic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions